blob: 6984073a3d8630f7be1178fdcb1d0faddcb32bc6 (
plain)
1 # Description: Digium Asterisk Hardware Device Interface Tools: userspace tools
2 # URL: http://www.voip-info.org/wiki/view/DAHDI
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: dahdi
5 # Optional: newt
6
7 name=dahdi-tools
8 version=2.10.1
9 release=2
10 source=(http://downloads.asterisk.org/pub/telephony/$name/releases/$name-$version.tar.gz)
11
12 build () {
13 cd $name-$version
14
15 ./configure \
16 --prefix=/usr \
17 --mandir=/usr/man
18
19 sed -i -e 's|-Werror||g' xpp/Makefile
20
21 make -j 1
22 make -j 1 config install DESTDIR=$PKG install
23
24 rm -rf $PKG/etc/bash_completion.d/
25
26 # move udev rules to /lib/udev/rules.d
27 mkdir $PKG/lib
28 mv $PKG/etc/udev $PKG/lib/
29 sed -i \
30 -e 's|%E{DAHDI_TOOLS_ROOTDIR}||g' \
31 -e 's|%E{XPP_INIT_DIR}/|/usr/share/dahdi/|g' \
32 $PKG/lib/udev/rules.d/*
33
34 }
|