wok-6.x annotate siproxd/receipt @ rev 24735
updated libesmtp and libesmtp-dev (1.0.6 -> 1.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 09:14:20 2022 +0100 (2022-03-16) |
parents | f9690e227edd |
children | 36ebaf6cbb62 |
rev | line source |
---|---|
pascal@11227 | 1 # SliTaz package receipt. |
pascal@11227 | 2 |
pascal@11227 | 3 PACKAGE="siproxd" |
pascal@21653 | 4 VERSION="0.8.2" |
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" |
pascal@11227 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11227 | 10 WEB_SITE="http://siproxd.sourceforge.net/" |
pascal@11227 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11227 | 12 CONFIG_FILES="/etc/siproxd" |
pascal@11227 | 13 |
pascal@11227 | 14 DEPENDS="osip" |
pascal@15595 | 15 BUILD_DEPENDS="osip-dev libtool" |
pascal@11227 | 16 |
pascal@24313 | 17 # What is the latest version available today? |
pascal@24313 | 18 current_version() |
pascal@24313 | 19 { |
pascal@24313 | 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24313 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24313 | 22 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q" |
pascal@24313 | 23 } |
pascal@24313 | 24 |
pascal@11227 | 25 # Rules to configure and make the package. |
pascal@11227 | 26 compile_rules() |
pascal@11227 | 27 { |
pascal@11227 | 28 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&/' src/plugins.c |
pascal@11227 | 29 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@11227 | 30 --sysconfdir=/etc/siproxd \ |
pascal@11227 | 31 --localstatedir=/var \ |
pascal@11227 | 32 $CONFIGURE_ARGS && |
pascal@11227 | 33 make && |
pascal@15593 | 34 make DESTDIR=$DESTDIR install |
pascal@11227 | 35 } |
pascal@11227 | 36 |
pascal@11227 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 38 genpkg_rules() |
pascal@11227 | 39 { |
pascal@21692 | 40 mkdir -p $fs/usr $install/usr/share |
pascal@21692 | 41 cp -a $src/doc $install/usr/share |
pascal@21709 | 42 rm -f $install/usr/share/doc/Makefile* |
pascal@15593 | 43 cp -a $install/etc $fs |
pascal@15593 | 44 cp -a $install/usr/sbin $fs/usr |
pascal@15593 | 45 cp -a $install/usr/lib $fs/usr |
pascal@11227 | 46 } |