wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="miniupnpd"
4 VERSION="2.1"
5 CATEGORY="network"
6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://miniupnp.tuxfamily.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/files/$TARBALL"
13 TAGS="upnp"
15 DEPENDS="iptables libssl"
16 BUILD_DEPENDS="iptables-dev libnfnetlink-dev openssl-dev util-linux-uuid-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]*\.[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -lrt"
30 sed -i 's|uname -m|echo i486|' \
31 Makefile* \
32 netfilter*/Makefile
33 mkdir -p $DESTDIR/usr/share/man/man8
34 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \
35 netfilter/iptables_init.sh
36 make -f Makefile.linux config.h
37 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
38 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," \
39 config.h
40 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
41 make -f Makefile.linux DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/etc $fs
49 cp -a $install/usr/sbin $fs/usr
50 }