wok-next view miniupnpd/receipt @ rev 16146
Move kompozer to undigest (not compiling for a long time and not realy maintained)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 21:49:28 2014 +0100 (2014-03-26) |
parents | |
children | 17e313b5b9c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="miniupnpd"
4 VERSION="1.8"
5 CATEGORY="network"
6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://miniupnp.tuxfamily.org/"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
13 DEPENDS="iptables"
14 BUILD_DEPENDS="iptables-dev libnfnetlink-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="-Wl,--copy-dt-needed-entries"
20 mkdir -p $DESTDIR/usr/share/man/man8
21 sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
22 make -f Makefile.linux config.h
23 KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
24 sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
25 make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
26 PREFIX=$DESTDIR make -f Makefile.linux install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/etc $fs
34 cp -a $install/usr/sbin $fs/usr
35 }