wok-current view miniupnpd/receipt @ rev 23184
updated mobile-broadband-provider-info (20190116 -> 20190618)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 19 17:17:33 2020 +0100 (2020-03-19) |
parents | 3705d68ed8f3 |
children | 83b97236db32 |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -lrt"
23 sed -i 's|uname -m|echo i486|' \
24 Makefile* \
25 netfilter*/Makefile
26 mkdir -p $DESTDIR/usr/share/man/man8
27 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' \
28 netfilter/iptables_init.sh
29 make -f Makefile.linux config.h
30 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
31 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," \
32 config.h
33 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
34 make -f Makefile.linux DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/etc $fs
42 cp -a $install/usr/sbin $fs/usr
43 }