wok-next rev 20461

Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 04 04:56:40 2018 +0200 (2018-03-04)
parents 93930f418ffb
children 8940878905f3
files acme/receipt asciiquarium/receipt autoblog/receipt blazekiss/receipt bsc/receipt btmgr/receipt caps/receipt chkrootkit/receipt chkrootkit/stuff/chkrootkit.u chkrootkit/stuff/patches/chkrootkit.u chkrootkit/stuff/patches/series ckermit/receipt cmospwd/receipt cpulimit/receipt cpuspeed/receipt cramfs/receipt cups-pdf/receipt dd_rescue/receipt dd_rhelp/receipt dhid/receipt dhid/stuff/dhid dhid/stuff/init.d/dhid disktype/receipt dmraid/receipt dnstop/receipt droid-font/receipt dwm/receipt
line diff
     1.1 --- a/acme/receipt	Sat Mar 03 17:38:00 2018 +0200
     1.2 +++ b/acme/receipt	Sun Mar 04 04:56:40 2018 +0200
     1.3 @@ -1,28 +1,22 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="acme"
     1.8  VERSION="0.91"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="A Crossassembler for Multiple Environments (6502, 65c02 and 65816)."
    1.11 +SHORT_DESC="A Crossassembler for Multiple Environments (6502, 65c02 and 65816)"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme"
    1.15 +
    1.16  TARBALL="$PACKAGE${VERSION/./}src.tar.bz2"
    1.17 -WEB_SITE="http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme"
    1.18  WGET_URL="$WEB_SITE/current/$TARBALL"
    1.19  
    1.20 -DEPENDS=""
    1.21 -BUILD_DEPENDS=""
    1.22 -
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 +compile_rules() {
    1.27  	cd $src/src
    1.28 -	make
    1.29 +	make &&
    1.30 +	install -Dm755 $src/src/acme $install/usr/bin/acme
    1.31  }
    1.32  
    1.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 -genpkg_rules()
    1.35 -{
    1.36 -	mkdir -p $fs/usr/bin
    1.37 -	cp -a $src/src/acme $fs/usr/bin
    1.38 +genpkg_rules() {
    1.39 +	copy @std
    1.40  }
     2.1 --- a/asciiquarium/receipt	Sat Mar 03 17:38:00 2018 +0200
     2.2 +++ b/asciiquarium/receipt	Sun Mar 04 04:56:40 2018 +0200
     2.3 @@ -1,31 +1,24 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="asciiquarium"
     2.8  VERSION="1.0"
     2.9  CATEGORY="system-tools"
    2.10 -SHORT_DESC="Text console screensaver."
    2.11 +SHORT_DESC="Text console screensaver"
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="GPL2"
    2.14  WEB_SITE="http://www.robobunny.com/projects/$PACKAGE/html/"
    2.15 +
    2.16  TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    2.17  WGET_URL="http://www.robobunny.com/projects/$PACKAGE/$TARBALL"
    2.18 -TAGS="screensaver"
    2.19  
    2.20 -DEPENDS="perl-animation perl-curses"
    2.21 +compile_rules() {
    2.22 +	mv ${PACKAGE}_${VERSION} $src 2>/dev/null
    2.23  
    2.24 -# Rules to configure and make the package.
    2.25 -compile_rules()
    2.26 -{
    2.27 -	mv ${PACKAGE}_${VERSION} $src 2> /dev/null
    2.28 -	return 0
    2.29 +	install -Dm755 $src/asciiquarium $install/usr/bin/asciiquarium
    2.30  }
    2.31  
    2.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.33 -genpkg_rules()
    2.34 -{
    2.35 -	mkdir -p $fs/usr/bin
    2.36 -	cp -a $src/asciiquarium $fs/usr/bin
    2.37 -	chmod a+x $fs/usr/bin/asciiquarium
    2.38 -	chown -R root:root $fs
    2.39 +genpkg_rules() {
    2.40 +	copy @std
    2.41 +	DEPENDS="perl-animation perl-curses"
    2.42 +	TAGS="screensaver"
    2.43  }
    2.44 -
     3.1 --- a/autoblog/receipt	Sat Mar 03 17:38:00 2018 +0200
     3.2 +++ b/autoblog/receipt	Sun Mar 04 04:56:40 2018 +0200
     3.3 @@ -1,46 +1,43 @@
     3.4 -# SliTaz package receipt.
     3.5 +# SliTaz package receipt v2.
     3.6  
     3.7  PACKAGE="autoblog"
     3.8  VERSIONV1="0.1.31"
     3.9  VERSIONV2="2.5.22"	# need php 5.3
    3.10  VERSION="$VERSIONV1"
    3.11  CATEGORY="network"
    3.12 -SHORT_DESC="Replicates articles from another blog."
    3.13 +SHORT_DESC="Replicates articles from another blog"
    3.14  MAINTAINER="pascal.bellard@slitaz.org"
    3.15  LICENSE="PublicDomain"
    3.16 +WEB_SITE="http://sebsauvage.net/streisand.me/"
    3.17 +
    3.18  TARBALL="$PACKAGE-$VERSION"
    3.19  EXTRA_SOURCE_FILES="vvb.ini"
    3.20  URLV1="http://sebsauvage.net/streisand.me/download.php"
    3.21  URLV2="http://autoblog.kd2.org/source.txt"
    3.22  URL="$URLV1"
    3.23 -WEB_SITE="http://sebsauvage.net/streisand.me/"
    3.24  
    3.25 -DEPENDS="php"
    3.26 +compile_rules() {
    3.27 +	[ -s "$SRC/$TARBALL" ] ||
    3.28 +	wget -O "$SRC/$TARBALL" $URL
    3.29  
    3.30 -# Rules to configure and make the package.
    3.31 -compile_rules()
    3.32 -{
    3.33 -	[ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
    3.34 -		wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL
    3.35 -	[ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
    3.36 -		wget -O "$SOURCES_REPOSITORY/vvb.ini" \
    3.37 -			http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
    3.38 -	mkdir -p $src 2> /dev/null
    3.39 +	[ -s "$SRC/vvb.ini" ] ||
    3.40 +	wget -O "$SRC/vvb.ini" http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
    3.41 +	mkdir -p $src
    3.42 +
    3.43 +	mkdir -p         $install/var/www/$PACKAGE
    3.44 +	cp $SRC/$TARBALL $install/var/www/$PACKAGE/index.php
    3.45 +	cp $SRC/vvb.ini  $install/var/www/$PACKAGE/
    3.46 +	dos2unix         $install/var/www/$PACKAGE/*
    3.47 +	chown -R www     $install/var/www/$PACKAGE
    3.48  }
    3.49  
    3.50 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.51 -genpkg_rules()
    3.52 -{
    3.53 -	mkdir -p $fs/var/www/$PACKAGE
    3.54 -	cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php
    3.55 -	cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
    3.56 -	dos2unix $fs/var/www/$PACKAGE/*
    3.57 +genpkg_rules() {
    3.58 +	copy @std
    3.59 +	DEPENDS="php"
    3.60  }
    3.61  
    3.62 -post_install()
    3.63 -{
    3.64 +post_install() {
    3.65  	mytz="$(cat "$1/etc/TZ")"
    3.66  	[ -n "$mytz" ] && sed  -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
    3.67 -	chown -R www "$1/var/www/$PACKAGE"
    3.68 -	[ -z "$quiet" ] && echo "You should update /var/www/$PACKAGE/vvb.ini now..."
    3.69 +	[ -n "$quiet" ] || echo "You should update /var/www/$PACKAGE/vvb.ini now..."
    3.70  }
     4.1 --- a/blazekiss/receipt	Sat Mar 03 17:38:00 2018 +0200
     4.2 +++ b/blazekiss/receipt	Sun Mar 04 04:56:40 2018 +0200
     4.3 @@ -1,33 +1,28 @@
     4.4 -# SliTaz package receipt.
     4.5 +# SliTaz package receipt v2.
     4.6  
     4.7  PACKAGE="blazekiss"
     4.8  GITHASH="d5349fb3e1a14bdf4a85273b29dd24653e2f3177"
     4.9  VERSION=${GITHASH:0:7}
    4.10  CATEGORY="office"
    4.11 -SHORT_DESC="Tiny Wiki Engine in french."
    4.12 +SHORT_DESC="Tiny Wiki Engine in French"
    4.13  MAINTAINER="pascal.bellard@slitaz.org"
    4.14  LICENSE="GPL2"
    4.15 +WEB_SITE="http://projet.idleman.fr/blazekiss/"
    4.16 +
    4.17  TARBALL="$PACKAGE-$VERSION.zip"
    4.18 -WEB_SITE="http://projet.idleman.fr/blazekiss/"
    4.19  WGET_URL="https://github.com/ldleman/$PACKAGE/archive/$GITHASH.zip"
    4.20 -CONFIG_FILES="/var/www/blazekiss/_config.php"
    4.21  
    4.22 -DEPENDS="lighttpd php"
    4.23 -BUILD_DEPENDS="wget"
    4.24 -
    4.25 -# Rules to configure and make the package.
    4.26 -compile_rules()
    4.27 -{
    4.28 -	true
    4.29 +compile_rules() {
    4.30 +	index=$(find $src -name index.php)
    4.31 +	src=$(dirname $index)
    4.32 +	mkdir -p         $install/var/www
    4.33 +	cp -a $src       $install/var/www/blazekiss
    4.34 +	rm -f            $install/var/www/blazekiss/historique/*/*.bak
    4.35 +	chown -R www.www $install/var/www/blazekiss
    4.36  }
    4.37  
    4.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.39 -genpkg_rules()
    4.40 -{
    4.41 -	index=$(find $src -name index.php)
    4.42 -	src=$(dirname $index)
    4.43 -	mkdir -p $fs/var/www
    4.44 -	cp -a $src $fs/var/www/blazekiss
    4.45 -	rm -f $fs/var/www/blazekiss/historique/*/*.bak
    4.46 -	chown -R www.www $fs/var/www/blazekiss
    4.47 +genpkg_rules() {
    4.48 +	copy @std
    4.49 +	DEPENDS="lighttpd php"
    4.50 +	CONFIG_FILES="/var/www/blazekiss/_config.php"
    4.51  }
     5.1 --- a/bsc/receipt	Sat Mar 03 17:38:00 2018 +0200
     5.2 +++ b/bsc/receipt	Sun Mar 04 04:56:40 2018 +0200
     5.3 @@ -1,28 +1,24 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="bsc"
     5.8  VERSION="3.1.0"
     5.9  CATEGORY="base-system"
    5.10 -SHORT_DESC="High performance block-sorting data compression."
    5.11 +SHORT_DESC="High performance block-sorting data compression"
    5.12  MAINTAINER="pascal.bellard@slitaz.org"
    5.13  LICENSE="GPL3 LGPL3 Apache"
    5.14 +WEB_SITE="http://libbsc.com/"
    5.15 +
    5.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.17 -WEB_SITE="http://libbsc.com/"
    5.18  WGET_URL="https://github.com/IlyaGrebnov/libbsc/archive/$VERSION.tar.gz"
    5.19 -TAGS="compression"
    5.20  
    5.21 -DEPENDS="gcc-lib-base libgomp"
    5.22 -
    5.23 -# Rules to configure and make the package.
    5.24 -compile_rules()
    5.25 -{
    5.26 +compile_rules() {
    5.27  	# LIBBSC_SORT_TRANSFORM_SUPPORT is not free and not used.
    5.28 -	make
    5.29 +	make &&
    5.30 +	install -Dm755 $src/bsc $install/usr/bin/bsc
    5.31  }
    5.32  
    5.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.34 -genpkg_rules()
    5.35 -{
    5.36 -	mkdir -p $fs/usr/bin
    5.37 -	cp -a $src/bsc $fs/usr/bin
    5.38 +genpkg_rules() {
    5.39 +	copy @std
    5.40 +	DEPENDS="gcc-lib-base libgomp"
    5.41 +	TAGS="compression"
    5.42  }
     6.1 --- a/btmgr/receipt	Sat Mar 03 17:38:00 2018 +0200
     6.2 +++ b/btmgr/receipt	Sun Mar 04 04:56:40 2018 +0200
     6.3 @@ -1,42 +1,42 @@
     6.4 -# SliTaz package receipt.
     6.5 +# SliTaz package receipt v2.
     6.6  
     6.7  PACKAGE="btmgr"
     6.8  VERSION="3.7-1"
     6.9  CATEGORY="system-tools"
    6.10 -SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)."
    6.11 +SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)"
    6.12  MAINTAINER="pascal.bellard@slitaz.org"
    6.13  LICENSE="GPL2"
    6.14 +WEB_SITE="http://btmgr.sourceforge.net/about.html"
    6.15 +
    6.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.17 -WEB_SITE="http://$PACKAGE.sourceforge.net/about.html"
    6.18 -WGET_URL="http://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL"
    6.19 -TAGS="boot loader floppy CD"
    6.20 +WGET_URL="http://btmgr.sourceforge.net/${VERSION%-*}/$TARBALL"
    6.21  
    6.22 -# Rules to configure and make the package.
    6.23 -compile_rules()
    6.24 -{
    6.25 +compile_rules() {
    6.26  	echo "I'm too lazy to hack and build it !"
    6.27 -# $stuff/btmgr has been built this way:
    6.28 -# 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
    6.29 -# 2- # chmod +x sbminst-static
    6.30 -# 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
    6.31 -# 4- # ./sbminst-static -t us -d /dev/fd0
    6.32 -# 5- # dd if=/dev/fd0 of=$stuff/btmgr
    6.33 -# 6- remove tailing zeros $stuff/btmgr
    6.34 +	# $stuff/btmgr has been built this way:
    6.35 +	# 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
    6.36 +	# 2- # chmod +x sbminst-static
    6.37 +	# 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
    6.38 +	# 4- # ./sbminst-static -t us -d /dev/fd0
    6.39 +	# 5- # dd if=/dev/fd0 of=$stuff/btmgr
    6.40 +	# 6- remove tailing zeros $stuff/btmgr
    6.41 +
    6.42 +	install -Dm644 $stuff/btmgr $install/usr/share/boot/btmgr
    6.43  }
    6.44  
    6.45  
    6.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.47 -genpkg_rules()
    6.48 -{
    6.49 -	mkdir -p $fs/usr/share/boot
    6.50 -	cp $stuff/btmgr $fs/usr/share/boot/
    6.51 +genpkg_rules() {
    6.52 +	copy @std
    6.53 +	TAGS="boot loader floppy CD"
    6.54  }
    6.55  
    6.56 -# Pre and post install commands for Tazpkg.
    6.57 -post_install()
    6.58 -{
    6.59 -	echo "----"
    6.60 -	echo "You can create boot floppy with:"
    6.61 -	echo "# cp /usr/share/boot/btmgr /dev/fd0"
    6.62 -	echo "----"
    6.63 +post_install() {
    6.64 +	cat <<EOT
    6.65 +
    6.66 +	.-------------------------------------.
    6.67 +	| You can create boot floppy with:    |
    6.68 +	|                                     |
    6.69 +	| # cp /usr/share/boot/btmgr /dev/fd0 |
    6.70 +	'-------------------------------------'
    6.71 +EOT
    6.72  }
     7.1 --- a/caps/receipt	Sat Mar 03 17:38:00 2018 +0200
     7.2 +++ b/caps/receipt	Sun Mar 04 04:56:40 2018 +0200
     7.3 @@ -1,31 +1,27 @@
     7.4 -# SliTaz package receipt.
     7.5 +# SliTaz package receipt v2.
     7.6  
     7.7  PACKAGE="caps"
     7.8  VERSION="0.4.4"
     7.9  CATEGORY="multimedia"
    7.10 -SHORT_DESC="The CAPS Audio Plugin Suite."
    7.11 +SHORT_DESC="The CAPS Audio Plugin Suite"
    7.12  MAINTAINER="paul@slitaz.org"
    7.13  LICENSE="GPL2"
    7.14  WEB_SITE="http://quitte.de/dsp/caps.html"
    7.15 +
    7.16  TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    7.17  WGET_URL="http://quitte.de/dsp/$TARBALL"
    7.18  
    7.19 -DEPENDS=""
    7.20  BUILD_DEPENDS="python"
    7.21  
    7.22 -# Rules to configure and make the package.
    7.23 -compile_rules()
    7.24 -{
    7.25 -	cd $src
    7.26 -	./configure.py 
    7.27 -	make rdf
    7.28 -	make caps.so
    7.29 +compile_rules() {
    7.30 +	./configure.py &&
    7.31 +	make rdf &&
    7.32 +	make caps.so || return 1
    7.33 +
    7.34 +	install -Dm644 $src/caps.rdf $install/usr/share/ladspa/rdf/caps.rdf
    7.35 +	install -Dm755 $src/caps.so  $install/usr/lib/ladspa/caps.so
    7.36  }
    7.37  
    7.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.39 -genpkg_rules()
    7.40 -{
    7.41 -	mkdir -p $fs/usr/lib/ladspa $fs/usr/share/ladspa/rdf
    7.42 -	cp $src/caps.rdf $fs/usr/share/ladspa/rdf
    7.43 -	cp -a $src/caps.so $fs/usr/lib/ladspa
    7.44 +genpkg_rules() {
    7.45 +	copy @std
    7.46  }
     8.1 --- a/chkrootkit/receipt	Sat Mar 03 17:38:00 2018 +0200
     8.2 +++ b/chkrootkit/receipt	Sun Mar 04 04:56:40 2018 +0200
     8.3 @@ -1,33 +1,33 @@
     8.4 -# SliTaz package receipt.
     8.5 +# SliTaz package receipt v2.
     8.6  
     8.7  PACKAGE="chkrootkit"
     8.8  VERSION="0.50"
     8.9  CATEGORY="security"
    8.10 -SHORT_DESC="Locally checks for signs of a rootkit."
    8.11 +SHORT_DESC="Locally checks for signs of a rootkit"
    8.12  MAINTAINER="pascal.bellard@slitaz.org"
    8.13  LICENSE="BSD"
    8.14 +WEB_SITE="http://www.chkrootkit.org/"
    8.15 +
    8.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.17 -WEB_SITE="http://www.chkrootkit.org/"
    8.18  WGET_URL="ftp://ftp.pangeia.com.br/pub/seg/pac/$TARBALL"
    8.19  
    8.20 -# Rules to configure and make the package.
    8.21 -compile_rules()
    8.22 -{
    8.23 -	[ -f done.chkrootkit.u ] || patch -p1 < $stuff/chkrootkit.u
    8.24 -	touch done.chkrootkit.u
    8.25 +compile_rules() {
    8.26  	sed -i 's/.*egrep} -c "\${GENERAL.*/&\n    ls -l ${CMD} | grep -q busybox ||/' chkrootkit
    8.27 -	make sense
    8.28 -}
    8.29 +	make sense || return 1
    8.30  
    8.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
    8.32 -genpkg_rules()
    8.33 -{
    8.34 -	mkdir -p $fs/usr/share/chkrootkit
    8.35 -	for i in $(cd $src ; ls); do
    8.36 +	mkdir -p $install/usr/share/chkrootkit
    8.37 +	for i in $(cd $src; ls); do
    8.38  		case "$i" in
    8.39 -		README*) cp $src/$i $fs/usr/share/chkrootkit;;
    8.40 -		Makefile|*.*);;
    8.41 -		*) cp $src/$i $fs/usr/share/chkrootkit;;
    8.42 +			README*)
    8.43 +				cp $src/$i $install/usr/share/chkrootkit;;
    8.44 +			Makefile|*.*)
    8.45 +				;;
    8.46 +			*)
    8.47 +				cp $src/$i $install/usr/share/chkrootkit;;
    8.48  		esac
    8.49  	done
    8.50  }
    8.51 +
    8.52 +genpkg_rules() {
    8.53 +	copy @std
    8.54 +}
     9.1 --- a/chkrootkit/stuff/chkrootkit.u	Sat Mar 03 17:38:00 2018 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,52 +0,0 @@
     9.4 ---- chkrootkit-0.50/chkrootkit
     9.5 -+++ chkrootkit-0.50/chkrootkit
     9.6 -@@ -591,8 +591,13 @@
     9.7 -       if [ ! -z "${SHELL}" -a ! -z "${HOME}" ]; then
     9.8 -       expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
     9.9 -  -size 0"
    9.10 --      expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
    9.11 -+        if ls -l ${ROOTDIR}/usr/bin/find | ${egrep} -q 'bin/busybox$'; then
    9.12 -+          expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
    9.13 -+ -type l"
    9.14 -+        else
    9.15 -+          expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
    9.16 -  \( -links 2 -o -type l \)"
    9.17 -+        fi
    9.18 -       fi
    9.19 - 
    9.20 -       return 5
    9.21 -@@ -986,7 +991,9 @@
    9.22 -    ### Suckit
    9.23 -    if [ -f ${ROOTDIR}sbin/init ]; then
    9.24 -       if [ "${QUIET}" != "t" ];then printn "Searching for Suckit rootkit... "; fi
    9.25 --      if [ ${SYSTEM} != "HP-UX" ] && ( ${strings} ${ROOTDIR}sbin/init | ${egrep} 'HOME='   || \
    9.26 -+      if [ ${SYSTEM} != "HP-UX" ] && \
    9.27 -+      		((! ls -l ${ROOTDIR}sbin/init  | ${egrep} -q "bin/busybox$" && \
    9.28 -+      		${strings} ${ROOTDIR}sbin/init | ${egrep} 'HOME=' ) || \
    9.29 - 	      cat ${ROOTDIR}/proc/1/maps | ${egrep} "init." ) >/dev/null 2>&1
    9.30 -         then
    9.31 -         echo "Warning: ${ROOTDIR}sbin/init INFECTED"
    9.32 -@@ -1190,7 +1197,12 @@
    9.33 -       files=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' -size 0`
    9.34 -       [ ! -z "${files}" ] && \
    9.35 -         echo "Warning: \`${files}' file size is zero"
    9.36 --      files1=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' \( -links 2 -o -type l \)`
    9.37 -+      if ls -l ${ROOTDIR}/usr/bin/find | ${egrep} -q 'bin/busybox$'; then
    9.38 -+        files1='-type l'
    9.39 -+      else
    9.40 -+        files1='\( -links 2 -o -type l \)'
    9.41 -+      fi
    9.42 -+      files1=`eval ${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' $files1`
    9.43 -       [ ! -z "${files1}" ] && \
    9.44 -         echo "Warning: \`${files1}' is linked to another file"
    9.45 -    fi
    9.46 -@@ -1600,6 +1612,9 @@
    9.47 - chk_netstat () {
    9.48 -     STATUS=${NOT_INFECTED}
    9.49 - NETSTAT_I_L="/dev/hdl0/dev/xdta|/dev/ttyoa|/dev/pty[pqrsx]|/dev/cui|/dev/hdn0|/dev/cui221|/dev/dszy|/dev/ddth3|/dev/caca|^/prof|/dev/tux|grep|addr\.h|__bzero"
    9.50 -+    if ls -l /bin/netstat | ${egrep} -q " busybox$"; then
    9.51 -+       return ${STATUS}
    9.52 -+    fi
    9.53 -     CMD=`loc netstat netstat $pth`
    9.54 - 
    9.55 -     if [ "${EXPERT}" = "t" ]; then
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/chkrootkit/stuff/patches/chkrootkit.u	Sun Mar 04 04:56:40 2018 +0200
    10.3 @@ -0,0 +1,52 @@
    10.4 +--- chkrootkit-0.50/chkrootkit
    10.5 ++++ chkrootkit-0.50/chkrootkit
    10.6 +@@ -591,8 +591,13 @@
    10.7 +       if [ ! -z "${SHELL}" -a ! -z "${HOME}" ]; then
    10.8 +       expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
    10.9 +  -size 0"
   10.10 +-      expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
   10.11 ++        if ls -l ${ROOTDIR}/usr/bin/find | ${egrep} -q 'bin/busybox$'; then
   10.12 ++          expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
   10.13 ++ -type l"
   10.14 ++        else
   10.15 ++          expertmode_output "${find} ${ROOTDIR}${HOME} ${findargs} -name .*history \
   10.16 +  \( -links 2 -o -type l \)"
   10.17 ++        fi
   10.18 +       fi
   10.19 + 
   10.20 +       return 5
   10.21 +@@ -986,7 +991,9 @@
   10.22 +    ### Suckit
   10.23 +    if [ -f ${ROOTDIR}sbin/init ]; then
   10.24 +       if [ "${QUIET}" != "t" ];then printn "Searching for Suckit rootkit... "; fi
   10.25 +-      if [ ${SYSTEM} != "HP-UX" ] && ( ${strings} ${ROOTDIR}sbin/init | ${egrep} 'HOME='   || \
   10.26 ++      if [ ${SYSTEM} != "HP-UX" ] && \
   10.27 ++      		((! ls -l ${ROOTDIR}sbin/init  | ${egrep} -q "bin/busybox$" && \
   10.28 ++      		${strings} ${ROOTDIR}sbin/init | ${egrep} 'HOME=' ) || \
   10.29 + 	      cat ${ROOTDIR}/proc/1/maps | ${egrep} "init." ) >/dev/null 2>&1
   10.30 +         then
   10.31 +         echo "Warning: ${ROOTDIR}sbin/init INFECTED"
   10.32 +@@ -1190,7 +1197,12 @@
   10.33 +       files=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' -size 0`
   10.34 +       [ ! -z "${files}" ] && \
   10.35 +         echo "Warning: \`${files}' file size is zero"
   10.36 +-      files1=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' \( -links 2 -o -type l \)`
   10.37 ++      if ls -l ${ROOTDIR}/usr/bin/find | ${egrep} -q 'bin/busybox$'; then
   10.38 ++        files1='-type l'
   10.39 ++      else
   10.40 ++        files1='\( -links 2 -o -type l \)'
   10.41 ++      fi
   10.42 ++      files1=`eval ${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' $files1`
   10.43 +       [ ! -z "${files1}" ] && \
   10.44 +         echo "Warning: \`${files1}' is linked to another file"
   10.45 +    fi
   10.46 +@@ -1600,6 +1612,9 @@
   10.47 + chk_netstat () {
   10.48 +     STATUS=${NOT_INFECTED}
   10.49 + NETSTAT_I_L="/dev/hdl0/dev/xdta|/dev/ttyoa|/dev/pty[pqrsx]|/dev/cui|/dev/hdn0|/dev/cui221|/dev/dszy|/dev/ddth3|/dev/caca|^/prof|/dev/tux|grep|addr\.h|__bzero"
   10.50 ++    if ls -l /bin/netstat | ${egrep} -q " busybox$"; then
   10.51 ++       return ${STATUS}
   10.52 ++    fi
   10.53 +     CMD=`loc netstat netstat $pth`
   10.54 + 
   10.55 +     if [ "${EXPERT}" = "t" ]; then
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/chkrootkit/stuff/patches/series	Sun Mar 04 04:56:40 2018 +0200
    11.3 @@ -0,0 +1,1 @@
    11.4 +chkrootkit.u
    12.1 --- a/ckermit/receipt	Sat Mar 03 17:38:00 2018 +0200
    12.2 +++ b/ckermit/receipt	Sun Mar 04 04:56:40 2018 +0200
    12.3 @@ -1,28 +1,26 @@
    12.4 -# SliTaz package receipt.
    12.5 +# SliTaz package receipt v2.
    12.6  
    12.7  PACKAGE="ckermit"
    12.8  VERSION="9.0.302"
    12.9  CATEGORY="network"
   12.10 -SHORT_DESC="Portable Scriptable Network and Serial Communication Software."
   12.11 +SHORT_DESC="Portable Scriptable Network and Serial Communication Software"
   12.12  MAINTAINER="pascal.bellard@slitaz.org"
   12.13  LICENSE="BSD"
   12.14  WEB_SITE="http://www.columbia.edu/kermit/ck90.html"
   12.15 +
   12.16  TARBALL="cku${VERSION##*.}.tar.gz"
   12.17  WGET_URL="ftp://kermit.columbia.edu/kermit/archives/$TARBALL"
   12.18  
   12.19 -DEPENDS="ncurses"
   12.20  BUILD_DEPENDS="ncurses-dev"
   12.21  
   12.22 -# Rules to configure and make the package.
   12.23 -compile_rules()
   12.24 -{
   12.25 -	make linux "LNKFLAGS=-lncurses"
   12.26 +compile_rules() {
   12.27 +	make linux "LNKFLAGS=-lncurses" || return 1
   12.28 +
   12.29 +	install -Dm755 $src/wart   $install/usr/bin/wart
   12.30 +	install -Dm755 $src/wermit $install/usr/bin/wermit
   12.31  }
   12.32  
   12.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
   12.34 -genpkg_rules()
   12.35 -{
   12.36 -	mkdir -p $fs/usr/bin
   12.37 -	cp $src/wart $fs/usr/bin
   12.38 -	cp $src/wermit $fs/usr/bin
   12.39 +genpkg_rules() {
   12.40 +	copy @std
   12.41 +	DEPENDS="ncurses"
   12.42  }
    13.1 --- a/cmospwd/receipt	Sat Mar 03 17:38:00 2018 +0200
    13.2 +++ b/cmospwd/receipt	Sun Mar 04 04:56:40 2018 +0200
    13.3 @@ -1,27 +1,24 @@
    13.4 -# SliTaz package receipt.
    13.5 +# SliTaz package receipt v2.
    13.6  
    13.7  PACKAGE="cmospwd"
    13.8  VERSION="5.0"
    13.9  CATEGORY="misc"
   13.10 -SHORT_DESC="Decrypts password stored in cmos used to access BIOS SETUP."
   13.11 +SHORT_DESC="Decrypts password stored in cmos used to access BIOS SETUP"
   13.12  MAINTAINER="pascal.bellard@slitaz.org"
   13.13  LICENSE="GPL2"
   13.14 +WEB_SITE="http://www.cgsecurity.org/wiki/CmosPwd"
   13.15 +
   13.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   13.17 -WEB_SITE="http://www.cgsecurity.org/wiki/CmosPwd"
   13.18  WGET_URL="http://www.cgsecurity.org/$TARBALL"
   13.19 -TAGS="CMOS"
   13.20  
   13.21 -# Rules to configure and make the package.
   13.22 -compile_rules()
   13.23 -{
   13.24 +compile_rules() {
   13.25  	cd $src/src
   13.26  	rm -f cmospwd
   13.27 -	make
   13.28 +	make &&
   13.29 +	install -Dm755 $src/src/cmospwd $install/usr/bin/cmospwd
   13.30  }
   13.31  
   13.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
   13.33 -genpkg_rules()
   13.34 -{
   13.35 -	mkdir -p $fs/usr/bin
   13.36 -	cp -a $src/src/cmospwd $fs/usr/bin
   13.37 +genpkg_rules() {
   13.38 +	copy @std
   13.39 +	TAGS="CMOS"
   13.40  }
    14.1 --- a/cpulimit/receipt	Sat Mar 03 17:38:00 2018 +0200
    14.2 +++ b/cpulimit/receipt	Sun Mar 04 04:56:40 2018 +0200
    14.3 @@ -1,27 +1,21 @@
    14.4 -# SliTaz package receipt.
    14.5 +# SliTaz package receipt v2.
    14.6  
    14.7  PACKAGE="cpulimit"
    14.8  VERSION="1.1"
    14.9  CATEGORY="system-tools"
   14.10 -SHORT_DESC="Limits the cpu usage of a process"
   14.11 +SHORT_DESC="Limits the CPU usage of a process"
   14.12  MAINTAINER="allan316@gmail.com"
   14.13  LICENSE="GPL2"
   14.14 +WEB_SITE="http://cpulimit.sourceforge.net"
   14.15 +
   14.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   14.17 -WEB_SITE="http://cpulimit.sourceforge.net"
   14.18  WGET_URL="http://ovh.dl.sourceforge.net/sourceforge/cpulimit/$TARBALL"
   14.19  
   14.20 -DEPENDS=""
   14.21 -
   14.22 -# Rules to configure and make the package.
   14.23 -compile_rules()
   14.24 -{
   14.25 -	cd $src
   14.26 -	make
   14.27 +compile_rules() {
   14.28 +	make &&
   14.29 +	install _Dm755 $src/cpulimit $install/usr/bin/cpulimit
   14.30  }
   14.31  
   14.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
   14.33 -genpkg_rules()
   14.34 -{
   14.35 -	mkdir -p $fs/usr/bin
   14.36 -	cp -a $src/cpulimit $fs/usr/bin
   14.37 +genpkg_rules() {
   14.38 +	copy @std
   14.39  }
    15.1 --- a/cpuspeed/receipt	Sat Mar 03 17:38:00 2018 +0200
    15.2 +++ b/cpuspeed/receipt	Sun Mar 04 04:56:40 2018 +0200
    15.3 @@ -1,4 +1,4 @@
    15.4 -# SliTaz package receipt.
    15.5 +# SliTaz package receipt v2.
    15.6  
    15.7  PACKAGE="cpuspeed"
    15.8  VERSION="1.5"
    15.9 @@ -7,22 +7,17 @@
   15.10  MAINTAINER="jozee@slitaz.org"
   15.11  LICENSE="GPL2"
   15.12  WEB_SITE="http://www.carlthompson.net/Software/CPUSpeed"
   15.13 -CONFIG_FILES="etc/default/cpufreq"
   15.14 +
   15.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   15.16  WGET_URL="http://www.carlthompson.net/downloads/$PACKAGE/$TARBALL"
   15.17 -TAGS="power-management"
   15.18 -
   15.19 -# Rules to configure and make the package.
   15.20  
   15.21  compile_rules() {
   15.22 -  cd $src  
   15.23 -  make 
   15.24 +	make &&
   15.25 +	install -Dm755 $src/cpuspeed $install/sbin/cpuspeed
   15.26  }
   15.27 -	
   15.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
   15.29 -genpkg_rules()
   15.30 -{
   15.31 -	mkdir -p $fs/sbin
   15.32 -	cp -a $src/cpuspeed $fs/sbin
   15.33 -	
   15.34 +
   15.35 +genpkg_rules() {
   15.36 +	copy @std
   15.37 +	CONFIG_FILES="etc/default/cpufreq"
   15.38 +	TAGS="power-management"
   15.39  }
    16.1 --- a/cramfs/receipt	Sat Mar 03 17:38:00 2018 +0200
    16.2 +++ b/cramfs/receipt	Sun Mar 04 04:56:40 2018 +0200
    16.3 @@ -1,28 +1,25 @@
    16.4 -# SliTaz package receipt.
    16.5 +# SliTaz package receipt v2.
    16.6  
    16.7  PACKAGE="cramfs"
    16.8  VERSION="1.1"
    16.9  CATEGORY="base-system"
   16.10 -SHORT_DESC="simple and small, compressed filesystem."
   16.11 +SHORT_DESC="Simple and small, compressed filesystem"
   16.12  LICENSE="GPL2"
   16.13  MAINTAINER="pascal.bellard@slitaz.org"
   16.14 +WEB_SITE="http://cramfs.sourceforge.net/"
   16.15 +
   16.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   16.17 -WEB_SITE="http://cramfs.sourceforge.net/"
   16.18  WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
   16.19  
   16.20 -DEPENDS="zlib"
   16.21  BUILD_DEPENDS="zlib-dev"
   16.22  
   16.23 -# Rules to configure and make the package.
   16.24 -compile_rules()
   16.25 -{
   16.26 -	make
   16.27 +compile_rules() {
   16.28 +	make || return 1
   16.29 +	install -Dm755 $src/mkcramfs $install/usr/sbin/mkcramfs
   16.30 +	install -Dm755 $src/cramfsck $install/usr/sbin/cramfsck
   16.31  }
   16.32  
   16.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
   16.34 -genpkg_rules()
   16.35 -{
   16.36 -	mkdir -p $fs/usr/sbin
   16.37 -	cp -a $src/mkcramfs $fs/usr/sbin
   16.38 -	cp -a $src/cramfsck $fs/usr/sbin
   16.39 +genpkg_rules() {
   16.40 +	copy @std
   16.41 +	DEPENDS="zlib"
   16.42  }
    17.1 --- a/cups-pdf/receipt	Sat Mar 03 17:38:00 2018 +0200
    17.2 +++ b/cups-pdf/receipt	Sun Mar 04 04:56:40 2018 +0200
    17.3 @@ -1,30 +1,27 @@
    17.4 -# SliTaz package receipt.
    17.5 +# SliTaz package receipt v2.
    17.6  
    17.7  PACKAGE="cups-pdf"
    17.8 -VERSION="2.6.1" 
    17.9 +VERSION="2.6.1"
   17.10  CATEGORY="system-tools"
   17.11 -SHORT_DESC="PDF printer for cups"
   17.12 +SHORT_DESC="PDF printer for CUPS"
   17.13  MAINTAINER="jozee@slitaz.org"
   17.14  LICENSE="GPL2"
   17.15 +WEB_SITE="http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf"
   17.16 +
   17.17  TARBALL="${PACKAGE}_${VERSION}.tar.gz"
   17.18 -WEB_SITE="http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf"
   17.19  WGET_URL="${WEB_SITE}/src/${TARBALL}"
   17.20 -TAGS="printer printing"
   17.21  
   17.22 -DEPENDS="ghostscript cups"
   17.23 +compile_rules() {
   17.24 +	cd $src/src
   17.25 +	gcc -Wall -o cups-pdf cups-pdf.c || return 1
   17.26  
   17.27 -# Rules to configure and make the package.
   17.28 -compile_rules()
   17.29 -{
   17.30 -	cd $src/src
   17.31 -	gcc -Wall -o cups-pdf cups-pdf.c	
   17.32 +	install -Dm755 $src/src/cups-pdf        $install/usr/lib/cups/backend/cups-pdf
   17.33 +	install -Dm644 $src/extra/CUPS-PDF.ppd  $install/usr/share/cups/model/CUPS-PDF.ppd
   17.34 +	install -Dm644 $src/extra/cups-pdf.conf $install/etc/cups/cups-pdf.conf
   17.35  }
   17.36  
   17.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
   17.38 -genpkg_rules()
   17.39 -{
   17.40 -	mkdir -p $fs/etc/cups $fs/usr/lib/cups/backend $fs/usr/share/cups/model
   17.41 -	cp -a $src/src/cups-pdf $fs/usr/lib/cups/backend 
   17.42 -	cp -a $src/extra/CUPS-PDF.ppd $fs/usr/share/cups/model
   17.43 -	cp -a $src/extra/cups-pdf.conf   $fs/etc/cups
   17.44 -}
   17.45 \ No newline at end of file
   17.46 +genpkg_rules() {
   17.47 +	copy @std
   17.48 +	DEPENDS="ghostscript cups"
   17.49 +	TAGS="printer printing"
   17.50 +}
    18.1 --- a/dd_rescue/receipt	Sat Mar 03 17:38:00 2018 +0200
    18.2 +++ b/dd_rescue/receipt	Sun Mar 04 04:56:40 2018 +0200
    18.3 @@ -1,28 +1,22 @@
    18.4 -# SliTaz package receipt.
    18.5 +# SliTaz package receipt v2.
    18.6  
    18.7  PACKAGE="dd_rescue"
    18.8  VERSION="1.22"
    18.9  CATEGORY="system-tools"
   18.10 -SHORT_DESC="Block device copy tools."
   18.11 +SHORT_DESC="Block device copy tools"
   18.12  MAINTAINER="erjo@slitaz.org"
   18.13  LICENSE="GPL2"
   18.14 +WEB_SITE="http://www.garloff.de/kurt/linux/ddrescue/"
   18.15 +
   18.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   18.17 -WEB_SITE="http://www.garloff.de/kurt/linux/ddrescue/"
   18.18  WGET_URL="http://www.garloff.de/kurt/linux/ddrescue/$TARBALL"
   18.19  
   18.20 -DEPENDS=""
   18.21 -
   18.22 -# Rules to configure and make the package.
   18.23 -compile_rules()
   18.24 -{
   18.25 -	cd $src
   18.26 -	make
   18.27 +compile_rules() {
   18.28 +	make &&
   18.29 +	install $src/dd_rescue $install/usr/bin/dd_rescue
   18.30  }
   18.31  
   18.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
   18.33 -genpkg_rules()
   18.34 -{
   18.35 -	mkdir -p $fs/usr/bin
   18.36 -	cp -a $src/dd_rescue $fs/usr/bin
   18.37 +genpkg_rules() {
   18.38 +	copy @std
   18.39  }
   18.40  
    19.1 --- a/dd_rhelp/receipt	Sat Mar 03 17:38:00 2018 +0200
    19.2 +++ b/dd_rhelp/receipt	Sun Mar 04 04:56:40 2018 +0200
    19.3 @@ -1,27 +1,21 @@
    19.4 -# SliTaz package receipt.
    19.5 +# SliTaz package receipt v2.
    19.6  
    19.7  PACKAGE="dd_rhelp"
    19.8  VERSION="0.3.0"
    19.9  CATEGORY="system-tools"
   19.10 -SHORT_DESC="Block device copy tools."
   19.11 +SHORT_DESC="Block device copy tools"
   19.12  MAINTAINER="pascal.bellard@slitaz.org"
   19.13  LICENSE="GPL2"
   19.14 +WEB_SITE="http://www.kalysto.org/utilities/dd_rhelp/"
   19.15 +
   19.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   19.17 -WEB_SITE="http://www.kalysto.org/utilities/dd_rhelp/"
   19.18  WGET_URL="http://www.kalysto.org/pkg/$TARBALL"
   19.19  
   19.20 -DEPENDS="bash dd_rescue"
   19.21 -
   19.22 -# Rules to configure and make the package.
   19.23 -compile_rules()
   19.24 -{
   19.25 -	cd $src
   19.26 +compile_rules() {
   19.27 +	install $src/dd_rhelp $install/usr/bin/dd_rhelp
   19.28  }
   19.29  
   19.30 -# Rules to gen a SliTaz package suitable for Tazpkg.
   19.31 -genpkg_rules()
   19.32 -{
   19.33 -	mkdir -p $fs/usr/bin
   19.34 -	cp -a $src/dd_rhelp $fs/usr/bin
   19.35 +genpkg_rules() {
   19.36 +	copy @std
   19.37 +	DEPENDS="bash dd_rescue"
   19.38  }
   19.39 -
    20.1 --- a/dhid/receipt	Sat Mar 03 17:38:00 2018 +0200
    20.2 +++ b/dhid/receipt	Sun Mar 04 04:56:40 2018 +0200
    20.3 @@ -1,37 +1,33 @@
    20.4 -# SliTaz package receipt.
    20.5 +# SliTaz package receipt v2.
    20.6  
    20.7  PACKAGE="dhid"
    20.8  VERSION="5.5"
    20.9  CATEGORY="network"
   20.10 -SHORT_DESC="Open source Dynamic IP Updater."
   20.11 +SHORT_DESC="Open source Dynamic IP Updater"
   20.12  MAINTAINER="pankso@slitaz.org"
   20.13  LICENSE="BSD"
   20.14 +WEB_SITE="http://dhis.org"
   20.15 +
   20.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   20.17 -WEB_SITE="http://dhis.org"
   20.18  WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL"
   20.19 -CONFIG_FILES="/etc/dhid.conf"
   20.20  
   20.21 -DEPENDS="gmp"
   20.22  BUILD_DEPENDS="gmp-dev"
   20.23  
   20.24 -# Handle cross comilation
   20.25 -case "$ARCH" in
   20.26 -	arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;;
   20.27 -esac
   20.28 -	
   20.29 -# Rules to configure and make the package.
   20.30 -compile_rules()
   20.31 -{
   20.32 -	make CC=${HOST_SYSTEM}-gcc ${ARCH_FLAGS}
   20.33 +compile_rules() {
   20.34 +	case "$ARCH" in
   20.35 +		arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib";;
   20.36 +	esac
   20.37 +
   20.38 +	make CC=$HOST_SYSTEM-gcc $ARCH_FLAGS || return 1
   20.39 +
   20.40 +	install -Dm644 $src/dhid.conf.sample $install/etc/dhid.conf
   20.41 +	install -Dm644 $src/README           $install/usr/share/doc/dhid/README
   20.42 +	install -Dm755 $src/dhid             $install/usr/sbin/dhid
   20.43 +	install -Dm755 $stuff/dhid           $install/etc/init.d/dhid
   20.44  }
   20.45  
   20.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
   20.47 -genpkg_rules()
   20.48 -{
   20.49 -	mkdir -p $fs/usr/sbin $fs/etc $fs/usr/share/doc/dhid
   20.50 -	cp ${src}/dhid.conf.sample ${fs}/etc/dhid.conf
   20.51 -	cp ${src}/README ${fs}/usr/share/doc/dhid
   20.52 -	cp -a ${src}/dhid ${fs}/usr/sbin
   20.53 -	cp -a ${stuff}/init.d ${fs}/etc
   20.54 +genpkg_rules() {
   20.55 +	copy @std
   20.56 +	DEPENDS="gmp"
   20.57 +	CONFIG_FILES="/etc/dhid.conf"
   20.58  }
   20.59 -
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/dhid/stuff/dhid	Sun Mar 04 04:56:40 2018 +0200
    21.3 @@ -0,0 +1,53 @@
    21.4 +#!/bin/sh
    21.5 +#
    21.6 +# /etc/init.d/dhid: Start, stop and restart dhis daemon on SliTaz
    21.7 +#
    21.8 +. /etc/init.d/rc.functions
    21.9 +#. /etc/daemons.conf
   21.10 +
   21.11 +NAME=DHID
   21.12 +DESC="$(_ 'DHIS client daemon')"
   21.13 +DAEMON=/usr/sbin/dhid
   21.14 +PIDFILE=/run/dhid.pid
   21.15 +OPTIONS="-P $PIDFILE"
   21.16 +
   21.17 +case "$1" in
   21.18 +	start)
   21.19 +		if active_pidfile $PIDFILE dhid; then
   21.20 +			_ '%s is already running.' $NAME
   21.21 +			exit 1
   21.22 +		fi
   21.23 +		action 'Starting %s: %s...' "$DESC" $NAME
   21.24 +		$DAEMON $OPTIONS
   21.25 +		status
   21.26 +		;;
   21.27 +	stop)
   21.28 +		if ! active_pidfile $PIDFILE dhid; then
   21.29 +			_ '%s is not running.' $NAME
   21.30 +			exit 1
   21.31 +		fi
   21.32 +		action 'Stopping %s: %s...' "$DESC" $NAME
   21.33 +		kill $(cat $PIDFILE)
   21.34 +		rm $PIDFILE
   21.35 +		status
   21.36 +		;;
   21.37 +	restart)
   21.38 +		if ! active_pidfile $PIDFILE dhid; then
   21.39 +			_ '%s is not running.' $NAME
   21.40 +			exit 1
   21.41 +		fi
   21.42 +		action 'Restarting %s: %s...' "$DESC" $NAME
   21.43 +		kill $(cat $PIDFILE)
   21.44 +		rm $PIDFILE
   21.45 +		sleep 2
   21.46 +		$DAEMON $OPTIONS
   21.47 +		status
   21.48 +		;;
   21.49 +	*)
   21.50 +		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
   21.51 +		newline
   21.52 +		exit 1
   21.53 +		;;
   21.54 +esac
   21.55 +
   21.56 +exit 0
    22.1 --- a/dhid/stuff/init.d/dhid	Sat Mar 03 17:38:00 2018 +0200
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,53 +0,0 @@
    22.4 -#!/bin/sh
    22.5 -#
    22.6 -# /etc/init.d/dhid: Start, stop and restart dhis daemon on SliTaz
    22.7 -#
    22.8 -. /etc/init.d/rc.functions
    22.9 -#. /etc/daemons.conf
   22.10 -
   22.11 -NAME=DHID
   22.12 -DESC="$(_ 'DHIS client daemon')"
   22.13 -DAEMON=/usr/sbin/dhid
   22.14 -PIDFILE=/run/dhid.pid
   22.15 -OPTIONS="-P $PIDFILE"
   22.16 -
   22.17 -case "$1" in
   22.18 -	start)
   22.19 -		if active_pidfile $PIDFILE dhid; then
   22.20 -			_ '%s is already running.' $NAME
   22.21 -			exit 1
   22.22 -		fi
   22.23 -		action 'Starting %s: %s...' "$DESC" $NAME
   22.24 -		$DAEMON $OPTIONS
   22.25 -		status
   22.26 -		;;
   22.27 -	stop)
   22.28 -		if ! active_pidfile $PIDFILE dhid; then
   22.29 -			_ '%s is not running.' $NAME
   22.30 -			exit 1
   22.31 -		fi
   22.32 -		action 'Stopping %s: %s...' "$DESC" $NAME
   22.33 -		kill $(cat $PIDFILE)
   22.34 -		rm $PIDFILE
   22.35 -		status
   22.36 -		;;
   22.37 -	restart)
   22.38 -		if ! active_pidfile $PIDFILE dhid; then
   22.39 -			_ '%s is not running.' $NAME
   22.40 -			exit 1
   22.41 -		fi
   22.42 -		action 'Restarting %s: %s...' "$DESC" $NAME
   22.43 -		kill $(cat $PIDFILE)
   22.44 -		rm $PIDFILE
   22.45 -		sleep 2
   22.46 -		$DAEMON $OPTIONS
   22.47 -		status
   22.48 -		;;
   22.49 -	*)
   22.50 -		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
   22.51 -		newline
   22.52 -		exit 1
   22.53 -		;;
   22.54 -esac
   22.55 -
   22.56 -exit 0
    23.1 --- a/disktype/receipt	Sat Mar 03 17:38:00 2018 +0200
    23.2 +++ b/disktype/receipt	Sun Mar 04 04:56:40 2018 +0200
    23.3 @@ -1,27 +1,22 @@
    23.4 -# SliTaz package receipt.
    23.5 +# SliTaz package receipt v2.
    23.6  
    23.7  PACKAGE="disktype"
    23.8  VERSION="9"
    23.9  CATEGORY="system-tools"
   23.10 -SHORT_DESC="Detects the content format of a disk or disk image (file systems, partition tables, and boot codes)"
   23.11 +SHORT_DESC="Detects the content format of a disk or disk image (file systems, \
   23.12 +partition tables, and boot codes)"
   23.13  MAINTAINER="db_slitaz@m4x.org"
   23.14  LICENSE="MIT"
   23.15 +WEB_SITE="http://disktype.sourceforge.net/"
   23.16 +
   23.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
   23.18 -WEB_SITE="http://disktype.sourceforge.net/"
   23.19  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
   23.20  
   23.21 -DEPENDS=""
   23.22 -
   23.23 -# Rules to configure and make the package.
   23.24 -compile_rules()
   23.25 -{
   23.26 -	cd $src
   23.27 -	make
   23.28 +compile_rules() {
   23.29 +	make &&
   23.30 +	install -Dm755 $src/disktype $install/usr/bin/disktype
   23.31  }
   23.32  
   23.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
   23.34 -genpkg_rules()
   23.35 -{
   23.36 -	mkdir -p $fs/usr/bin
   23.37 -	cp -a $src/disktype $fs/usr/bin
   23.38 +genpkg_rules() {
   23.39 +	copy @std
   23.40  }
    24.1 --- a/dmraid/receipt	Sat Mar 03 17:38:00 2018 +0200
    24.2 +++ b/dmraid/receipt	Sun Mar 04 04:56:40 2018 +0200
    24.3 @@ -1,37 +1,35 @@
    24.4 -# SliTaz package receipt.
    24.5 +# SliTaz package receipt v2.
    24.6  
    24.7  PACKAGE="dmraid"
    24.8  VERSION="1.0.0.rc16-3"
    24.9  CATEGORY="system-tools"
   24.10 -SHORT_DESC="Device-Mapper Software Raid Tool."
   24.11 +SHORT_DESC="Device-Mapper Software Raid Tool"
   24.12  MAINTAINER="pascal.bellard@slitaz.org"
   24.13  LICENSE="GPL2"
   24.14 +WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
   24.15 +
   24.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   24.17 -WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
   24.18  WGET_URL="$WEB_SITE/src/$TARBALL"
   24.19  
   24.20 -DEPENDS="libdevmapper linux-md"
   24.21  BUILD_DEPENDS="libdevmapper libdevmapper-dev"
   24.22  
   24.23 -# Rules to configure and make the package.
   24.24 -compile_rules()
   24.25 -{
   24.26 -	mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null
   24.27 +compile_rules() {
   24.28 +	mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2>/dev/null
   24.29  	cd $src
   24.30  	#sed -i 's/sed --quiet/sed/' configure configure.in
   24.31  	grep -qs 'define u8' lib/device/scsi.c ||
   24.32  	sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
   24.33  	./configure $CONFIGURE_ARGS &&
   24.34 -	make
   24.35 +	make || return 1
   24.36 +
   24.37 +	mkdir -p $install/usr/sbin  $install/usr/lib
   24.38 +	cp -a $src/lib/libdmraid.so $install/usr/lib/libdmraid.so.1
   24.39 +	cp -a $src/tools/dmraid     $install/usr/sbin
   24.40 +	cp -a stuff/grub-dmraid     $install/usr/sbin
   24.41 +	cp -a stuff/dmraid-start    $install/usr/sbin
   24.42  }
   24.43  
   24.44 -# Rules to gen a SliTaz package suitable for Tazpkg.
   24.45 -genpkg_rules()
   24.46 -{
   24.47 -	mkdir -p $fs/usr/sbin $fs/usr/lib
   24.48 -	cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1
   24.49 -	cp -a $src/tools/dmraid $fs/usr/sbin
   24.50 -	cp -a stuff/grub-dmraid $fs/usr/sbin
   24.51 -	cp -a stuff/dmraid-start $fs/usr/sbin
   24.52 +genpkg_rules() {
   24.53 +	copy @std
   24.54 +	DEPENDS="libdevmapper linux-md"
   24.55  }
   24.56 -
    25.1 --- a/dnstop/receipt	Sat Mar 03 17:38:00 2018 +0200
    25.2 +++ b/dnstop/receipt	Sun Mar 04 04:56:40 2018 +0200
    25.3 @@ -1,27 +1,25 @@
    25.4 -# SliTaz package receipt.
    25.5 +# SliTaz package receipt v2.
    25.6  
    25.7  PACKAGE="dnstop"
    25.8  VERSION="20121017"
    25.9  CATEGORY="network"
   25.10 -SHORT_DESC="Displays various tables of DNS traffic on your network."
   25.11 +SHORT_DESC="Displays various tables of DNS traffic on your network"
   25.12  MAINTAINER="paul@slitaz.org"
   25.13  LICENSE="BSD"
   25.14 -DEPENDS="ncurses libpcap"
   25.15 -BUILD_DEPENDS="ncurses-dev libpcap-dev"
   25.16 +WEB_SITE="http://dns.measurement-factory.com/tools/dnstop"
   25.17 +
   25.18  TARBALL="$PACKAGE-$VERSION.tar.gz"
   25.19 -WEB_SITE="http://dns.measurement-factory.com/tools/dnstop"
   25.20  WGET_URL="$WEB_SITE/src/$TARBALL"
   25.21  
   25.22 -# Rules to configure and make the package.
   25.23 -compile_rules()
   25.24 -{
   25.25 -	./configure --prefix=/usr
   25.26 -	make 
   25.27 +BUILD_DEPENDS="ncurses-dev libpcap-dev"
   25.28 +
   25.29 +compile_rules() {
   25.30 +	./configure --prefix=/usr &&
   25.31 +	make &&
   25.32 +	install -Dm755 $src/dnstop $fs/usr/bin/dnstop
   25.33  }
   25.34  
   25.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
   25.36 -genpkg_rules()
   25.37 -{
   25.38 -	mkdir -p $fs/usr/bin
   25.39 -	cp -a $src/$PACKAGE $fs/usr/bin
   25.40 +genpkg_rules() {
   25.41 +	copy @std
   25.42 +	DEPENDS="ncurses libpcap"
   25.43  }
    26.1 --- a/droid-font/receipt	Sat Mar 03 17:38:00 2018 +0200
    26.2 +++ b/droid-font/receipt	Sun Mar 04 04:56:40 2018 +0200
    26.3 @@ -1,4 +1,4 @@
    26.4 -# SliTaz package receipt.
    26.5 +# SliTaz package receipt v2.
    26.6  
    26.7  PACKAGE="droid-font"
    26.8  VERSION="2010-04-09"
    26.9 @@ -8,24 +8,19 @@
   26.10  MAINTAINER="devl547@gmail.com"
   26.11  LICENSE="Apache"
   26.12  WEB_SITE="http://www.droidfonts.com/"
   26.13 +
   26.14  # Located in git repo, so we need a snapshot and some dirty hacks.
   26.15  TARBALL="$PACKAGE-$VERSION.tgz"
   26.16  WGET_URL="http://android.git.kernel.org/?p=platform/frameworks/base.git;f=data/fonts;a=snapshot;h=$GIT_HASH;sf=tgz"
   26.17  
   26.18  BUILD_DEPENDS="wget"
   26.19  
   26.20 -# Rules to configure and make the package.
   26.21 -# Keep an empty compile_rules to make tazwok install build depends.
   26.22 -compile_rules()
   26.23 -{
   26.24 -	:
   26.25 +compile_rules() {
   26.26 +	dir=$install/usr/share/fonts/truetype/droid-font
   26.27 +	mkdir -p $dir
   26.28 +	cp $src/*.ttf $dir
   26.29  }
   26.30  
   26.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
   26.32 -genpkg_rules()
   26.33 -{
   26.34 -	dir=$fs/usr/share/fonts/truetype/droid-font
   26.35 -	mkdir -p $dir
   26.36 -	cp -a $src/*.ttf $dir
   26.37 -	chmod -x $dir/*.ttf
   26.38 +genpkg_rules() {
   26.39 +	copy @std
   26.40  }
    27.1 --- a/dwm/receipt	Sat Mar 03 17:38:00 2018 +0200
    27.2 +++ b/dwm/receipt	Sun Mar 04 04:56:40 2018 +0200
    27.3 @@ -1,23 +1,20 @@
    27.4 -# SliTaz package receipt.
    27.5 +# SliTaz package receipt v2.
    27.6  
    27.7  PACKAGE="dwm"
    27.8  VERSION="6.0"
    27.9  CATEGORY="x-window"
   27.10 -SHORT_DESC="Very light dynamic window manager for X."
   27.11 +SHORT_DESC="Very light dynamic window manager for X"
   27.12  MAINTAINER="pankso@slitaz.org"
   27.13  LICENSE="MIT"
   27.14 +WEB_SITE="http://dwm.suckless.org/"
   27.15 +
   27.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   27.17 -WEB_SITE="http://dwm.suckless.org/"
   27.18  WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
   27.19 -TAGS="window-manager"
   27.20  
   27.21 -DEPENDS="xorg-libX11 xorg-xsetroot"
   27.22  BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
   27.23  xorg-libXinerama-dev"
   27.24  
   27.25 -# Rules to configure and make the package.
   27.26 -compile_rules()
   27.27 -{
   27.28 +compile_rules() {
   27.29  	# From blue to grey and have lighter grey
   27.30  	sed -i s/'#0066ff'/'#222222'/g config.def.h
   27.31  	sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
   27.32 @@ -27,32 +24,30 @@
   27.33  	sed -i s/'1 << 8,'/'0,     '/ config.def.h
   27.34  	# [Shift]+[Alt]+[Enter]
   27.35  	sed -i s/uxterm/xterm/ config.def.h
   27.36 -	make CC=${HOST_SYSTEM}-gcc
   27.37 +	make CC=$HOST_SYSTEM-gcc || return 1
   27.38 +
   27.39 +	install -Dm755 $src/dwm           $install/usr/bin/dwm
   27.40 +	install -Dm755 $stuff/dwm-session $install/usr/bin/dwm-session
   27.41  }
   27.42  
   27.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
   27.44 -genpkg_rules()
   27.45 -{
   27.46 -	mkdir -p $fs/usr/bin
   27.47 -	cp -a $src/dwm $fs/usr/bin
   27.48 -	cp -a $stuff/dwm-session $fs/usr/bin
   27.49 -	chown 0.0 $fs/usr/bin/*
   27.50 +genpkg_rules() {
   27.51 +	copy @std
   27.52 +	DEPENDS="xorg-libX11 xorg-xsetroot"
   27.53 +	TAGS="window-manager"
   27.54  }
   27.55  
   27.56 -post_install()
   27.57 -{
   27.58 +# Adding WM to SLIM available sessions.
   27.59 +post_install() {
   27.60  	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
   27.61 -	# Adding WM to SLIM available sessions.
   27.62  	if ! echo "$res" | grep -q $PACKAGE; then
   27.63 -		echo -n "Adding $PACKAGE to /etc/slim.conf..."
   27.64 +		action "Adding $PACKAGE to /etc/slim.conf..."
   27.65  		sed -i "s/^sessions.*/sessions            ${res},dwm/" /etc/slim.conf
   27.66  		status
   27.67  	fi
   27.68  }
   27.69  
   27.70 -post_remove()
   27.71 -{
   27.72 -	# Remove karmen from SLIM available sessions.
   27.73 +# Remove dwm from SLIM available sessions.
   27.74 +post_remove() {
   27.75  	if grep -q dwm "$1/etc/slim.conf"; then
   27.76  		sed -i s/,dwm// "$1/etc/slim.conf"
   27.77  	fi