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