wok view dahdi-tools/receipt @ rev 25222
updated python-pyajam ( -> 0.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 16:19:37 2022 +0100 (2022-07-13) |
parents | 05c8d8d9d934 |
children | bff339676249 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-tools"
4 VERSION="2.11.1"
5 CATEGORY="network"
6 SHORT_DESC="Digium Asterisk Hardware Device Interface userland tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.asterisk.org/"
11 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
12 CONFIG_FILES="/etc/dahdi/"
14 DEPENDS="libusb-compat newt libpri dahdi-perl"
15 BUILD_DEPENDS="dahdi-linux-dev ppp-dev newt-dev libpri-dev gtk+-dev file"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;/-rc/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --exec-prefix=/usr \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS 2>&1 | grep -v conftest &&
33 make &&
34 make -C ppp &&
35 make DESTDIR=$DESTDIR install &&
36 make DESTDIR=$DESTDIR -C ppp install &&
37 make DESTDIR=$DESTDIR config
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
44 cp -a $install/etc/dahdi $fs/etc
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/lib/lib*.so* $fs/usr/lib
47 cp -a $install/usr/share/dahdi $fs/usr/share
48 }