wok annotate miniupnpd/receipt @ rev 25701

Up xcursor-comix (0.10.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 29 11:38:51 2024 +0000 (4 weeks ago)
parents 83b97236db32
children c10615ece8d9
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@25701 12 #WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@25701 13 WGET_URL="http://miniupnp.free.fr/files/miniupnpd-2.1.20200510.tar.gz"
pascal@19008 14 TAGS="upnp"
pascal@15721 15
pascal@20153 16 DEPENDS="iptables libssl"
Hans-G?nter@23181 17 BUILD_DEPENDS="iptables-dev libnfnetlink-dev openssl-dev util-linux-uuid-dev"
pascal@15721 18
pascal@24427 19 # What is the latest version available today?
pascal@24427 20 current_version()
pascal@24427 21 {
pascal@24427 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24427 23 sed "/latest/d;/$PACKAGE-[0-9]*\.[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24427 24 }
pascal@24427 25
pascal@15721 26 # Rules to configure and make the package.
pascal@15721 27 compile_rules()
pascal@15721 28 {
Hans-G?nter@23181 29 export LDFLAGS="$LDFLAGS -lrt"
Hans-G?nter@23181 30
Hans-G?nter@23181 31 sed -i 's|uname -m|echo i486|' \
Hans-G?nter@23181 32 Makefile* \
Hans-G?nter@23181 33 netfilter*/Makefile
pascal@15721 34 mkdir -p $DESTDIR/usr/share/man/man8
Hans-G?nter@23181 35 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \
Hans-G?nter@23181 36 netfilter/iptables_init.sh
pascal@15721 37 make -f Makefile.linux config.h
pascal@15721 38 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
Hans-G?nter@23181 39 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," \
Hans-G?nter@23181 40 config.h
pascal@15721 41 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
pascal@20153 42 make -f Makefile.linux DESTDIR=$DESTDIR install
pascal@15721 43 }
pascal@15721 44
pascal@15721 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 46 genpkg_rules()
pascal@15721 47 {
pascal@15721 48 mkdir -p $fs/usr
Hans-G?nter@23181 49 cp -a $install/etc $fs
Hans-G?nter@23181 50 cp -a $install/usr/sbin $fs/usr
pascal@15721 51 }