wok-6.x rev 19265

Compress manpages.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 04 10:05:09 2016 +0300 (2016-07-04)
parents 45507bfb2b0d
children 7672854e4f43
files ajaxterm/receipt aldo/receipt alpine/receipt alsa-tools/receipt alsa-utils/receipt alsaplayer/receipt amule/receipt anacron/receipt ansible/receipt antinat/receipt apache/receipt apcupsd/receipt
line diff
     1.1 --- a/ajaxterm/receipt	Mon Jul 04 00:54:49 2016 +0300
     1.2 +++ b/ajaxterm/receipt	Mon Jul 04 10:05:09 2016 +0300
     1.3 @@ -23,6 +23,10 @@
     1.4  	cp -a $stuff/* $fs/
     1.5  	chown -R root:root $fs
     1.6  	find $fs -type f -name '*.py' -exec chmod a+x \{\} \;
     1.7 +
     1.8 +	mkdir -p $install/usr/share/man/man1
     1.9 +	cp -a $src/ajaxterm.1 $install/usr/share/man/man1
    1.10 +	cook_compress_manpages
    1.11  }
    1.12  
    1.13  post_install()
     2.1 --- a/aldo/receipt	Mon Jul 04 00:54:49 2016 +0300
     2.2 +++ b/aldo/receipt	Mon Jul 04 10:05:09 2016 +0300
     2.3 @@ -22,6 +22,8 @@
     2.4  		$CONFIGURE_ARGS &&
     2.5  	make &&
     2.6  	make DESTDIR=$DESTDIR install
     2.7 +
     2.8 +	cook_compress_manpages
     2.9  }
    2.10  
    2.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.1 --- a/alpine/receipt	Mon Jul 04 00:54:49 2016 +0300
     3.2 +++ b/alpine/receipt	Mon Jul 04 10:05:09 2016 +0300
     3.3 @@ -24,6 +24,8 @@
     3.4  		--without-krb5 \
     3.5  		$CONFIGURE_ARGS &&
     3.6  	make && make DESTDIR=$DESTDIR install
     3.7 +
     3.8 +	cook_compress_manpages
     3.9  }
    3.10  
    3.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     4.1 --- a/alsa-tools/receipt	Mon Jul 04 00:54:49 2016 +0300
     4.2 +++ b/alsa-tools/receipt	Mon Jul 04 10:05:09 2016 +0300
     4.3 @@ -31,4 +31,6 @@
     4.4  		./configure $CONFIGURE_ARGS
     4.5  		make && make DESTDIR=$DESTDIR install
     4.6  	done
     4.7 +
     4.8 +	cook_compress_manpages
     4.9  }
     5.1 --- a/alsa-utils/receipt	Mon Jul 04 00:54:49 2016 +0300
     5.2 +++ b/alsa-utils/receipt	Mon Jul 04 10:05:09 2016 +0300
     5.3 @@ -23,6 +23,8 @@
     5.4  		$CONFIGURE_ARGS &&
     5.5  	make &&
     5.6  	make DESTDIR=$DESTDIR install
     5.7 +
     5.8 +	cook_compress_manpages
     5.9  }
    5.10  
    5.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     6.1 --- a/alsaplayer/receipt	Mon Jul 04 00:54:49 2016 +0300
     6.2 +++ b/alsaplayer/receipt	Mon Jul 04 10:05:09 2016 +0300
     6.3 @@ -13,7 +13,7 @@
     6.4  HOST_ARCH="i486 arm"
     6.5  
     6.6  SUGGESTED="alsaplayer-scopes libid3tag flac"
     6.7 -DEPENDS="gtk+ alsa-lib libmad libogg libvorbis xorg-libXdamage" 
     6.8 +DEPENDS="gtk+ alsa-lib libmad libogg libvorbis xorg-libXdamage"
     6.9  BUILD_DEPENDS="gtk+-dev alsa-lib-dev libmad-dev libogg-dev libvorbis-dev"
    6.10  
    6.11  # Handle cross compilation.
    6.12 @@ -38,6 +38,8 @@
    6.13  	# Chmod install-sh to avoid install error.
    6.14  	chmod 755 install-sh &&
    6.15  	make DESTDIR=$DESTDIR install
    6.16 +
    6.17 +	cook_compress_manpages
    6.18  }
    6.19  
    6.20  # Rules to gen a SliTaz package suitable for Tazpkg.
     7.1 --- a/amule/receipt	Mon Jul 04 00:54:49 2016 +0300
     7.2 +++ b/amule/receipt	Mon Jul 04 10:05:09 2016 +0300
     7.3 @@ -24,6 +24,8 @@
     7.4  		$CONFIGURE_ARGS &&
     7.5  	make $MAKEFLAGS &&
     7.6  	make DESTDIR=$DESTDIR install
     7.7 +
     7.8 +	cook_compress_manpages
     7.9  }
    7.10  
    7.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     8.1 --- a/anacron/receipt	Mon Jul 04 00:54:49 2016 +0300
     8.2 +++ b/anacron/receipt	Mon Jul 04 10:05:09 2016 +0300
     8.3 @@ -16,14 +16,17 @@
     8.4  # Rules to configure and make the package.
     8.5  compile_rules()
     8.6  {
     8.7 -	cd $src
     8.8  	sed -i "s|^PREFIX =.*|PREFIX = $DESTDIR|" Makefile
     8.9  	sed -i 's/const int isleap/int isleap/' gregor.c
    8.10  	make 2>&1 | grep -v Makefile:57 && make install
    8.11 +
    8.12 +	mkdir -p $install/usr/share
    8.13 +	mv $install/usr/man $install/usr/share
    8.14 +	cook_compress_manpages
    8.15  }
    8.16  
    8.17 -# Rules to gen a SliTaz package suitable for Tazpkg.   
    8.18 -genpkg_rules()                                      
    8.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.20 +genpkg_rules()
    8.21  {
    8.22  	cp -a $install/* $fs
    8.23  	find $fs/usr/man -type f -exec chmod a-x \{\} \;
     9.1 --- a/ansible/receipt	Mon Jul 04 00:54:49 2016 +0300
     9.2 +++ b/ansible/receipt	Mon Jul 04 10:05:09 2016 +0300
     9.3 @@ -19,6 +19,10 @@
     9.4  {
     9.5  	python setup.py build
     9.6  	python setup.py install --root=$DESTDIR
     9.7 +
     9.8 +	mkdir -p $install/usr/share/man/man1
     9.9 +	cp -a $src/docs/man/man1/*.1 $install/usr/share/man/man1
    9.10 +	cook_compress_manpages
    9.11  }
    9.12  
    9.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    10.1 --- a/antinat/receipt	Mon Jul 04 00:54:49 2016 +0300
    10.2 +++ b/antinat/receipt	Mon Jul 04 10:05:09 2016 +0300
    10.3 @@ -16,14 +16,19 @@
    10.4  # Rules to configure and make the package.
    10.5  compile_rules()
    10.6  {
    10.7 -	cd $src
    10.8  	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
    10.9  	make &&
   10.10  	make prefix=$DESTDIR/usr install
   10.11 +
   10.12 +	for i in 1 3 4; do
   10.13 +		mkdir -p $install/usr/share/man/man$i
   10.14 +		cp -a $src/man/*.$i $install/usr/share/man/man$i
   10.15 +	done
   10.16 +	cook_compress_manpages
   10.17  }
   10.18  
   10.19 -# Rules to gen a SliTaz package suitable for Tazpkg.   
   10.20 -genpkg_rules()                                      
   10.21 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.22 +genpkg_rules()
   10.23  {
   10.24  	mkdir -p $fs/usr/lib $fs/etc
   10.25  	cp $src/etc/antinat.xml $fs/etc
    11.1 --- a/apache/receipt	Mon Jul 04 00:54:49 2016 +0300
    11.2 +++ b/apache/receipt	Mon Jul 04 10:05:09 2016 +0300
    11.3 @@ -30,6 +30,8 @@
    11.4  		--enable-ssl \
    11.5  		--enable-layout=Slitaz $CONFIGURE_ARGS &&
    11.6  	make $MAKEFLAGS && make DESTDIR=$DESTDIR install
    11.7 +
    11.8 +	cook_compress_manpages
    11.9  }
   11.10  
   11.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    12.1 --- a/apcupsd/receipt	Mon Jul 04 00:54:49 2016 +0300
    12.2 +++ b/apcupsd/receipt	Mon Jul 04 10:05:09 2016 +0300
    12.3 @@ -15,7 +15,6 @@
    12.4  # Rules to configure and make the package.
    12.5  compile_rules()
    12.6  {
    12.7 -	cd $src
    12.8  	sed -i 's/src platforms doc/src platforms/' Makefile
    12.9  	SHUTDOWN=/sbin/poweroff ac_cv_func_setpgrp_void=yes ./configure \
   12.10  		--enable-usb \
   12.11 @@ -30,6 +29,12 @@
   12.12  		--mandir=/usr/share/man \
   12.13  		$CONFIGURE_ARGS &&
   12.14  	make && make install
   12.15 +
   12.16 +	for i in 5 8; do
   12.17 +		mkdir -p $install/usr/share/man/man$i
   12.18 +		cp -a $src/doc/*.$i $install/usr/share/man/man$i
   12.19 +	done
   12.20 +	cook_compress_manpages
   12.21  }
   12.22  
   12.23  # Rules to gen a SliTaz package suitable for Tazpkg.