diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-10 07:19:40 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-10 07:19:40 +0300 |
commit | bcd305bdd991fa57b71334180f9d7b261c6ea8a5 (patch) | |
tree | 88928d463e9524f1407722155b4798e562f00e52 /net-wireless | |
parent | 41143159a921f8fcc89fa3e2c9f68039650531d8 (diff) |
new file: net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
new file: net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc2-freebsd.patch
new file: net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc3-respect_LDFLAGS.patch
new file: net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc4-fix_build.patch
new file: net-wireless/aircrack-ng/files/aircrack-ng-9999-respect_LDFLAGS.patch
new file: net-wireless/aircrack-ng/files/process-group-leader.c
new file: net-wireless/bluez/bluez-9999.ebuild
new file: net-wireless/bluez/files/4.18/bluetooth-conf.d
new file: net-wireless/bluez/files/4.18/bluetooth-init.d
new file: net-wireless/bluez/files/4.18/conf.d-hidd
new file: net-wireless/bluez/files/4.18/cups-location.patch
new file: net-wireless/bluez/files/4.18/init.d-hidd
new file: net-wireless/bluez/files/4.31-as_needed.patch
new file: net-wireless/bluez/files/4.34-conditional_libsbc.patch
new file: net-wireless/bluez/files/4.60/bluetooth-conf.d
new file: net-wireless/bluez/files/4.60/bluetooth-init.d
new file: net-wireless/bluez/files/4.60/cups-location.patch
new file: net-wireless/bluez/files/bluetooth-init.d
new file: net-wireless/bluez/files/bluez-4.18-udev.rules
new file: net-wireless/bluez/files/bluez-4.18-udev.script
new file: net-wireless/bluez/files/bluez-4.62-makefile_ipctest.patch
new file: net-wireless/bluez/files/bluez-alsa_location.patch
new file: net-wireless/bluez/files/bluez-plugdev.patch
new file: net-wireless/bluez/files/conf.d-dund
new file: net-wireless/bluez/files/init.d-dund
new file: net-wireless/bluez/files/init.d-hidd
Diffstat (limited to 'net-wireless')
26 files changed, 999 insertions, 0 deletions
diff --git a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild new file mode 100644 index 0000000..7d5384a --- /dev/null +++ b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/aircrack-ng-1.1.ebuild,v 1.1 2010/04/29 21:12:40 arfrever Exp $ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs versionator subversion + +MY_PV="$(replace_version_separator 2 '-')" + +DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" +HOMEPAGE="http://www.aircrack-ng.org" +SRC_URI="" + +ESVN_REPO_URI="http://trac.aircrack-ng.org/svn/trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="+sqlite kernel_linux kernel_FreeBSD" + +DEPEND="dev-libs/openssl + sqlite? ( >=dev-db/sqlite-3.4 )" +RDEPEND="${DEPEND} + kernel_linux? ( net-wireless/iw net-wireless/wireless-tools )" + +S="${WORKDIR}/${PN}-${MY_PV}" + +have_sqlite() { + use sqlite && echo "true" || echo "false" +} + +pkg_setup() { + # aircrack-ng fails to build with -fPIE. + filter-flags -fPIE +} + +src_prepare() { +# epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch" +} + +src_compile() { + # UNSTABLE=true enables building of buddy-ng, easside-ng, tkiptun-ng and wesside-ng + emake CC="$(tc-getCC)" LD="$(tc-getLD)" sqlite="$(have_sqlite)" UNSTABLE=true || die "emake failed" +} + +src_install() { + # UNSTABLE=true enables installation of buddy-ng, easside-ng, tkiptun-ng and wesside-ng + emake \ + prefix="${EPREFIX}/usr" \ + mandir="${EPREFIX}/usr/share/man/man1" \ + DESTDIR="${D}" \ + sqlite="$(have_sqlite)" \ + UNSTABLE=true \ + install \ + || die "emake install failed" + + dodoc AUTHORS ChangeLog README +} + +pkg_postinst() { + # Message is (c) FreeBSD + # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 + if use kernel_FreeBSD ; then + einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" + einfo "mode of your wireless card. So do not care about what the manpages say about" + einfo "airmon-ng, airodump-ng sets monitor mode automatically." + echo + einfo "To return from monitor mode, issue the following command:" + einfo " ifconfig \${INTERFACE} -mediaopt monitor" + einfo + einfo "For aireplay-ng you need FreeBSD >= 7.0." + fi +} diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc2-freebsd.patch b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc2-freebsd.patch new file mode 100644 index 0000000..e3e0eba --- /dev/null +++ b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc2-freebsd.patch @@ -0,0 +1,108 @@ +http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/patch-src_airserv-ng.c?rev=1.1 +--- src/airserv-ng.c.orig 2008-06-10 02:55:09.000000000 +0700 ++++ src/airserv-ng.c 2008-08-11 13:39:46.000000000 +0700 +@@ -37,6 +37,15 @@ + + #ifdef __MACH__ + #include <libkern/OSByteOrder.h> ++#elif defined(__FreeBSD__) ++#include <machine/endian.h> ++#if BYTE_ORDER == BIG_ENDIAN ++# define __cpu_to_be32(x) (x) ++# define __cpu_to_be64(x) (x) ++#elif BYTE_ORDER == LITTLE_ENDIAN ++# define __cpu_to_be32(x) __bswap32(x) ++# define __cpu_to_be64(x) __bswap64(x) ++#endif + #else + #include <asm/byteorder.h> + #endif /* __MACH__ */ + + +http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/patch-src_osdep_network.c?rev=1.1 +--- src/osdep/network.c.orig 2008-06-10 02:55:09.000000000 +0700 ++++ src/osdep/network.c 2008-08-11 13:29:42.000000000 +0700 +@@ -32,6 +32,15 @@ + + #ifdef __MACH__ + #include <libkern/OSByteOrder.h> ++#elif defined(__FreeBSD__) ++#include <machine/endian.h> ++#if BYTE_ORDER == BIG_ENDIAN ++# define __be32_to_cpu(x) (x) ++# define __be64_to_cpu(x) (x) ++#elif BYTE_ORDER == LITTLE_ENDIAN ++# define __be32_to_cpu(x) __bswap32(x) ++# define __be64_to_cpu(x) __bswap64(x) ++#endif + #elif defined (__sun) && defined (__sparc) /* Solaris SPARC, not Solaris x86 */ + #include <sys/byteorder.h> + #else + + +http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c?rev=1.1 +--- src/osdep/freebsd.c.orig 2008-06-10 02:55:09.000000000 +0700 ++++ src/osdep/freebsd.c 2008-08-11 20:01:53.000000000 +0700 +@@ -53,7 +53,9 @@ + unsigned char pf_buf[4096]; + unsigned char *pf_next; + int pf_totlen; ++#if __FreeBSD_version > 700018 + struct ieee80211_bpf_params pf_txparams; ++#endif + + /* setchan */ + int pf_s; +@@ -280,13 +282,16 @@ + static int fbsd_write(struct wif *wi, unsigned char *h80211, int len, + struct tx_info *ti) + { ++#if __FreeBSD_version > 700018 + struct iovec iov[2]; ++#endif + struct priv_fbsd *pf = wi_priv(wi); + int rc; + + /* XXX make use of ti */ + if (ti) {} + ++#if __FreeBSD_version > 700018 + iov[0].iov_base = &pf->pf_txparams; + iov[0].iov_len = pf->pf_txparams.ibp_len; + +@@ -294,12 +299,19 @@ + iov[1].iov_len = len; + + rc = writev(pf->pf_fd, iov, 2); ++#else ++ rc = write(pf->pf_fd, h80211, len); ++#endif + if (rc == -1) + return rc; ++#if __FreeBSD_version > 700018 + if (rc < (int) iov[0].iov_len) + return 0; + + return rc - iov[0].iov_len; ++#else ++ return 0; ++#endif + } + + static int fbsd_set_channel(struct wif *wi, int chan) +@@ -542,6 +554,7 @@ + /* setup private state */ + pf = wi_priv(wi); + pf->pf_fd = fd; ++#if __FreeBSD_version > 700018 + pf->pf_txparams.ibp_vers = IEEE80211_BPF_VERSION; + pf->pf_txparams.ibp_len = sizeof(struct ieee80211_bpf_params) - 6; + pf->pf_txparams.ibp_rate1 = 2; /* 1 MB/s XXX */ +@@ -549,6 +562,7 @@ + pf->pf_txparams.ibp_flags = IEEE80211_BPF_NOACK; + pf->pf_txparams.ibp_power = 100; /* nominal max */ + pf->pf_txparams.ibp_pri = WME_AC_VO; /* high priority */ ++#endif + + return wi; + } diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc3-respect_LDFLAGS.patch b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc3-respect_LDFLAGS.patch new file mode 100644 index 0000000..2e5e4d0 --- /dev/null +++ b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc3-respect_LDFLAGS.patch @@ -0,0 +1,91 @@ +--- src/Makefile ++++ src/Makefile +@@ -93,13 +93,13 @@ + + + OSD = osdep +-LIBS = -L$(OSD) -l$(OSD) $(LIBPCAP) $(LDFLAGS) ++LIBS = -L$(OSD) -l$(OSD) $(LIBPCAP) + ifeq ($(OSNAME), cygwin) + LIBS += -liphlpapi -lsetupapi -luuid + endif + LIBOSD = $(OSD)/lib$(OSD).a + +-LIBSSL = -lssl -lcrypto $(LDFLAGS) ++LIBSSL = -lssl -lcrypto + LIBSQL = + ifeq ($(SQLITE), true) + LIBSQL = -L/usr/local/lib -lsqlite3 +@@ -143,55 +143,55 @@ + aircrack-ng-opt-prof -lpthread $(LIBSQL) + + aircrack-ng$(EXE): $(OBJS_AC) +- $(CC) $(CFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -lpthread $(LIBSSL) $(LIBSQL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -lpthread $(LIBSSL) $(LIBSQL) + + airdecap-ng$(EXE): $(OBJS_AD) +- $(CC) $(CFLAGS) $(OBJS_AD) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AD) -o $(@) $(LIBSSL) + + packetforge-ng$(EXE): $(OBJS_PF) +- $(CC) $(CFLAGS) $(OBJS_PF) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_PF) -o $(@) $(LIBSSL) + + aireplay-ng$(EXE): $(OBJS_AR) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AR) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AR) -o $(@) $(LIBS) $(LIBSSL) + + airodump-ng$(EXE): $(OBJS_ADU) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) + + airserv-ng$(EXE): $(OBJS_AS) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AS) -o $(@) $(LIBS) $(LIBPCAP) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AS) -o $(@) $(LIBS) $(LIBPCAP) + + airtun-ng$(EXE): $(OBJS_AT) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AT) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AT) -o $(@) $(LIBS) $(LIBSSL) + + ivstools$(EXE): $(OBJS_IV) +- $(CC) $(CFLAGS) $(OBJS_IV) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_IV) -o $(@) $(LIBSSL) + + kstats$(EXE): kstats.o +- $(CC) $(CFLAGS) kstats.o -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) kstats.o -o $(@) + + wesside-ng$(EXE): $(OBJS_WS) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_WS) -o $(@) $(LIBS) $(LIBSSL) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_WS) -o $(@) $(LIBS) $(LIBSSL) -lz + + easside-ng$(EXE): $(OBJS_ES) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_ES) -o $(@) $(LIBS) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_ES) -o $(@) $(LIBS) -lz + + buddy-ng$(EXE): $(OBJS_BUDDY) +- $(CC) $(CFLAGS) $(OBJS_BUDDY) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BUDDY) -o $(@) + + makeivs-ng$(EXE): $(OBJS_MI) +- $(CC) $(CFLAGS) $(OBJS_MI) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_MI) -o $(@) + + airolib-ng$(EXE): $(OBJS_AL) +- $(CC) $(CFLAGS) $(OBJS_AL) -o $(@) $(LIBSSL) -DHAVE_REGEXP $(LIBSQL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AL) -o $(@) $(LIBSSL) -DHAVE_REGEXP $(LIBSQL) + + airbase-ng$(EXE): $(OBJS_AB) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -lpthread ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -lpthread + + airdecloak-ng$(EXE): $(OBJS_AU) +- $(CC) $(CFLAGS) $(OBJS_AU) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AU) -o $(@) + + tkiptun-ng$(EXE): $(OBJS_TT) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_TT) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_TT) -o $(@) $(LIBS) $(LIBSSL) + + strip: $(BINFILES) $(SBINFILES) + strip $(BINFILES) $(SBINFILES) diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc4-fix_build.patch b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc4-fix_build.patch new file mode 100644 index 0000000..a01b682 --- /dev/null +++ b/net-wireless/aircrack-ng/files/aircrack-ng-1.0_rc4-fix_build.patch @@ -0,0 +1,11 @@ +--- src/osdep/radiotap/ieee80211_radiotap.h ++++ src/osdep/radiotap/ieee80211_radiotap.h +@@ -38,6 +38,8 @@ + #ifndef IEEE80211RADIOTAP_H + #define IEEE80211RADIOTAP_H + ++#include <sys/types.h> ++ + /* Radiotap header version (from official NetBSD feed) */ + #define IEEE80211RADIOTAP_VERSION "1.5" + /* Base version of the radiotap packet header data */ diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-9999-respect_LDFLAGS.patch b/net-wireless/aircrack-ng/files/aircrack-ng-9999-respect_LDFLAGS.patch new file mode 100644 index 0000000..b7358b3 --- /dev/null +++ b/net-wireless/aircrack-ng/files/aircrack-ng-9999-respect_LDFLAGS.patch @@ -0,0 +1,91 @@ +--- src/Makefile ++++ src/Makefile +@@ -90,13 +90,13 @@ + + + OSD = osdep +-LIBS = -L$(OSD) -l$(OSD) $(LIBPCAP) $(LDFLAGS) ++LIBS = -L$(OSD) -l$(OSD) $(LIBPCAP) + ifeq ($(OSNAME), cygwin) + LIBS += -liphlpapi -lsetupapi -luuid + endif + LIBOSD = $(OSD)/lib$(OSD).a + +-LIBSSL = -lssl -lcrypto $(LDFLAGS) ++LIBSSL = -lssl -lcrypto + LIBSQL = + ifeq ($(SQLITE), true) + LIBSQL = -L/usr/local/lib -lsqlite3 +@@ -140,55 +140,55 @@ + aircrack-ng-opt-prof -lpthread $(LIBSQL) + + aircrack-ng$(EXE): $(OBJS_AC) +- $(CC) $(CFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -lpthread $(LIBSSL) $(LIBSQL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -lpthread $(LIBSSL) $(LIBSQL) + + airdecap-ng$(EXE): $(OBJS_AD) +- $(CC) $(CFLAGS) $(OBJS_AD) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AD) -o $(@) $(LIBSSL) + + packetforge-ng$(EXE): $(OBJS_PF) +- $(CC) $(CFLAGS) $(OBJS_PF) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_PF) -o $(@) $(LIBSSL) + + aireplay-ng$(EXE): $(OBJS_AR) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AR) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AR) -o $(@) $(LIBS) $(LIBSSL) + + airodump-ng$(EXE): $(OBJS_ADU) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) -lpthread ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) -lpthread + + airserv-ng$(EXE): $(OBJS_AS) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AS) -o $(@) $(LIBS) $(LIBPCAP) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AS) -o $(@) $(LIBS) $(LIBPCAP) + + airtun-ng$(EXE): $(OBJS_AT) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AT) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AT) -o $(@) $(LIBS) $(LIBSSL) + + ivstools$(EXE): $(OBJS_IV) +- $(CC) $(CFLAGS) $(OBJS_IV) -o $(@) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_IV) -o $(@) $(LIBSSL) + + kstats$(EXE): kstats.o +- $(CC) $(CFLAGS) kstats.o -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) kstats.o -o $(@) + + wesside-ng$(EXE): $(OBJS_WS) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_WS) -o $(@) $(LIBS) $(LIBSSL) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_WS) -o $(@) $(LIBS) $(LIBSSL) -lz + + easside-ng$(EXE): $(OBJS_ES) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_ES) -o $(@) $(LIBS) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_ES) -o $(@) $(LIBS) -lz + + buddy-ng$(EXE): $(OBJS_BUDDY) +- $(CC) $(CFLAGS) $(OBJS_BUDDY) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BUDDY) -o $(@) + + makeivs-ng$(EXE): $(OBJS_MI) +- $(CC) $(CFLAGS) $(OBJS_MI) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_MI) -o $(@) + + airolib-ng$(EXE): $(OBJS_AL) +- $(CC) $(CFLAGS) $(OBJS_AL) -o $(@) $(LIBSSL) -DHAVE_REGEXP $(LIBSQL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AL) -o $(@) $(LIBSSL) -DHAVE_REGEXP $(LIBSQL) + + airbase-ng$(EXE): $(OBJS_AB) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -lpthread ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -lpthread + + airdecloak-ng$(EXE): $(OBJS_AU) +- $(CC) $(CFLAGS) $(OBJS_AU) -o $(@) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_AU) -o $(@) + + tkiptun-ng$(EXE): $(OBJS_TT) $(LIBOSD) +- $(CC) $(CFLAGS) $(OBJS_TT) -o $(@) $(LIBS) $(LIBSSL) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_TT) -o $(@) $(LIBS) $(LIBSSL) + + strip: $(BINFILES) $(SBINFILES) + strip $(BINFILES) $(SBINFILES) diff --git a/net-wireless/aircrack-ng/files/process-group-leader.c b/net-wireless/aircrack-ng/files/process-group-leader.c new file mode 100644 index 0000000..4abdccc --- /dev/null +++ b/net-wireless/aircrack-ng/files/process-group-leader.c @@ -0,0 +1,26 @@ +#include <unistd.h> +#include <sys/signal.h> +#include <sys/wait.h> +#include <stdlib.h> + +int main (int argc, char *argv[]) { + pid_t pid; + + signal (SIGQUIT, SIG_IGN); + signal (SIGTERM, SIG_IGN); + setpgid (0, 0); + + pid=fork (); + if (pid == 0) { + int status; + wait (&status); + exit (WEXITSTATUS(status)); + } + else { + execv (argv[1], &argv[1]); + exit (1); + } + + return 0; +} + diff --git a/net-wireless/bluez/bluez-9999.ebuild b/net-wireless/bluez/bluez-9999.ebuild new file mode 100644 index 0000000..1a8c37a --- /dev/null +++ b/net-wireless/bluez/bluez-9999.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.72.ebuild,v 1.1 2010/09/24 21:32:51 pacho Exp $ + +EAPI="2" + +inherit multilib eutils git autotools + +DESCRIPTION="Bluetooth Tools and System Daemons for Linux" +HOMEPAGE="http://bluez.sourceforge.net/" +EGIT_REPO_URI="git://git.kernel.org/pub/scm/bluetooth/bluez.git" +SRC_URI="" +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" + +IUSE="alsa attrib caps +consolekit cups debug gstreamer maemo6 health old-daemons pcmcia pnat test-programs usb" + +CDEPEND="alsa? ( + media-libs/alsa-lib[alsa_pcm_plugins_extplug,alsa_pcm_plugins_ioplug] + ) + caps? ( >=sys-libs/libcap-ng-0.6.2 ) + gstreamer? ( + >=media-libs/gstreamer-0.10 + >=media-libs/gst-plugins-base-0.10 ) + usb? ( dev-libs/libusb ) + cups? ( net-print/cups ) + >=sys-fs/udev-146[extras] + >=dev-libs/glib-2.14 + sys-apps/dbus + media-libs/libsndfile + >=dev-libs/libnl-1.1 + !net-wireless/bluez-libs + !net-wireless/bluez-utils" +DEPEND="sys-devel/flex + >=dev-util/pkgconfig-0.20 + ${CDEPEND}" +RDEPEND="${CDEPEND} + consolekit? ( sys-auth/pambase[consolekit] ) + test-programs? ( + dev-python/dbus-python + dev-python/pygobject )" + +pkg_setup() { + if ! use consolekit; then + enewgroup plugdev + fi +} + +src_prepare() { + eautoreconf +# if ! use consolekit; then +# # No consolekit for at_console etc, so we grant plugdev the rights +# epatch "${FILESDIR}/bluez-plugdev.patch" +# fi + +# if use cups; then +# epatch "${FILESDIR}/4.60/cups-location.patch" +# fi +} + +src_configure() { + econf \ + $(use_enable caps capng) \ + --enable-network \ + --enable-serial \ + --enable-input \ + --enable-audio \ + --enable-service \ + $(use_enable gstreamer) \ + $(use_enable alsa) \ + $(use_enable usb) \ + --enable-netlink \ + --enable-tools \ + --enable-bccmd \ + --enable-dfutool \ + $(use_enable old-daemons hidd) \ + $(use_enable old-daemons pand) \ + $(use_enable old-daemons dund) \ + $(use_enable attrib) \ + $(use_enable health) \ + $(use_enable pnat) \ + $(use_enable maemo6) \ + $(use_enable cups) \ + $(use_enable test-programs test) \ + --enable-udevrules \ + --enable-configfiles \ + $(use_enable pcmcia) \ + $(use_enable debug) \ + --localstatedir=/var \ + --disable-hal +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog README || die + + if use test-programs ; then + cd "${S}/test" + dobin simple-agent simple-service monitor-bluetooth + newbin list-devices list-bluetooth-devices + for b in apitest hsmicro hsplay test-* ; do + newbin "${b}" "bluez-${b}" + done + insinto /usr/share/doc/${PF}/test-services + doins service-* + + cd "${S}" + fi + + if use old-daemons; then + newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die + newinitd "${FILESDIR}/init.d-hidd" hidd || die + newconfd "${FILESDIR}/conf.d-dund" dund || die + newinitd "${FILESDIR}/init.d-dund" dund || die + fi + + insinto /etc/bluetooth + doins \ + input/input.conf \ + audio/audio.conf \ + network/network.conf \ + serial/serial.conf \ + || die + + insinto /etc/udev/rules.d/ + newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die + exeinto /$(get_libdir)/udev/ + newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die + + newinitd "${FILESDIR}/bluetooth-init.d" bluetooth || die + newconfd "${FILESDIR}/4.60/bluetooth-conf.d" bluetooth || die + + # Install oui.txt as requested in bug #283791 and approved by upstream + insinto /var/lib/misc + doins "${DISTDIR}/oui.txt" || die +} + +pkg_postinst() { + udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth + + if ! has_version "net-dialup/ppp"; then + elog + elog "To use dial up networking you must install net-dialup/ppp." + fi + + if ! has_version "net-wireless/gnome-bluetooth" && ! has_version "net-wireless/kbluetooth"; then + elog + elog "For desktop integration you can try net-wireless/gnome-bluetooth" + elog "for gnome and net-wireless/kbluetooth for kde." + fi + + if ! use old-daemons; then + elog + elog "Use the old-daemons use flag to get the old daemons like hidd or pand" + elog "installed. Please note that 'bluetooth' init script doesn't stop the old" + elog "daemons after you update it, so it's recommended to stop all of them using" + elog "their own init scripts or manually killing them." + fi + + if use consolekit; then + elog + elog "If you want to use rfcomm as a normal user, you need to add the user" + elog "to the uucp group." + else + elog + elog "Since you have the consolekit use flag disabled, you will only be able to run" + elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as " + elog "a regular user, you need to enable the consolekit use flag for this package or" + elog "to add the user to the plugdev group." + fi + + if use old-daemons; then + elog + elog "dund and hidd init scripts were installed because you have the old-daemons" + elog "use flag on. They are not started by default via udev so please add them" + elog "to the required runlevels using rc-update <runlevel> add <dund/hidd>. If" + elog "you need init scripts for the other daemons, please file requests" + elog "to https://bugs.gentoo.org." + fi +} diff --git a/net-wireless/bluez/files/4.18/bluetooth-conf.d b/net-wireless/bluez/files/4.18/bluetooth-conf.d new file mode 100644 index 0000000..c84ac4f --- /dev/null +++ b/net-wireless/bluez/files/4.18/bluetooth-conf.d @@ -0,0 +1,10 @@ +# Bluetooth configuraton file + +# Run hid2hci (allowed values are "true" and "false") +HID2HCI_ENABLE=false + +# Bind rfcomm devices (allowed values are "true" and "false") +RFCOMM_ENABLE=true + +# Config file for rfcomm +RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/net-wireless/bluez/files/4.18/bluetooth-init.d b/net-wireless/bluez/files/4.18/bluetooth-init.d new file mode 100644 index 0000000..d667084 --- /dev/null +++ b/net-wireless/bluez/files/4.18/bluetooth-init.d @@ -0,0 +1,48 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.18/bluetooth-init.d,v 1.1 2008/11/28 21:21:35 dev-zero Exp $ + +depend() { + after coldplug + need dbus localmount +} + +start() { + ebegin "Starting Bluetooth" + local result=0 + + ebegin " Starting bluetoothd" + # -s enables internal sdp server + start-stop-daemon --start \ + --exec /usr/sbin/bluetoothd + result=$? + eend ${result} + + if [ "${HID2HCI_ENABLE}" = "true" -a -x /usr/sbin/hid2hci ]; then + ebegin " Running hid2hci" + /usr/sbin/hid2hci --tohci -q #be quiet + [ ${result} == 0 ] && result=$? + eend ${result} + fi + + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + ebegin " Starting rfcomm" + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + [ ${result} == 0 ] && result=$? + eend ${result} + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi + + eend ${result} +} + +stop() { + ebegin "Shutting down Bluetooth" + + start-stop-daemon --stop --quiet --exec /usr/sbin/bluetoothd + eend $? +} diff --git a/net-wireless/bluez/files/4.18/conf.d-hidd b/net-wireless/bluez/files/4.18/conf.d-hidd new file mode 100644 index 0000000..1677ef0 --- /dev/null +++ b/net-wireless/bluez/files/4.18/conf.d-hidd @@ -0,0 +1,5 @@ +# Bluetooth hidd daemon configuraton file + +# Arguments to hidd +HIDD_OPTIONS="--encrypt" + diff --git a/net-wireless/bluez/files/4.18/cups-location.patch b/net-wireless/bluez/files/4.18/cups-location.patch new file mode 100644 index 0000000..e0ddc02 --- /dev/null +++ b/net-wireless/bluez/files/4.18/cups-location.patch @@ -0,0 +1,18 @@ +? cups/.deps +? cups/Makefile +? cups/Makefile.in +Index: cups/Makefile.am +=================================================================== +RCS file: /cvsroot/bluez/utils/cups/Makefile.am,v +retrieving revision 1.9 +diff -u -r1.9 Makefile.am +--- cups/Makefile.am 20 Aug 2006 02:21:03 -0000 1.9 ++++ cups/Makefile.am 1 Jun 2007 15:47:14 -0000 +@@ -1,6 +1,6 @@ + + if CUPS +-cupsdir = $(libdir)/cups/backend ++cupsdir = `cups-config --serverbin`/backend + + cups_PROGRAMS = bluetooth + else diff --git a/net-wireless/bluez/files/4.18/init.d-hidd b/net-wireless/bluez/files/4.18/init.d-hidd new file mode 100644 index 0000000..9e61281 --- /dev/null +++ b/net-wireless/bluez/files/4.18/init.d-hidd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.18/init.d-hidd,v 1.1 2008/11/28 21:21:35 dev-zero Exp $ + +depend() { + need bluetooth +} + +start() { + ebegin "Starting hidd" + start-stop-daemon --start --quiet \ + --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server + local result="$?" + local service="/etc/bluetooth/input.service" + if [ "${result}" != "0" ] && grep -q "Autostart=true" ${service}; then + eerror "You have Autostart=true in ${service}." + eerror "Change this to false if you want to use hidd." + fi + eend ${result} +} + +stop() { + ebegin "Stopping hidd" + hidd --killall + start-stop-daemon --stop --quiet --exec /usr/bin/hidd + eend $? +} + diff --git a/net-wireless/bluez/files/4.31-as_needed.patch b/net-wireless/bluez/files/4.31-as_needed.patch new file mode 100644 index 0000000..99b8ce4 --- /dev/null +++ b/net-wireless/bluez/files/4.31-as_needed.patch @@ -0,0 +1,31 @@ +diff -Naur bluez-4.31.orig/common/Makefile.am bluez-4.31/common/Makefile.am +--- bluez-4.31.orig/common/Makefile.am 2009-02-27 22:57:29.515330134 +0100 ++++ bluez-4.31/common/Makefile.am 2009-02-27 22:58:11.249328307 +0100 +@@ -4,6 +4,8 @@ + libhelper_a_SOURCES = oui.h oui.c textfile.h textfile.c logging.h logging.c \ + glib-helper.h glib-helper.c sdp-xml.h sdp-xml.c btio.h btio.c + ++libhelper_a_LIBADD = @BLUEZ_LIBS@ ++ + noinst_PROGRAMS = test_textfile + + test_textfile_LDADD = libhelper.a +diff -Naur bluez-4.31.orig/test/Makefile.am bluez-4.31/test/Makefile.am +--- bluez-4.31.orig/test/Makefile.am 2009-02-27 22:57:29.518659538 +0100 ++++ bluez-4.31/test/Makefile.am 2009-02-27 23:07:09.294597176 +0100 +@@ -23,13 +23,13 @@ + + bdaddr_SOURCES = bdaddr.c + +-bdaddr_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a ++bdaddr_LDADD = $(top_builddir)/common/libhelper.a @BLUEZ_LIBS@ + + lmptest_LDADD = @BLUEZ_LIBS@ + + agent_LDADD = @DBUS_LIBS@ + +-btiotest_LDADD = @GLIB_LIBS@ @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a ++btiotest_LDADD = @GLIB_LIBS@ $(top_builddir)/common/libhelper.a @BLUEZ_LIBS@ + + noinst_MANS = bdaddr.8 + diff --git a/net-wireless/bluez/files/4.34-conditional_libsbc.patch b/net-wireless/bluez/files/4.34-conditional_libsbc.patch new file mode 100644 index 0000000..e4924c7 --- /dev/null +++ b/net-wireless/bluez/files/4.34-conditional_libsbc.patch @@ -0,0 +1,39 @@ +The configure stuff is a inconsequent: +- even if neither alsa nor gstreamer support is enabled, SBC_LIBS gets substituted by libsbc.la + which doesn't get build without alsa or gstreamer. Making this conditional helps. +- ipctest needs both libipc.la and libsbc.la and fails if SBC_LIBS/SBC_CFLAGS are empty, + making the build conditional helps again. +--- acinclude.m4.orig 2009-04-06 16:26:14.570780241 +0200 ++++ acinclude.m4 2009-04-06 16:26:59.540779148 +0200 +@@ -330,8 +330,10 @@ + AC_SUBST([GDBUS_CFLAGS], ['-I$(top_srcdir)/gdbus']) + AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la']) + +- AC_SUBST([SBC_CFLAGS], ['-I$(top_srcdir)/sbc']) +- AC_SUBST([SBC_LIBS], ['$(top_builddir)/sbc/libsbc.la']) ++ if (test "${alsa_enable}" = "yes" || test "${gstreamer_enable}" = "yes"); then ++ AC_SUBST([SBC_CFLAGS], ['-I$(top_srcdir)/sbc']) ++ AC_SUBST([SBC_LIBS], ['$(top_builddir)/sbc/libsbc.la']) ++ fi + + AM_CONDITIONAL(SNDFILE, test "${sndfile_enable}" = "yes" && test "${sndfile_found}" = "yes") + AM_CONDITIONAL(NETLINK, test "${netlink_enable}" = "yes" && test "${netlink_found}" = "yes") +--- audio/Makefile.am.orig 2009-04-06 16:47:21.240681272 +0200 ++++ audio/Makefile.am 2009-04-06 17:42:27.240597715 +0200 +@@ -60,10 +60,16 @@ + + libipc_la_SOURCES = ipc.h ipc.c + ++if AUDIOPLUGIN ++if SBC ++ + noinst_PROGRAMS = ipctest + + ipctest_LDADD= libipc.la @SBC_LIBS@ @GLIB_LIBS@ + ++endif ++endif ++ + AM_CFLAGS = -fvisibility=hidden @SBC_CFLAGS@ \ + @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ + diff --git a/net-wireless/bluez/files/4.60/bluetooth-conf.d b/net-wireless/bluez/files/4.60/bluetooth-conf.d new file mode 100644 index 0000000..b0cc744 --- /dev/null +++ b/net-wireless/bluez/files/4.60/bluetooth-conf.d @@ -0,0 +1,7 @@ +# Bluetooth configuraton file + +# Bind rfcomm devices (allowed values are "true" and "false") +RFCOMM_ENABLE=true + +# Config file for rfcomm +RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/net-wireless/bluez/files/4.60/bluetooth-init.d b/net-wireless/bluez/files/4.60/bluetooth-init.d new file mode 100644 index 0000000..42f2238 --- /dev/null +++ b/net-wireless/bluez/files/4.60/bluetooth-init.d @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.2 2010/06/11 10:14:00 pacho Exp $ + +depend() { + after coldplug + need dbus localmount +} + +start() { + ebegin "Starting Bluetooth" + + udevadm trigger --subsystem-match=bluetooth --action=add + eend $? + + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + ebegin " Starting rfcomm" + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + eend $? + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi +} + +stop() { + ebegin "Shutting down Bluetooth" + eend 0 +} diff --git a/net-wireless/bluez/files/4.60/cups-location.patch b/net-wireless/bluez/files/4.60/cups-location.patch new file mode 100644 index 0000000..66ed8dc --- /dev/null +++ b/net-wireless/bluez/files/4.60/cups-location.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.tools b/Makefile.tools +index d9a2425..a382e05 100644 +--- a/Makefile.tools ++++ b/Makefile.tools +@@ -122,7 +122,7 @@ EXTRA_DIST += tools/dfubabel.1 tools/avctrl.8 + + + if CUPS +-cupsdir = $(libdir)/cups/backend ++cupsdir = `cups-config --serverbin`/backend + + cups_PROGRAMS = cups/bluetooth + diff --git a/net-wireless/bluez/files/bluetooth-init.d b/net-wireless/bluez/files/bluetooth-init.d new file mode 100644 index 0000000..6e19ffb --- /dev/null +++ b/net-wireless/bluez/files/bluetooth-init.d @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d,v 1.1 2010/09/07 11:00:27 pacho Exp $ + +depend() { + after coldplug + need dbus localmount +} + +start() { + ebegin "Starting Bluetooth" + + udevadm trigger --subsystem-match=bluetooth --action=add + eend $? + + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + eindent + ebegin "Starting rfcomm" + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + eoutdent + eend $? + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi +} + +stop() { + ebegin "Shutting down Bluetooth" + eend 0 +} diff --git a/net-wireless/bluez/files/bluez-4.18-udev.rules b/net-wireless/bluez/files/bluez-4.18-udev.rules new file mode 100644 index 0000000..b3ccd5b --- /dev/null +++ b/net-wireless/bluez/files/bluez-4.18-udev.rules @@ -0,0 +1,5 @@ +# Start/Stop bluetooth service on device insertion. Gentoo specific. +SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="bluetooth.sh" + +# So that normal users can dial out. +SUBSYSTEM=="tty", SUBSYSTEMS=="bluetooth", GROUP="uucp" diff --git a/net-wireless/bluez/files/bluez-4.18-udev.script b/net-wireless/bluez/files/bluez-4.18-udev.script new file mode 100644 index 0000000..a532e26 --- /dev/null +++ b/net-wireless/bluez/files/bluez-4.18-udev.script @@ -0,0 +1,28 @@ +#!/bin/sh +# +# bluetooth.sh: udev external RUN script +# +# Copyright: +# 2005-2006 Henrik Brix Andersen <brix@gentoo.org> +# 2007 Petteri Räty <betelgeuse@gentoo.org> +# 2008 Tiziano Müller <dev-zero@gentoo.org> +# Distributed under the terms of the GNU General Public License v2 + +script=/etc/init.d/bluetooth + +# Find out where sysfs is mounted. Exit if not available +sysfs=`grep -F sysfs /proc/mounts | awk '{print $2}'` +if [ "$sysfs" = "" ]; then + echo "sysfs is required" + exit 1 +fi + +if [ ! -d $sysfs/class/bluetooth/hci[0-9]* -a ! -d $sysfs/bus/bluetooth/devices/hci[0-9]* ]; then + if $script --quiet status; then + IN_HOTPLUG=1 $script --quiet stop + fi +else + if ! $script --quiet status; then + IN_HOTPLUG=1 $script --quiet start + fi +fi diff --git a/net-wireless/bluez/files/bluez-4.62-makefile_ipctest.patch b/net-wireless/bluez/files/bluez-4.62-makefile_ipctest.patch new file mode 100644 index 0000000..6304a6f --- /dev/null +++ b/net-wireless/bluez/files/bluez-4.62-makefile_ipctest.patch @@ -0,0 +1,29 @@ +From f62006a86143f2c8556b4e6f3e74508db6b2aa5d Mon Sep 17 00:00:00 2001 +From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org> +Date: Mon, 8 Mar 2010 20:01:32 -0300 +Subject: [PATCH 1/1] Fix compilation when --enable-test is passed + +When --enable-test is passed along with --disable-alsa and +--disable-gstreamer, the SBC lib is not built, which breaks +compilation of the ipctest test program. +--- + acinclude.m4 | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/acinclude.m4 b/acinclude.m4 +index 2e4444d..f7bb047 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -316,7 +316,8 @@ AC_DEFUN([AC_ARG_BLUEZ], [ + + AM_CONDITIONAL(SNDFILE, test "${sndfile_enable}" = "yes" && test "${sndfile_found}" = "yes") + AM_CONDITIONAL(USB, test "${usb_enable}" = "yes" && test "${usb_found}" = "yes") +- AM_CONDITIONAL(SBC, test "${alsa_enable}" = "yes" || test "${gstreamer_enable}" = "yes") ++ AM_CONDITIONAL(SBC, test "${alsa_enable}" = "yes" || test "${gstreamer_enable}" = "yes" || ++ test "${test_enable}" = "yes") + AM_CONDITIONAL(ALSA, test "${alsa_enable}" = "yes" && test "${alsa_found}" = "yes") + AM_CONDITIONAL(GSTREAMER, test "${gstreamer_enable}" = "yes" && test "${gstreamer_found}" = "yes") + AM_CONDITIONAL(AUDIOPLUGIN, test "${audio_enable}" = "yes") +-- +1.7.0.2 + diff --git a/net-wireless/bluez/files/bluez-alsa_location.patch b/net-wireless/bluez/files/bluez-alsa_location.patch new file mode 100644 index 0000000..4d0712c --- /dev/null +++ b/net-wireless/bluez/files/bluez-alsa_location.patch @@ -0,0 +1,16 @@ +bluez installs stuff into /etc/alsa, which is wrong since the +correct location (also stated in alsa-lib configure.in) is +/usr/share/alsa instead +Upstream report: +http://permalink.gmane.org/gmane.linux.bluez.kernel/4739 +--- Makefile.am~ 2010-02-12 20:26:48.000000000 +0100 ++++ Makefile.am 2010-03-05 10:17:15.000000000 +0100 +@@ -241,7 +241,7 @@ + audio_libasound_module_ctl_bluetooth_la_CFLAGS = @ALSA_CFLAGS@ + + if CONFIGFILES +-alsaconfdir = $(sysconfdir)/alsa ++alsaconfdir = $(datadir)/alsa + + alsaconf_DATA = audio/bluetooth.conf + endif diff --git a/net-wireless/bluez/files/bluez-plugdev.patch b/net-wireless/bluez/files/bluez-plugdev.patch new file mode 100755 index 0000000..726838a --- /dev/null +++ b/net-wireless/bluez/files/bluez-plugdev.patch @@ -0,0 +1,14 @@ +diff -Nurp bluez-4.39.orig/src/bluetooth.conf bluez-4.39/src/bluetooth.conf +--- bluez-4.39.orig/src/bluetooth.conf 2008-12-20 20:18:10.000000000 +0100 ++++ bluez-4.39/src/bluetooth.conf 2009-09-05 13:30:34.411581498 +0200 +@@ -17,6 +17,10 @@ + <allow send_destination="org.bluez"/> + </policy> + ++ <policy group="plugdev"> ++ <allow send_destination="org.bluez"/> ++ </policy> ++ + <policy context="default"> + <deny send_destination="org.bluez"/> + </policy> diff --git a/net-wireless/bluez/files/conf.d-dund b/net-wireless/bluez/files/conf.d-dund new file mode 100644 index 0000000..a199fc7 --- /dev/null +++ b/net-wireless/bluez/files/conf.d-dund @@ -0,0 +1,4 @@ +# Bluetooth DUN daemon configuraton file + +# Arguments to dund +DUND_OPTIONS="--search --persist" diff --git a/net-wireless/bluez/files/init.d-dund b/net-wireless/bluez/files/init.d-dund new file mode 100644 index 0000000..c8c8663 --- /dev/null +++ b/net-wireless/bluez/files/init.d-dund @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/init.d-dund,v 1.1 2010/09/24 21:32:51 pacho Exp $ + +depend() { + need bluetooth +} + +start() { + local result service + + ebegin "Starting dund" + start-stop-daemon --start --quiet \ + --exec /usr/bin/dund -- ${DUND_OPTIONS} + result="$?" + eend ${result} +} + +stop() { + ebegin "Stopping dund" + /usr/bin/dund -K + start-stop-daemon --stop --quiet --exec /usr/bin/dund + eend $? +} diff --git a/net-wireless/bluez/files/init.d-hidd b/net-wireless/bluez/files/init.d-hidd new file mode 100644 index 0000000..39399a9 --- /dev/null +++ b/net-wireless/bluez/files/init.d-hidd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/init.d-hidd,v 1.1 2010/09/07 11:00:27 pacho Exp $ + +depend() { + need bluetooth +} + +start() { + local result service + + ebegin "Starting hidd" + start-stop-daemon --start --quiet \ + --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server + result="$?" + service="/etc/bluetooth/input.service" + if [ ${result} -ne 0 ] && grep -q "Autostart=true" "${service}"; then + eerror "You have Autostart=true in ${service}." + eerror "Change this to false if you want to use hidd." + fi + eend ${result} +} + +stop() { + ebegin "Stopping hidd" + hidd --killall + start-stop-daemon --stop --quiet --exec /usr/bin/hidd + eend $? +} |