wok-next rev 9697

a*, b*, c*: starte with a tiny sed in the wok for stuff/ --> $/stuff
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 07 23:47:19 2011 +0200 (2011-05-07)
parents 74b63eaf8099
children fc20a2fab76c
files acpid/receipt ajaxterm/receipt apache/receipt asterisk/receipt audacious/receipt awstats/receipt backuppc/receipt bash/receipt beaver/receipt beneath-a-steel-sky/receipt bind/receipt blender/receipt boxbackup-client/receipt boxbackup-server/receipt btmgr/receipt celestia/receipt cgoban/receipt chemtool/receipt cherokee/receipt chillispot/receipt clamav/receipt clex/receipt conky/receipt ctorrent-dnh/receipt cups-pam/receipt cups/receipt cyrus-imapd/receipt cyrus-sasl/receipt
line diff
     1.1 --- a/acpid/receipt	Sat May 07 23:32:30 2011 +0200
     1.2 +++ b/acpid/receipt	Sat May 07 23:47:19 2011 +0200
     1.3 @@ -17,7 +17,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	# Build acpi_fakekey utility
     1.7 -	cp -a stuff/acpi_fakekey.c .
     1.8 +	cp -a $stuff/acpi_fakekey.c .
     1.9  	gcc -g -Wall -o acpi_fakekey acpi_fakekey.c
    1.10  	# Generate key constants file
    1.11  	INPUT_H="/usr/include/linux/input.h"
    1.12 @@ -47,8 +47,8 @@
    1.13  	cp -a $_pkg/usr/bin $fs/usr
    1.14  	# acpid conf files
    1.15  	mkdir -p $fs/etc
    1.16 -	cp -a stuff/init.d $fs/etc/
    1.17 -	cp -a stuff/acpi $fs/etc/
    1.18 +	cp -a $stuff/init.d $fs/etc/
    1.19 +	cp -a $stuff/acpi $fs/etc/
    1.20  	# acpi_fakekey
    1.21  	cp -a acpi_fakekey $fs/usr/bin
    1.22  	cp -a $KEY_FILE $fs/etc/acpi/
     2.1 --- a/ajaxterm/receipt	Sat May 07 23:32:30 2011 +0200
     2.2 +++ b/ajaxterm/receipt	Sat May 07 23:47:19 2011 +0200
     2.3 @@ -18,7 +18,7 @@
     2.4  {
     2.5  	mkdir -p $fs/usr/share/ajaxterm
     2.6  	cp -a $src/*.py $src/*.js $src/*.css $src/*.html $fs/usr/share/ajaxterm
     2.7 -	cp -a stuff/* $fs/
     2.8 +	cp -a $stuff/* $fs/
     2.9  }
    2.10  
    2.11  post_install()
     3.1 --- a/apache/receipt	Sat May 07 23:32:30 2011 +0200
     3.2 +++ b/apache/receipt	Sat May 07 23:47:19 2011 +0200
     3.3 @@ -20,7 +20,7 @@
     3.4  {
     3.5  	cd $src
     3.6  	grep -q Slitaz config.layout || \
     3.7 -		cat ../stuff/slitaz.layout >> config.layout
     3.8 +		cat ../$stuff/slitaz.layout >> config.layout
     3.9  	./configure --mandir=/usr/share/man --enable-mods-shared=all \
    3.10  		--enable-proxy --enable-ssl \
    3.11  		--enable-layout=Slitaz $CONFIGURE_ARGS &&
    3.12 @@ -41,7 +41,7 @@
    3.13  	rm -rf $fs/etc/apache/original
    3.14  	cp -a $_pkg/var $fs
    3.15  	
    3.16 -	cp -a stuff/apache $fs/etc/init.d
    3.17 +	cp -a $stuff/apache $fs/etc/init.d
    3.18  
    3.19  	sed -i  -e 's|User daemon|User www|' -e 's|Group daemon|Group www|' \
    3.20  		-e 's|ServerAdmin you@example.com|ServerAdmin root@localhost|' \
     4.1 --- a/asterisk/receipt	Sat May 07 23:32:30 2011 +0200
     4.2 +++ b/asterisk/receipt	Sat May 07 23:47:19 2011 +0200
     4.3 @@ -56,7 +56,7 @@
     4.4  	cp -a $_pkg/usr/bin $fs/usr
     4.5  	cp -a $_pkg/usr/lib $fs/usr
     4.6  	cp -a $_pkg/usr/sbin $fs/usr
     4.7 -	cp -a stuff/* $fs
     4.8 +	cp -a $stuff/* $fs
     4.9  }
    4.10  
    4.11  # Rules to configure package
     5.1 --- a/audacious/receipt	Sat May 07 23:32:30 2011 +0200
     5.2 +++ b/audacious/receipt	Sat May 07 23:47:19 2011 +0200
     5.3 @@ -37,6 +37,6 @@
     5.4  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib/
     5.5  	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
     5.6  	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
     5.7 -	tar -xzf stuff/Skins.tar.gz -C $fs/usr/share/$PACKAGE
     5.8 +	tar -xzf $stuff/Skins.tar.gz -C $fs/usr/share/$PACKAGE
     5.9  }
    5.10  
     6.1 --- a/awstats/receipt	Sat May 07 23:32:30 2011 +0200
     6.2 +++ b/awstats/receipt	Sat May 07 23:47:19 2011 +0200
     6.3 @@ -31,7 +31,7 @@
     6.4  	cp -a $src/wwwroot/cgi-bin/awstats.pl  $fs/var/www/cgi-bin
     6.5  	cp -a $src/wwwroot/cgi-bin/awstats.model.conf  $fs/etc/awstats
     6.6  	
     6.7 -	cp stuff/* $fs/usr/share/awstats/extras
     6.8 +	cp $stuff/* $fs/usr/share/awstats/extras
     6.9  
    6.10  	# Add a link using google map
    6.11  	sed -i 's|Full Whois Field"|Full Whois Field <a href=\\"http://en.utrace.de/?query=".$HostResolved."\\">?</a>"|' \
     7.1 --- a/backuppc/receipt	Sat May 07 23:32:30 2011 +0200
     7.2 +++ b/backuppc/receipt	Sat May 07 23:47:19 2011 +0200
     7.3 @@ -39,7 +39,7 @@
     7.4  genpkg_rules()
     7.5  {
     7.6  	cp -a $_pkg/* $fs
     7.7 -	cp -a stuff/* $fs
     7.8 +	cp -a $stuff/* $fs
     7.9  	sed -i -e "s/''http/'http/;s/min''/min'/" \
    7.10  	       -e 's/-E -N -d/-E -d/' \
    7.11  	       -e "s/^\\\$Conf{CgiAdminUsers}.*/\$Conf{CgiAdminUsers} = 'root';/" \
     8.1 --- a/bash/receipt	Sat May 07 23:32:30 2011 +0200
     8.2 +++ b/bash/receipt	Sat May 07 23:47:19 2011 +0200
     8.3 @@ -40,7 +40,7 @@
     8.4  	# Config files.
     8.5  	#
     8.6  	mkdir $fs/etc
     8.7 -	cp stuff/example.bashrc $fs/etc/bashrc
     8.8 +	cp $stuff/example.bashrc $fs/etc/bashrc
     8.9  }
    8.10  
    8.11  # Post install commands for Tazpkg.
     9.1 --- a/beaver/receipt	Sat May 07 23:32:30 2011 +0200
     9.2 +++ b/beaver/receipt	Sat May 07 23:47:19 2011 +0200
     9.3 @@ -32,5 +32,5 @@
     9.4  	cp -a $_pkg/usr/share/beaver/resource $fs/usr/share/beaver
     9.5  	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
     9.6  	# Custom default configuration
     9.7 -	cp -a stuff/beaver.conf.default $fs/usr/share/beaver/resource
     9.8 +	cp -a $stuff/beaver.conf.default $fs/usr/share/beaver/resource
     9.9  }
    10.1 --- a/beneath-a-steel-sky/receipt	Sat May 07 23:32:30 2011 +0200
    10.2 +++ b/beneath-a-steel-sky/receipt	Sat May 07 23:47:19 2011 +0200
    10.3 @@ -16,6 +16,6 @@
    10.4  {
    10.5  	mkdir -p $fs/usr/share/applications $fs/usr/games/bass
    10.6  	cp -a $src/sky* $fs/usr/games/bass
    10.7 -	cp -a stuff/*.desktop $fs/usr/share/applications
    10.8 +	cp -a $stuff/*.desktop $fs/usr/share/applications
    10.9  }
   10.10  
    11.1 --- a/bind/receipt	Sat May 07 23:32:30 2011 +0200
    11.2 +++ b/bind/receipt	Sat May 07 23:47:19 2011 +0200
    11.3 @@ -32,6 +32,6 @@
    11.4  	mkdir -p $fs/usr $fs/var/cache/bind
    11.5  	cp -a $_pkg/usr/sbin $fs/usr
    11.6  	cp -a $_pkg/etc $fs
    11.7 -	cp -a stuff/etc $fs
    11.8 +	cp -a $stuff/etc $fs
    11.9  }
   11.10  
    12.1 --- a/blender/receipt	Sat May 07 23:32:30 2011 +0200
    12.2 +++ b/blender/receipt	Sat May 07 23:47:19 2011 +0200
    12.3 @@ -66,6 +66,6 @@
    12.4  	mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
    12.5  	cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin
    12.6  	cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin
    12.7 -	cp stuff/blender $fs/usr/bin
    12.8 +	cp $stuff/blender $fs/usr/bin
    12.9  	cp -a $src/bin/.blender $fs/usr/share/blender
   12.10  }
    13.1 --- a/boxbackup-client/receipt	Sat May 07 23:32:30 2011 +0200
    13.2 +++ b/boxbackup-client/receipt	Sat May 07 23:47:19 2011 +0200
    13.3 @@ -23,7 +23,7 @@
    13.4  	cp -a $_pkg/boxbackup-${VERSION}-backup-client-linux-gnu/bb* $fs/usr/bin
    13.5  	rm -f $fs/usr/bin/*.*
    13.6  	mkdir -p $fs/etc/init.d
    13.7 -	cp -a stuff/bbackupd $fs/etc/init.d
    13.8 +	cp -a $stuff/bbackupd $fs/etc/init.d
    13.9  }
   13.10  
   13.11  # Pre and post install commands for Tazpkg
    14.1 --- a/boxbackup-server/receipt	Sat May 07 23:32:30 2011 +0200
    14.2 +++ b/boxbackup-server/receipt	Sat May 07 23:47:19 2011 +0200
    14.3 @@ -42,7 +42,7 @@
    14.4  	cp -a $_pkg/boxbackup-${VERSION}-backup-server-linux-gnu/bb* $fs/usr/bin
    14.5  	cp -a $_pkg/boxbackup-${VERSION}-backup-server-linux-gnu/ra* $fs/usr/bin
    14.6  	mkdir -p $fs/etc/init.d
    14.7 -	cp -a stuff/bbstored $fs/etc/init.d
    14.8 +	cp -a $stuff/bbstored $fs/etc/init.d
    14.9  }
   14.10  
   14.11  
    15.1 --- a/btmgr/receipt	Sat May 07 23:32:30 2011 +0200
    15.2 +++ b/btmgr/receipt	Sat May 07 23:47:19 2011 +0200
    15.3 @@ -14,13 +14,13 @@
    15.4  compile_rules()
    15.5  {
    15.6  	echo "I'm too lazy to hack and build it !"
    15.7 -# stuff/btmgr has been built this way:
    15.8 +# $stuff/btmgr has been built this way:
    15.9  # 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
   15.10  # 2- # chmod +x sbminst-static
   15.11  # 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
   15.12  # 4- # ./sbminst-static -t us -d /dev/fd0
   15.13 -# 5- # dd if=/dev/fd0 of=stuff/btmgr
   15.14 -# 6- remove tailing zeros stuff/btmgr
   15.15 +# 5- # dd if=/dev/fd0 of=$stuff/btmgr
   15.16 +# 6- remove tailing zeros $stuff/btmgr
   15.17  }
   15.18  
   15.19  
   15.20 @@ -28,7 +28,7 @@
   15.21  genpkg_rules()
   15.22  {
   15.23  	mkdir -p $fs/usr/share/boot
   15.24 -	cp stuff/btmgr $fs/usr/share/boot/
   15.25 +	cp $stuff/btmgr $fs/usr/share/boot/
   15.26  }
   15.27  
   15.28  # Pre and post install commands for Tazpkg.
    16.1 --- a/celestia/receipt	Sat May 07 23:32:30 2011 +0200
    16.2 +++ b/celestia/receipt	Sat May 07 23:47:19 2011 +0200
    16.3 @@ -15,7 +15,7 @@
    16.4  compile_rules()
    16.5  {
    16.6  	cd $src
    16.7 -	patch -p0 -i ../stuff/celestia-1.6.0-gcc45.patch
    16.8 +	patch -p0 -i ../$stuff/celestia-1.6.0-gcc45.patch
    16.9  	./configure \
   16.10  		--prefix=/usr \
   16.11  		--infodir=/usr/share/info \
   16.12 @@ -30,7 +30,7 @@
   16.13  {
   16.14  	mkdir -p $fs/usr/share/applications
   16.15  	cp -a $_pkg/usr/bin $fs/usr
   16.16 -	cp -a stuff/celestia.desktop $fs/usr/share/applications
   16.17 +	cp -a $stuff/celestia.desktop $fs/usr/share/applications
   16.18  	cp -a $_pkg/usr/share/celestia $fs/usr/share
   16.19  	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
   16.20  }
    17.1 --- a/cgoban/receipt	Sat May 07 23:32:30 2011 +0200
    17.2 +++ b/cgoban/receipt	Sat May 07 23:47:19 2011 +0200
    17.3 @@ -28,6 +28,6 @@
    17.4  {
    17.5  	mkdir -p $fs/usr/bin $fs/usr/share/applications
    17.6  	cp -a $_pkg/usr/bin/cgoban $fs/usr/bin
    17.7 -	cp stuff/cgoban.desktop $fs/usr/share/applications
    17.8 +	cp $stuff/cgoban.desktop $fs/usr/share/applications
    17.9  }
   17.10  
    18.1 --- a/chemtool/receipt	Sat May 07 23:32:30 2011 +0200
    18.2 +++ b/chemtool/receipt	Sat May 07 23:47:19 2011 +0200
    18.3 @@ -34,7 +34,7 @@
    18.4  	# French locale, pixmap and menu.
    18.5  	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    18.6  	cp -a $src/gnome/chemtool.png $fs/usr/share/pixmaps
    18.7 -	cp -a stuff/chemtool.desktop $fs/usr/share/applications
    18.8 +	cp -a $stuff/chemtool.desktop $fs/usr/share/applications
    18.9  	
   18.10  	# Examples.
   18.11  	cp -a $src/examples/a*.cht $fs/usr/share/examples/chemtool
    19.1 --- a/cherokee/receipt	Sat May 07 23:32:30 2011 +0200
    19.2 +++ b/cherokee/receipt	Sat May 07 23:47:19 2011 +0200
    19.3 @@ -39,6 +39,6 @@
    19.4  	cp -a $_pkg/usr/share/cherokee $fs/usr/share
    19.5  	cp -a $_pkg/var $fs
    19.6  	cp -a $_pkg/etc $fs
    19.7 -	cp -a stuff/cherokee $fs/etc/init.d
    19.8 +	cp -a $stuff/cherokee $fs/etc/init.d
    19.9  }
   19.10  
    20.1 --- a/chillispot/receipt	Sat May 07 23:32:30 2011 +0200
    20.2 +++ b/chillispot/receipt	Sat May 07 23:47:19 2011 +0200
    20.3 @@ -26,6 +26,6 @@
    20.4  	mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/chilli/
    20.5  	cp -a $_pkg/usr/sbin $fs/usr
    20.6  	cp $src/doc/chilli.conf $fs/etc
    20.7 -	cp stuff/chilli $fs/etc/init.d
    20.8 +	cp $stuff/chilli $fs/etc/init.d
    20.9  }
   20.10  
    21.1 --- a/clamav/receipt	Sat May 07 23:32:30 2011 +0200
    21.2 +++ b/clamav/receipt	Sat May 07 23:47:19 2011 +0200
    21.3 @@ -40,8 +40,8 @@
    21.4  	# Copy only shared lib (.so)
    21.5  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    21.6  	cp -a $_pkg/usr/share/clamav $fs/usr/share
    21.7 -	# Copy daemon from /stuff
    21.8 -	cp stuff/daemon-clamd $fs/etc/init.d/clamd
    21.9 +	# Copy daemon from /$stuff
   21.10 +	cp $stuff/daemon-clamd $fs/etc/init.d/clamd
   21.11  }
   21.12  
   21.13  post_install()
    22.1 --- a/clex/receipt	Sat May 07 23:32:30 2011 +0200
    22.2 +++ b/clex/receipt	Sat May 07 23:47:19 2011 +0200
    22.3 @@ -30,5 +30,5 @@
    22.4  {
    22.5      mkdir -p $fs/etc $fs/usr/bin
    22.6      cp -a $_pkg/usr/bin/* $fs/usr/bin
    22.7 -    cp -a stuff/skel $fs/etc
    22.8 +    cp -a $stuff/skel $fs/etc
    22.9  }
    23.1 --- a/conky/receipt	Sat May 07 23:32:30 2011 +0200
    23.2 +++ b/conky/receipt	Sat May 07 23:47:19 2011 +0200
    23.3 @@ -33,5 +33,5 @@
    23.4  {
    23.5  	mkdir -p $fs/usr $fs/etc/conky
    23.6  	cp -a $_pkg/usr/bin $fs/usr
    23.7 -	cp -a stuff/conky.conf $fs/etc/conky
    23.8 +	cp -a $stuff/conky.conf $fs/etc/conky
    23.9  }
    24.1 --- a/ctorrent-dnh/receipt	Sat May 07 23:32:30 2011 +0200
    24.2 +++ b/ctorrent-dnh/receipt	Sat May 07 23:47:19 2011 +0200
    24.3 @@ -28,5 +28,5 @@
    24.4  	mkdir -p $fs/usr
    24.5  	cp -a $_pkg/usr/bin $fs/usr
    24.6  	# Torrentbox
    24.7 -	cp stuff/torrentbox $fs/usr/bin
    24.8 +	cp $stuff/torrentbox $fs/usr/bin
    24.9  }
    25.1 --- a/cups-pam/receipt	Sat May 07 23:32:30 2011 +0200
    25.2 +++ b/cups-pam/receipt	Sat May 07 23:47:19 2011 +0200
    25.3 @@ -63,10 +63,10 @@
    25.4  	done
    25.5  	
    25.6  	# PAM conf
    25.7 -	cp -a stuff/* $fs
    25.8 +	cp -a $stuff/* $fs
    25.9  
   25.10  	# Daemon script
   25.11 -	cp -a ../cups/stuff/etc $fs
   25.12 +	cp -a ../cups/$stuff/etc $fs
   25.13  }
   25.14  
   25.15  # Start cups daemon and edit daemons.conf.
    26.1 --- a/cups/receipt	Sat May 07 23:32:30 2011 +0200
    26.2 +++ b/cups/receipt	Sat May 07 23:47:19 2011 +0200
    26.3 @@ -67,7 +67,7 @@
    26.4  	done
    26.5  
    26.6  	# Daemon script
    26.7 -	cp -a stuff/etc $fs
    26.8 +	cp -a $stuff/etc $fs
    26.9  }
   26.10  
   26.11  # Start cups daemon and edit daemons.conf.
    27.1 --- a/cyrus-imapd/receipt	Sat May 07 23:32:30 2011 +0200
    27.2 +++ b/cyrus-imapd/receipt	Sat May 07 23:47:19 2011 +0200
    27.3 @@ -34,7 +34,7 @@
    27.4  	cp -a $_pkg/usr/lib/perl5 $fs/usr/lib
    27.5  	strip -s $fs/usr/lib/cyrus/*
    27.6  	cp $src/tools/mkimap $fs/usr/lib/cyrus
    27.7 -	cp -a stuff/etc $fs
    27.8 +	cp -a $stuff/etc $fs
    27.9  	cp $src/master/conf/small.conf $fs/etc/cyrus.conf
   27.10  	for i in proc db socket log msg ptclient; do
   27.11  		mkdir -m 755 $fs/var/imap/$i
    28.1 --- a/cyrus-sasl/receipt	Sat May 07 23:32:30 2011 +0200
    28.2 +++ b/cyrus-sasl/receipt	Sat May 07 23:47:19 2011 +0200
    28.3 @@ -31,9 +31,9 @@
    28.4  	cp -a $_pkg/usr/sbin $fs/usr
    28.5  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    28.6  	cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2
    28.7 -	cp -a stuff/etc $fs
    28.8 +	cp -a $stuff/etc $fs
    28.9  	
   28.10 -	cat $WOK/$PACKAGE/stuff/*.files-list | while read file; do
   28.11 +	cat $WOK/$PACKAGE/$stuff/*.files-list | while read file; do
   28.12  		rm -rf $fs$file
   28.13  	done
   28.14  }