wok view siproxd/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (5 weeks ago)
parents 7dd01dedad38
children
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }