blob: fd538fb04f029f6d457f97977dc9980e21e336a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/bluez-utils-2.3.ebuild,v 1.4 2003/09/07 00:19:18 msterret Exp $
DESCRIPTION="bluetooth utilities"
HOMEPAGE="http://bluez.sourceforge.net/"
SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="gtk"
DEPEND="sys-devel/bison
sys-devel/flex
>=net-wireless/bluez-libs-2.4"
RDEPEND=">=net-wireless/bluez-libs-2.4
gtk? ( >=dev-python/pygtk-0.6.11 )"
src_unpack() {
unpack ${A}
cd ${S}
# Fix some installation locations
for dir in rfcomm tools; do
mv -f $dir/Makefile.in ${T}/Makefile.in
sed -e "s:\$(prefix)/usr/share/man:\@mandir\@:" \
${T}/Makefile.in > $dir/Makefile.in;
done
mv -f hcid/Makefile.in ${T}/Makefile.in
sed -e "s:\$(prefix)/etc/bluetooth:/etc/bluetooth:" \
${T}/Makefile.in > hcid/Makefile.in
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() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install() {
make DESTDIR=${D} install || die
}
pkg_postinst() {
# rfcomm needs some devices created to function properly
C=0
while [ $C -lt 16 ]; do
if [ ! -c /dev/rfcomm$C ]; then
mknod -m 666 /dev/rfcomm$C c 216 $C
fi
C=`expr $C + 1`
done
}
|