wok-6.x diff isapnptools/receipt @ rev 20425

Up zstd (1.3.5) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 12 14:15:39 2018 +0200 (2018-08-12)
parents c57fa7519ccd
children 8dd8bab3f0ca
line diff
     1.1 --- a/isapnptools/receipt	Thu Jul 18 10:40:30 2013 +0000
     1.2 +++ b/isapnptools/receipt	Sun Aug 12 14:15:39 2018 +0200
     1.3 @@ -13,11 +13,12 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8 +	sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
     1.9 +	sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
    1.10  	./configure --prefix=/usr --bindir=/bin \
    1.11 -	--libexecdir=/usr/bin --mandir=/usr/share/man \
    1.12 -	$CONFIGURE_ARGS
    1.13 -	make
    1.14 +		--libexecdir=/usr/bin --mandir=/usr/share/man \
    1.15 +		$CONFIGURE_ARGS &&
    1.16 +	make &&
    1.17  	make DESTDIR=$DESTDIR install
    1.18  }
    1.19  
    1.20 @@ -25,5 +26,7 @@
    1.21  genpkg_rules()
    1.22  {
    1.23  	# move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
    1.24 -	cp -a $install/usr/sbin $fs
    1.25 +	mkdir -p $fs/sbin
    1.26 +	cp -a $install/usr/sbin/pnpdump $fs/sbin
    1.27 +	ln $fs/sbin/pnpdump $fs/sbin/isapnp
    1.28  }