wok-undigest rev 1028

miniupnpd: needs LDFLAGS & CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 01 09:53:52 2013 +0000 (2013-08-01)
parents 9b837fe3af41
children 5bfa3175c059
files miniupnpd/receipt
line diff
     1.1 --- a/miniupnpd/receipt	Thu Aug 01 09:07:32 2013 +0000
     1.2 +++ b/miniupnpd/receipt	Thu Aug 01 09:53:52 2013 +0000
     1.3 @@ -15,18 +15,17 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	export LDFLAGS="-Wl,--copy-dt-needed-entries" 
     1.8  	sed -i 's,^EXTIF=eth0,EXTIF=$(route -n | awk ''/^0.0.0.0/ { print $8 }''),' netfilter/iptables_init.sh
     1.9  	make -f Makefile.linux config.h
    1.10  	KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
    1.11  	sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
    1.12 -	make -f Makefile.linux &&
    1.13 +	make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
    1.14  	INSTALLPREFIX=$DESTDIR/usr make -f Makefile.linux install
    1.15  }
    1.16  
    1.17  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.18  genpkg_rules()
    1.19  {
    1.20 -	mkdir -p $fs/usr/lib
    1.21 -	cp -a $install/usr/bin $fs/usr
    1.22 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.23 +	cp -a $install/usr/sbin $fs/usr
    1.24  }