wok rev 20608

linux-source: add /usr/src/linux symlink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 18 10:36:14 2018 +0100 (2018-12-18)
parents 9bef8f62029f
children a0ca4b92336e
files linux-source/receipt open-iscsi/receipt
line diff
     1.1 --- a/linux-source/receipt	Tue Dec 18 10:16:36 2018 +0100
     1.2 +++ b/linux-source/receipt	Tue Dec 18 10:36:14 2018 +0100
     1.3 @@ -37,3 +37,15 @@
     1.4  	ln -s /usr/src/linux-$VERSION \
     1.5  		$fs/lib/modules/$VERSION-slitaz/source
     1.6  }
     1.7 +
     1.8 +# Pre and post install commands for Tazpkg.
     1.9 +post_install()
    1.10 +{
    1.11 +	rm $1/usr/src/linux 2> /dev/null
    1.12 +	ln -s linux-$VERSION $1/usr/src/linux
    1.13 +}
    1.14 +
    1.15 +pre_remove()
    1.16 +{
    1.17 +	rm $1/usr/src/linux 2> /dev/null
    1.18 +}
     2.1 --- a/open-iscsi/receipt	Tue Dec 18 10:16:36 2018 +0100
     2.2 +++ b/open-iscsi/receipt	Tue Dec 18 10:36:14 2018 +0100
     2.3 @@ -19,7 +19,7 @@
     2.4  	sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
     2.5  		usr/iscsi_sysfs.c
     2.6  	sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile
     2.7 -	make user 2>&1 | grep -v 'slitaz/build/Makefile'
     2.8 +	make KSRC=/usr/src/linux KARCH=i686 user
     2.9  	make DESTDIR=$DESTDIR install
    2.10  }
    2.11