wok-tiny diff isapnptools/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (13 months ago)
parents 371673f39e46
children
line diff
     1.1 --- a/isapnptools/receipt	Fri Oct 02 21:45:05 2015 +0200
     1.2 +++ b/isapnptools/receipt	Wed Feb 27 17:43:23 2019 +0100
     1.3 @@ -22,6 +22,9 @@
     1.4  		ln -s $i ./$PREFIX-${i#/usr/bin/uclibc-$TARGET-}
     1.5  	done
     1.6  
     1.7 +	sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
     1.8 +	sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
     1.9 +
    1.10  	# Let's go !
    1.11  	./configure \
    1.12  		--host=$PREFIX \
    1.13 @@ -34,6 +37,8 @@
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
    1.17 +	mkdir -p $fs/sbin
    1.18  	# move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
    1.19 -	cp -a $install/usr/sbin $fs
    1.20 +	cp -a $install/usr/sbin/pnpdump $fs/sbin
    1.21 +	ln $fs/sbin/pnpdump $fs/sbin/isapnp
    1.22  }