wok annotate miniupnpd/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | 797b839bde3a |
children | 0ca06bfb352a |
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@24427 | 18 # What is the latest version available today? |
pascal@24427 | 19 current_version() |
pascal@24427 | 20 { |
pascal@24427 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 22 sed "/latest/d;/$PACKAGE-[0-9]*\.[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24427 | 23 } |
pascal@24427 | 24 |
pascal@15721 | 25 # Rules to configure and make the package. |
pascal@15721 | 26 compile_rules() |
pascal@15721 | 27 { |
Hans-G?nter@23181 | 28 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@23181 | 29 |
Hans-G?nter@23181 | 30 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@23181 | 31 Makefile* \ |
Hans-G?nter@23181 | 32 netfilter*/Makefile |
pascal@15721 | 33 mkdir -p $DESTDIR/usr/share/man/man8 |
Hans-G?nter@23181 | 34 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \ |
Hans-G?nter@23181 | 35 netfilter/iptables_init.sh |
pascal@15721 | 36 make -f Makefile.linux config.h |
pascal@15721 | 37 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2) |
Hans-G?nter@23181 | 38 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," \ |
Hans-G?nter@23181 | 39 config.h |
pascal@15721 | 40 make CFLAGS="-DIPTABLES_143" -f Makefile.linux && |
pascal@20153 | 41 make -f Makefile.linux DESTDIR=$DESTDIR install |
pascal@15721 | 42 } |
pascal@15721 | 43 |
pascal@15721 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 45 genpkg_rules() |
pascal@15721 | 46 { |
pascal@15721 | 47 mkdir -p $fs/usr |
Hans-G?nter@23181 | 48 cp -a $install/etc $fs |
Hans-G?nter@23181 | 49 cp -a $install/usr/sbin $fs/usr |
pascal@15721 | 50 } |