diff options
author | Alastair Tse <liquidx@gentoo.org> | 2005-03-08 15:35:47 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2005-03-08 15:35:47 +0000 |
commit | 5dbd9be433e4c8a04ea5a42296eba5e5e32f43d7 (patch) | |
tree | 2aa41b5fbf6b6fd674d29150163c2c7a8e7b4c5f /net-wireless/bluez-utils/bluez-utils-2.15.ebuild | |
parent | Stable on x86. (diff) | |
download | historical-5dbd9be433e4c8a04ea5a42296eba5e5e32f43d7.tar.gz historical-5dbd9be433e4c8a04ea5a42296eba5e5e32f43d7.tar.bz2 historical-5dbd9be433e4c8a04ea5a42296eba5e5e32f43d7.zip |
version bump
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-wireless/bluez-utils/bluez-utils-2.15.ebuild')
-rw-r--r-- | net-wireless/bluez-utils/bluez-utils-2.15.ebuild | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/net-wireless/bluez-utils/bluez-utils-2.15.ebuild b/net-wireless/bluez-utils/bluez-utils-2.15.ebuild new file mode 100644 index 000000000000..06516dadb731 --- /dev/null +++ b/net-wireless/bluez-utils/bluez-utils-2.15.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/bluez-utils-2.15.ebuild,v 1.1 2005/03/08 15:33:46 liquidx Exp $ + +IUSE="gtk alsa cups pcmcia" + +inherit eutils + +DESCRIPTION="bluetooth utilities" +HOMEPAGE="http://bluez.sourceforge.net/" +SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +RDEPEND=">=net-wireless/bluez-libs-2.15 + !net-wireless/bluez-pan + dev-libs/libusb + gtk? ( >=dev-python/pygtk-2.2 ) + alsa? ( media-libs/alsa-lib ) + cups? ( net-print/cups )" + +DEPEND="sys-devel/bison + sys-devel/flex + >=sys-apps/sed-4 + ${RDEPEND}" + +src_unpack() { + unpack ${A} + cd ${S} + + if ! use gtk; then + mv -f scripts/Makefile.in ${T}/Makefile.in + sed -e "s:= bluepin:= :" \ + ${T}/Makefile.in > scripts/Makefile.in + fi +} + +src_compile() { + + econf \ + $(use_enable cups) \ + $(use_enable alsa) \ + $(use_enable pcmcia) \ + $(use_enable gtk bluepin) \ + --disable-dbus \ + --enable-usb \ + --disable-initscripts \ + --enable-obex \ + --enable-hid2hci \ + --enable-bcm203x + emake || die "make failed" +} + +src_install() { + make DESTDIR=${D} install || die + dodoc README + + sed -e "s:security auto;:security user;:" \ + -i ${D}/etc/bluetooth/hcid.conf + + if use gtk; then + sed -e "s:\(pin_helper \).*:\1/usr/bin/bluepin;:" \ + -i ${D}/etc/bluetooth/hcid.conf + else + sed -e "s:\(pin_helper \).*:\1/etc/bluetooth/pin-helper;:" \ + -i ${D}/etc/bluetooth/hcid.conf + fi + + exeinto /etc/init.d + newexe ${FILESDIR}/2.10-r1/bluetooth.rc bluetooth + + exeinto /etc/bluetooth + newexe ${FILESDIR}/2.10-r1/pin-helper.sh pin-helper + insinto /etc/bluetooth + newins ${FILESDIR}/2.10-r1/pin pin + fperms 0600 /etc/bluetooth/pin + + insinto /etc/conf.d + newins ${S}/scripts/bluetooth.default bluetooth + sed -i -e 's/^HIDD_ENABLE=.*/HIDD_ENABLE=false/' \ + -e 's/^HID2HCI_ENABLE=.*/HID2HCI_ENABLE=false/' \ + ${D}/etc/conf.d/bluetooth +} + +pkg_postinst() { + einfo "" + einfo "A startup script has been installed in /etc/init.d/bluetooth." + einfo "RFComm devices are found in /dev/bluetooth/rfcomm/* instead of /dev/rfcomm*" + einfo "If you need to set a default PIN, edit /etc/bluetooth/pin, and change" + einfo "/etc/bluetooth/hcid.conf option 'pin_helper' to /etc/bluetooth/pin-helper." + + if use gtk; then + einfo "By default, /usr/bin/bluepin will be launched on the desktop display" + einfo "for pin number input." + fi + einfo "" +} |