rev |
line source |
pascal@4102
|
1 # SliTaz package receipt.
|
pascal@4102
|
2
|
pascal@4102
|
3 PACKAGE="dahdi-tools"
|
pascal@7389
|
4 VERSION="2.4.0"
|
pascal@4102
|
5 CATEGORY="network"
|
pascal@4102
|
6 SHORT_DESC="Digium Asterisk Hardware Device Interface userland tools."
|
pascal@4102
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@4102
|
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
|
pascal@4102
|
9 WEB_SITE="http://www.asterisk.org/"
|
pascal@4102
|
10 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
|
pascal@4102
|
11 DEPENDS="libusb newt libpri"
|
pascal@4102
|
12 BUILD_DEPENDS="dahdi-linux-dev ppp-dev libusb-dev newt-dev libpri-dev"
|
pascal@4102
|
13 CONFIG_FILES="/etc/dahdi/"
|
pascal@4102
|
14
|
pascal@4102
|
15 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@4102
|
16 compile_rules()
|
pascal@4102
|
17 {
|
pascal@4102
|
18 cd $src
|
pascal@4102
|
19 ./configure \
|
pascal@4102
|
20 --prefix=/usr \
|
pascal@4102
|
21 --sysconfdir=/etc \
|
pascal@4102
|
22 --exec-prefix=/usr \
|
pascal@4102
|
23 --mandir=/usr/share/man \
|
pascal@4102
|
24 $CONFIGURE_ARGS &&
|
pascal@4102
|
25 make &&
|
pascal@4102
|
26 make -C ppp &&
|
pascal@4102
|
27 make DESTDIR=$PWD/_pkg install &&
|
pascal@4102
|
28 make DESTDIR=$PWD/_pkg -C ppp install &&
|
pascal@4102
|
29 make DESTDIR=$PWD/_pkg config
|
pascal@4102
|
30 }
|
pascal@4102
|
31
|
pascal@4102
|
32 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@4102
|
33 genpkg_rules()
|
pascal@4102
|
34 {
|
pascal@4102
|
35 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
|
pascal@4102
|
36 cp -a $_pkg/etc/dahdi $fs/etc
|
pascal@4102
|
37 cp -a $_pkg/usr/sbin $fs/usr
|
pascal@4102
|
38 cp -a $_pkg/usr/lib/lib*.so* $fs/usr/lib
|
pascal@4102
|
39 cp -a $_pkg/usr/share/dahdi $fs/usr/share
|
pascal@4102
|
40 }
|