diff options
Diffstat (limited to 'net-wireless/bluez-utils/bluez-utils-3.9.ebuild')
-rw-r--r-- | net-wireless/bluez-utils/bluez-utils-3.9.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/net-wireless/bluez-utils/bluez-utils-3.9.ebuild b/net-wireless/bluez-utils/bluez-utils-3.9.ebuild new file mode 100644 index 000000000..0a696f76f --- /dev/null +++ b/net-wireless/bluez-utils/bluez-utils-3.9.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Bluetooth Tools and System Daemons for Linux" +HOMEPAGE="http://bluez.sourceforge.net/" +SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="debug expat usb cups udev" + +DEPEND="app-pda/libopensync + =net-wireless/bluez-libs-3* + usb? ( dev-libs/libusb ) + cups? ( net-print/cups ) + dev-libs/glib + sys-apps/dbus" + +src_compile() { + econf \ + $(use_enable debug) \ + --enable-inotify \ + $(use_enable expat) \ + $(use_enable usb) \ + --enable-glib \ + --enable-obex \ + --enable-input \ + --enable-sync \ + --enable-hcid \ + --enable-sdpd \ + --enable-hidd \ + $(use_enable cups) \ + --enable-configfiles \ + --disable-initscripts \ + --enable-pcmciarules \ + --enable-bccmd \ + --enable-avctrl \ + --enable-hid2hci \ + --enable-dfutool \ + --localstatedir=/var \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog README + + # optional bluetooth utils + dosbin tools/hcisecfilter tools/ppporc + dobin daemon/passkey-agent + + newinitd ${FILESDIR}/${PN}-2.25-init.d bluetooth + newconfd ${S}/scripts/bluetooth.default bluetooth + + # bug #84431 + if use udev; then + insinto /etc/udev/rules.d/ + newins ${FILESDIR}/${PN}-2.24-udev.rules 70-bluetooth.rules + + exeinto /lib/udev/ + newexe ${FILESDIR}/${PN}-2.24-udev.script bluetooth.sh + fi + +} + +pkg_postinst() { + if use udev; then + einfo "You need to run 'udevstart' or reboot for the udev rules" + einfo "to take effect." + einfo + fi + einfo "If you use hidd, add --encrypt to the HIDD_OPTIONS in" + einfo "/etc/conf.d/bluetooth to secure your connection" + einfo + einfo "To use dund you must install net-dialup/ppp" + einfo +} + |