wok rev 19291

indent, laptop-mode-tools, lbreakout2, lm-sensors, logrotate, magicrescue, mgetty: fix man or doc path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 06 12:08:46 2016 +0200 (2016-07-06)
parents f6af821600e6
children 8a74e7b0ff7f
files indent/receipt laptop-mode-tools/receipt lbreakout2/receipt lm-sensors/receipt logrotate/receipt magicrescue/receipt mgetty/receipt
line diff
     1.1 --- a/indent/receipt	Wed Jul 06 10:06:06 2016 +0200
     1.2 +++ b/indent/receipt	Wed Jul 06 12:08:46 2016 +0200
     1.3 @@ -13,8 +13,9 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8 -	./configure $CONFIGURE_ARGS && make && make install
     1.9 +	rm -f man/indent.1
    1.10 +	sed -i 's|/doc/|/share&|' doc/Makefile*
    1.11 +	./configure $CONFIGURE_ARGS && make -j 1 && make install
    1.12  }
    1.13  
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/laptop-mode-tools/receipt	Wed Jul 06 10:06:06 2016 +0200
     2.2 +++ b/laptop-mode-tools/receipt	Wed Jul 06 12:08:46 2016 +0200
     2.3 @@ -14,7 +14,7 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 -	cd $src
     2.8 +	sed -i 's|/usr/man|/usr/share/man|' install.sh
     2.9  	make DESTDIR=$DESTDIR INIT_D=none install
    2.10  }
    2.11  
    2.12 @@ -31,4 +31,3 @@
    2.13  	cp -a $install/lib/udev $fs/lib/
    2.14  	cp -a $install/usr/lib/ $fs/usr/
    2.15  }
    2.16 -
     3.1 --- a/lbreakout2/receipt	Wed Jul 06 10:06:06 2016 +0200
     3.2 +++ b/lbreakout2/receipt	Wed Jul 06 12:08:46 2016 +0200
     3.3 @@ -17,7 +17,7 @@
     3.4  # Rules to configure and make the package.
     3.5  compile_rules()
     3.6  {
     3.7 -	cd $src
     3.8 +	sed -i 's|/usr/doc|/usr/share/doc|' configure*
     3.9  	./configure --prefix=/usr --infodir=/usr/share/info \
    3.10  	--disable-sdltest --mandir=/usr/share/man $CONFIGURE_ARGS &&
    3.11  	make &&
    3.12 @@ -30,6 +30,7 @@
    3.13  	mkdir -p $fs/usr
    3.14  	cp -a $install/usr/bin $fs/usr
    3.15  	cp -a $install/usr/share $fs/usr
    3.16 +	rm -rf $fs/usr/share/doc
    3.17  	cp -a stuff/* $fs
    3.18  }
    3.19  
     4.1 --- a/lm-sensors/receipt	Wed Jul 06 10:06:06 2016 +0200
     4.2 +++ b/lm-sensors/receipt	Wed Jul 06 12:08:46 2016 +0200
     4.3 @@ -18,7 +18,7 @@
     4.4  # Rules to configure and make the package.
     4.5  compile_rules()
     4.6  {
     4.7 -	cd $src
     4.8 +	sed -i 's|/man|/share&|' Makefile
     4.9  	patch -p0 < $stuff/linux-3.0.patch &&
    4.10  	make PREFIX=/usr PROG_EXTRA=sensord DESTDIR=$DESTDIR install 2>&1 | \
    4.11  	sed 's/d: No such file/d: no such file/'
     5.1 --- a/logrotate/receipt	Wed Jul 06 10:06:06 2016 +0200
     5.2 +++ b/logrotate/receipt	Wed Jul 06 12:08:46 2016 +0200
     5.3 @@ -17,8 +17,7 @@
     5.4  # Rules to configure and make the package.
     5.5  compile_rules()
     5.6  {
     5.7 -	cd $src
     5.8 -	make && make PREFIX=$DESTDIR install
     5.9 +	make && make PREFIX=$DESTDIR MANDIR=/usr/share/man install
    5.10  }
    5.11  
    5.12  # Rules to gen a SliTaz package suitable for Tazpkg.
     6.1 --- a/magicrescue/receipt	Wed Jul 06 10:06:06 2016 +0200
     6.2 +++ b/magicrescue/receipt	Wed Jul 06 12:08:46 2016 +0200
     6.3 @@ -15,7 +15,7 @@
     6.4  # Rules to configure and make the package.
     6.5  compile_rules()
     6.6  {
     6.7 -	cd $src
     6.8 +	sed -i 's|/man/|/share&|' Makefile*
     6.9  	install -d $DESTDIR/usr
    6.10  	./configure \
    6.11  		--prefix=/usr \
    6.12 @@ -30,4 +30,3 @@
    6.13  	cp -a $install/usr/bin $fs/usr
    6.14  	cp -a $install/usr/share/magicrescue $fs/usr/share
    6.15  }
    6.16 -
     7.1 --- a/mgetty/receipt	Wed Jul 06 10:06:06 2016 +0200
     7.2 +++ b/mgetty/receipt	Wed Jul 06 12:08:46 2016 +0200
     7.3 @@ -23,14 +23,17 @@
     7.4  	sed -i  -e "s|^prefix=/usr/local|prefix=/usr|" \
     7.5  		-e "s|^spool=/var/spool|spool=/var/spool|" \
     7.6  		-e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
     7.7 +		-e 's|/man/|/share&|' \
     7.8  		Makefile
     7.9  	sed -i  -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
    7.10  		-e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
    7.11  		-e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
    7.12 +		-e 's|/man/|/share&|' \
    7.13  		-e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
    7.14  		Makefile.install
    7.15  	make bin-all vgetty
    7.16 -	mkdir -p $DESTDIR/var/spool $DESTDIR/usr/man/man1
    7.17 +	mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1 \
    7.18 +		$DESTDIR/usr/share/man/man8
    7.19  	mv -f Makefile.install Makefile
    7.20  	sed -i 's|chown|echo chown|' Makefile fax/Makefile
    7.21  	make -k install.bin vgetty-install