wok annotate miniupnpd/receipt @ rev 23382

updated perl-number-compare (0.01 -> 0.03)
author Hans-G?nter Theisgen
date Tue Mar 31 14:53:05 2020 +0100 (2020-03-31)
parents 3705d68ed8f3
children 83b97236db32
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="miniupnpd"
Hans-G?nter@23181 4 VERSION="2.1"
pascal@15721 5 CATEGORY="network"
pascal@15721 6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
pascal@15721 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15721 8 LICENSE="BSD"
Hans-G?nter@23181 9 WEB_SITE="https://miniupnp.tuxfamily.org/"
Hans-G?nter@23181 10
pascal@15721 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15721 12 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@19008 13 TAGS="upnp"
pascal@15721 14
pascal@20153 15 DEPENDS="iptables libssl"
Hans-G?nter@23181 16 BUILD_DEPENDS="iptables-dev libnfnetlink-dev openssl-dev util-linux-uuid-dev"
pascal@15721 17
pascal@15721 18 # Rules to configure and make the package.
pascal@15721 19 compile_rules()
pascal@15721 20 {
Hans-G?nter@23181 21 export LDFLAGS="$LDFLAGS -lrt"
Hans-G?nter@23181 22
Hans-G?nter@23181 23 sed -i 's|uname -m|echo i486|' \
Hans-G?nter@23181 24 Makefile* \
Hans-G?nter@23181 25 netfilter*/Makefile
pascal@15721 26 mkdir -p $DESTDIR/usr/share/man/man8
Hans-G?nter@23181 27 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \
Hans-G?nter@23181 28 netfilter/iptables_init.sh
pascal@15721 29 make -f Makefile.linux config.h
pascal@15721 30 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
Hans-G?nter@23181 31 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," \
Hans-G?nter@23181 32 config.h
pascal@15721 33 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
pascal@20153 34 make -f Makefile.linux DESTDIR=$DESTDIR install
pascal@15721 35 }
pascal@15721 36
pascal@15721 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 38 genpkg_rules()
pascal@15721 39 {
pascal@15721 40 mkdir -p $fs/usr
Hans-G?nter@23181 41 cp -a $install/etc $fs
Hans-G?nter@23181 42 cp -a $install/usr/sbin $fs/usr
pascal@15721 43 }