wok-undigest rev 1029

miniupnpd: fix install path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 01 10:07:03 2013 +0000 (2013-08-01)
parents 58d2d7320ed2
children f405c540c3b6
files miniupnpd/receipt
line diff
     1.1 --- a/miniupnpd/receipt	Thu Aug 01 09:53:52 2013 +0000
     1.2 +++ b/miniupnpd/receipt	Thu Aug 01 10:07:03 2013 +0000
     1.3 @@ -16,16 +16,19 @@
     1.4  compile_rules()
     1.5  {
     1.6  	export LDFLAGS="-Wl,--copy-dt-needed-entries" 
     1.7 +	mkdir -p $DESTDIR/usr/share/man/man8
     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 +	KERNEL_VERSION=$(grep -s ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2)
    1.12  	sed -i "s,OS_VERSION.*,OS_VERSION \"Linux/$KERNEL_VERSION\"," config.h
    1.13  	make CFLAGS="-DIPTABLES_143" -f Makefile.linux &&
    1.14 -	INSTALLPREFIX=$DESTDIR/usr make -f Makefile.linux install
    1.15 +	PREFIX=$DESTDIR make -f Makefile.linux install
    1.16  }
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.19  genpkg_rules()
    1.20  {
    1.21 +	mkdir -p $fs/usr
    1.22 +	cp -a $install/etc $fs
    1.23  	cp -a $install/usr/sbin $fs/usr
    1.24  }