init file wird wieder reinkopiert. hid2hci wird nun auch generiert

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@5302 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-02-01 18:10:36 +00:00
parent eab88da975
commit 8076b17da7

View File

@ -85,6 +85,7 @@ mk32() {
--enable-all \
--sysconfdir=/etc/sysconfig \
--libexecdir=/usr/sbin \
--enable-hid2hci \
--prefix=/usr
make -j $NUMCPU
make -j $NUMCPU DESTDIR=$TMPROOT install
@ -105,12 +106,17 @@ mk() {
--enable-all \
--sysconfdir=/etc/sysconfig \
--libexecdir=/usr/sbin \
--enable-hid2hci \
$ADDOPTIONS \
--prefix=/usr
make -j $NUMCPU
make -j $NUMCPU DESTDIR=$TMPROOT install
cd ../bluez-utils*
rm -r ../build-bluez
if [ ! -d $TMPROOT/etc/init.d ]; then
mkdir $TMPROOT/etc/init.d
cp scripts/bluetooth.init $TMPROOT/etc/init.d
fi
}
postmk() {
@ -118,18 +124,14 @@ postmk() {
mv init.d ../
mv udev ../
cd -
cd $TMPROOT/etc/init.d
mv bluetooth{,.orig}
sed -e "s/SDPD_ENABLE=false/SDPD_ENABLE=true/" bluetooth.orig |\
sed -e "s/HIDD_ENABLE=false/HIDD_ENABLE=true/" |\
sed -e "s/HID2HCI_ENABLE=false/HID2HCI_ENABLE=true/" |\
sed -e "s/RFCOMM_ENABLE=false/RFCOMM_ENABLE=true/" |\
sed -e "s/DUND_ENABLE=false/DUND_ENABLE=true/" |\
sed -e "s/PAND_ENABLE=false/PAND_ENABLE=true/" |\
sed -e "s%/etc/bluetooth%/etc/sysconfig/bluetooth%" >bluetooth
rm bluetooth.orig
chmod 755 bluetooth
cd -
sed -i "s/SDPD_ENABLE=false/SDPD_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s/HIDD_ENABLE=false/HIDD_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s/HID2HCI_ENABLE=false/HID2HCI_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s/RFCOMM_ENABLE=false/RFCOMM_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s/DUND_ENABLE=false/DUND_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s/PAND_ENABLE=false/PAND_ENABLE=true/" $TMPROOT/etc/init.d/bluetooth
sed -i "s%/etc/bluetooth%/etc/sysconfig/bluetooth%" $TMPROOT/etc/init.d/bluetooth
chmod 755 $TMPROOT/etc/init.d/bluetooth
cd $TMPROOT
mv usr/sbin/udev/* usr/sbin/
rm -r usr/sbin/udev