[Frugalware-darcs] frugalware-current: bluez-utils-3.0-1-x86_64
Christian Hamar alias krix
krics at linuxforum.hu
Wed Jun 14 22:15:12 CEST 2006
[bluez-utils-3.0-1-x86_64
Christian Hamar alias krix <krics at linuxforum.hu>**20060614201434
* Version bump
* Moved from xapps-extra -> apps-extra
* Changed maintainer to myself
* Added new init script from BTS #839
* Closes #839
* Depending on bluez-libs-3.0
] {
move ./extra/source/xapps/bluez-utils ./extra/source/apps/bluez-utils
hunk ./extra/source/apps/bluez-utils/FrugalBuild 1
-# Last Modified: Wed, 03 May 2006 16:17:18 +0200
+# Last Modified: Wed, 14 Jun 2006 22:13:57 +0200
hunk ./extra/source/apps/bluez-utils/FrugalBuild 3
-# Maintainer: Kapolnasi Tamas <ktamas at tdc.hu>
+# Maintainer: Christian Hamar alias krix <krics at linuxforum.hu>
+# Old Maintainer: Kapolnasi Tamas <ktamas at tdc.hu>
hunk ./extra/source/apps/bluez-utils/FrugalBuild 7
-pkgver=2.25
-pkgrel=2
+pkgver=3.0
+pkgrel=1
hunk ./extra/source/apps/bluez-utils/FrugalBuild 11
-depends=('dbus' 'bluez-libs=2.25' 'libusb')
+depends=('dbus' 'bluez-libs=3.0' 'libusb')
hunk ./extra/source/apps/bluez-utils/FrugalBuild 13
-groups=('xapps-extra')
+groups=('apps-extra')
hunk ./extra/source/apps/bluez-utils/FrugalBuild 15
-backup=(etc/sysconfig/bluetooth)
-install=$pkgname.install
+backup=(etc/sysconfig/bluetooth etc/bluetooth/hcid.conf etc/bluetooth/rfcomm.conf etc/bluetooth/uart.conf)
hunk ./extra/source/apps/bluez-utils/FrugalBuild 17
-source=("http://bluez.sf.net/download/bluez-utils-$pkgver.tar.gz" rc.bluetooth bluetooth uart.conf)
-sha1sums=('fa28eaf4e81cdf5b05acf80bd8d5614f9ee3eb3e' \
- 'fb1de9f6e85d56eb713a5c1254461cca83e92d30' \
- 'e625eda2a794e06228dea17cc97b905531d814c4' \
- '706231256b0ef53e20f22b4f163e8008f092d28a' )
+source=("http://bluez.sf.net/download/bluez-utils-$pkgver.tar.gz" rc.bluetooth uart.conf)
+sha1sums=('652c71b46367e5ec3b447fc26955bb0edfd4ae5f' \
+ '8d2c1a5800971694d88e327cff2062916251cd11' \
+ '706231256b0ef53e20f22b4f163e8008f092d28a')
hunk ./extra/source/apps/bluez-utils/FrugalBuild 24
- Ffile bluetooth /etc/sysconfig/bluetooth
+ Ffile $pkgname-$pkgver/scripts/bluetooth.default /etc/sysconfig/bluetooth
hunk ./extra/source/apps/bluez-utils/bluetooth 1
-DUND_ENABLED=0
-PAND_ENABLED=0
-HIDD_ENABLED=0
-DUND_OPTIONS=""
-PAND_OPTIONS="0"
-HIDD_OPTIONS="--master --server"
-HID2HCI_ENABLE=true
rmfile ./extra/source/apps/bluez-utils/bluetooth
hunk ./extra/source/apps/bluez-utils/messages/bluetooth.en 1
-stopbluetooth="Stopping bluetooth services"
-startbluetooth="Starting bluetooth services"
-
+startbluetooth="Initialising Bluetooth subsystem..."
+starthcid="Starting hcid"
+startsdpd="Starting sdpd"
+starthidd="Starting hidd"
+starthid2hci="Starting hid2hci"
+startrfcomm="Starting rfcomm"
+startdund="Starting dund"
+startpand="Starting pand"
+stopbluetooth="Bringing down Bluetooth subsystem..."
+stoppand="Stopping pand"
+stopdund="Stopping dund"
+stoprfcomm="Stopping rfcomm"
+stophidd="Stopping hidd"
+stopsdpd="Stopping sdpd"
+stophcid="Stopping hcid"
hunk ./extra/source/apps/bluez-utils/messages/bluetooth.hu 1
-stopbluetooth="A Bluetooth szolgáltatás leállítása"
-startbluetooth="A Bluetooth szolgáltatás indítása"
-
+startbluetooth="Bluetooth alrendszer betöltése..."
+starthcid="hcid indítása"
+startsdpd="sdpd indítása"
+starthidd="hidd indítása"
+starthid2hci="hid2hci indítása"
+startrfcomm="rfcomm indítása"
+startdund="dund indítása"
+startpand="pand indítása"
+stopbluetooth="Bluetooth alrendszer leállítása..."
+stoppand="pand leállítása"
+stopdund="dund leállítása"
+stoprfcomm="rfcomm leállítása"
+stophidd="hidd leállítása"
+stopsdpd="sdpd leállítása"
+stophcid="hcid leállítása"
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 3
-# (c) 2003-2005 Kapolnasi Tamas <ktamas at tdc.hu>
-# rc.bluetooth for Frugalware
+# (c) 2003-2004 Vajna Miklos <vmiklos at frugalware.org>
+# rc.mysqld for FrugalWare
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 8
+. /etc/sysconfig/bluetooth
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 10
-# chkconfig: 2345 49 49
-# description: Startup/shutdown script for the bluetooth
-
-UART_CONF="/etc/bluetooth/uart.conf"
-
-[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
-
-start_uarts()
-{
-
- [ -f $UART_CONF ] || return
- grep -v '^#' $UART_CONF | while read i; do
- /usr/sbin/hciattach $i > /dev/null 2>&1
- done
+# chkconfig: 2345 78 12
+# description: Bluetooth management daemon
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 13
+submsg() {
+ echo -ne "\e[01;36m\t*\e[0m \e[01m$1\e[0m"
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 17
-stop_uarts()
-{
- killall -9 hciattach > /dev/null 2>&1
-}
-
-start()
-{
- echo -n $"Starting Bluetooth services:"
- start_uarts
-
- /usr/sbin/hcid
- /usr/sbin/sdpd
-
-# /usr/bin/hidd -- $HIDD_OPTIONS
- /usr/sbin/hid2hci --tohci >/dev/null 2>&1
-
-# /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
-# /usr/bin/dund -- $DUND_OPTIONS
-# /usr/bin/pand -- $PAND_OPTIONS
- touch /var/lock/subsys/bluetooth
-}
-
-stop()
-{
- echo -n "Stopping Bluetooth services:"
-# killall -9 pand >/dev/null 2>&1
-# killall -9 dund >/dev/null 2>&1
-# rfcomm release all
-
- killall -9 hid2hci >/dev/null 2>&1
-# killall -9 hidd >/dev/null 2>&1
-
- killall -9 sdpd >/dev/null 2>&1
- killall -9 hcid >/dev/null 2>&1
- stop_uarts
- rm -f /var/lock/subsys/bluetooth
-}
-
-
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 18
- stop
- ok $?
+ stop "$stopbluetooth"; echo
+ if [ "$PAND_ENABLE" = "true" ]; then
+ submsg "$stoppand"
+ killall pand &> /dev/null
+ ok $?
+ fi
+ if [ "$DUND_ENABLE" = "true" ]; then
+ submsg "$stopdund"
+ killall dund &> /dev/null
+ ok $?
+ fi
+ if [ "$RFCOMM_ENABLE" = "true" ]; then
+ submsg "$stoprfcomm"
+ rfcomm release all &> /dev/null
+ ok $?
+ fi
+ if [ "$HIDD_ENABLE" = "true" ]; then
+ submsg "$stophidd"
+ killall hidd &> /dev/null
+ ok $?
+ fi
+ if [ "$SDPD_ENABLE" = "true" ]; then
+ submsg "$stopsdpd"
+ killall sdpd &> /dev/null
+ ok $?
+ fi
+ if [ "$HCID_ENABLE" = "true" ]; then
+ submsg "$stophcid"
+ killall hcid &> /dev/null
+ ok $?
+ fi
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 50
- "$0" stop
- sleep 1
- "$0" start
-else # start
- start
- ok $?
+ "$0" stop
+ sleep 1
+ "$0" start
+elif [ "$1" = "start" ]; then
+ start "$startbluetooth"; echo
+ if [ "$HCID_ENABLE" = "true" ]; then
+ submsg "$starthcid"
+ hcid -f $HCID_CONFIG
+ ok $?
+ fi
+ if [ "$SDPD_ENABLE" = "true" ]; then
+ submsg "$startsdpd"
+ sdpd
+ ok $?
+ fi
+ if [ "$HIDD_ENABLE" = "true" ]; then
+ submsg "$starthidd"
+ hidd $HIDD_OPTIONS --server || true
+ ok $?
+ fi
+ if [ "$HID2HCI_ENABLE" = "true" ]; then
+ submsg "$starthid2hci"
+ hid2hci --tohci &> /dev/null || true
+ ok $?
+ fi
+ if [ "$RFCOMM_ENABLE" = "true" ]; then
+ submsg "$startrfcomm"
+ rfcomm -f $RFCOMM_CONFIG bind all || true
+ ok $?
+ fi
+ if [ "$DUND_ENABLE" = "true" ]; then
+ submsg "$startdund"
+ dund $DUND_OPTIONS
+ ok $?
+ fi
+ if [ "$PAND_ENABLE" = "true" ]; then
+ submsg "$startpand"
+ pand $PAND_OPTIONS
+ ok $?
+ fi
hunk ./extra/source/apps/bluez-utils/rc.bluetooth 91
-
}
More information about the Frugalware-darcs
mailing list