wok annotate siproxd/receipt @ rev 25327
updated lv2 (1.18.2 -> 1.18.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 10:15:00 2022 +0100 (2022-07-23) |
parents | 0c04fc34847a |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@11227 | 1 # SliTaz package receipt. |
pascal@11227 | 2 |
pascal@11227 | 3 PACKAGE="siproxd" |
Hans-G?nter@25307 | 4 VERSION="0.8.3" |
pascal@11227 | 5 CATEGORY="network" |
pascal@11227 | 6 SHORT_DESC="A masquerading SIP Proxy Server." |
pascal@11227 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
Hans-G?nter@25307 | 9 WEB_SITE="http://siproxd.sourceforge.net/" |
Hans-G?nter@25307 | 10 |
pascal@11227 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11227 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11227 | 13 |
pascal@11227 | 14 DEPENDS="osip" |
Hans-G?nter@25307 | 15 BUILD_DEPENDS="libtool osip-dev sqlite-dev" |
Hans-G?nter@25307 | 16 |
Hans-G?nter@25307 | 17 CONFIG_FILES="/etc/siproxd" |
pascal@11227 | 18 |
pascal@24313 | 19 # What is the latest version available today? |
pascal@24313 | 20 current_version() |
pascal@24313 | 21 { |
pascal@24313 | 22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24313 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24313 | 24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q" |
pascal@24313 | 25 } |
pascal@24313 | 26 |
pascal@11227 | 27 # Rules to configure and make the package. |
pascal@11227 | 28 compile_rules() |
pascal@11227 | 29 { |
Hans-G?nter@25307 | 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&/' \ |
Hans-G?nter@25307 | 31 src/plugins.c |
Hans-G?nter@25307 | 32 |
Hans-G?nter@25307 | 33 ./configure \ |
Hans-G?nter@25307 | 34 --prefix=/usr \ |
Hans-G?nter@25307 | 35 --mandir=/usr/share/man \ |
Hans-G?nter@25307 | 36 --sysconfdir=/etc/siproxd \ |
Hans-G?nter@25307 | 37 --localstatedir=/var \ |
Hans-G?nter@25307 | 38 $CONFIGURE_ARGS && |
pascal@11227 | 39 make && |
Hans-G?nter@25307 | 40 make install DESTDIR=$DESTDIR |
pascal@11227 | 41 } |
pascal@11227 | 42 |
pascal@11227 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 44 genpkg_rules() |
pascal@11227 | 45 { |
Hans-G?nter@25307 | 46 mkdir -p $install/usr/share |
Hans-G?nter@25307 | 47 |
Hans-G?nter@25307 | 48 cp -a $src/doc $install/usr/share |
Hans-G?nter@25307 | 49 rm -f $install/usr/share/doc/Makefile* |
Hans-G?nter@25307 | 50 cook_copy_folders etc |
Hans-G?nter@25307 | 51 cook_copy_folders lib |
Hans-G?nter@25307 | 52 cook_copy_folders sbin |
pascal@11227 | 53 } |