wok view siproxd/receipt @ rev 25501
Up aspell-pl (6.0_20230101-0), monitorix (3.15.0), simh (3.12.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 11 14:20:29 2023 +0000 (22 months ago) |
parents | 36ebaf6cbb62 |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="siproxd"
4 VERSION="0.8.3"
5 CATEGORY="network"
6 SHORT_DESC="A masquerading SIP Proxy Server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://siproxd.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="osip"
15 BUILD_DEPENDS="libtool osip-dev sqlite-dev"
17 CONFIG_FILES="/etc/siproxd"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/.*const ident.*/#undef lt_preloaded_symbols\n#define lt_preloaded_symbols lt_libltdl_LTX_preloaded_symbols\nextern const lt_dlsymlist lt_preloaded_symbols[];\n&/' \
31 src/plugins.c
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 --sysconfdir=/etc/siproxd \
37 --localstatedir=/var \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $install/usr/share
48 cp -a $src/doc $install/usr/share
49 rm -f $install/usr/share/doc/Makefile*
50 cook_copy_folders etc
51 cook_copy_folders lib
52 cook_copy_folders sbin
53 }