wok view dahdi-tools/receipt @ rev 25584
Update some web_site / wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 02 17:42:43 2023 +0000 (19 months ago) |
parents | 453c249b6219 |
children |
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="https://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 }