wok-6.x view cookutils/receipt @ rev 23922
Add alieninvasion, spaceinvader, racer10k and javascript-racer
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 22 17:01:17 2020 +0000 (2020-08-22) |
parents | 0699e7a9c776 |
children | c3aef97a3cef |
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="887"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages builder new generation."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
12 TAGS="slitaz"
13 HOST_ARCH="i486 arm"
14 CONFIG_FILES="/etc/slitaz/cook.site /etc/slitaz/cook.conf"
16 DEPENDS="sdft"
17 SPLIT="cookutils-daemon"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|\. receipt|. ./receipt|' cook
23 sed -i 's,grep -q ^aufs /proc/modules,grep "^nodev.aufs\$" /proc/filesystems,' cook
24 patch -p1 -i $stuff/pkgdb-absolute.patch
25 patch -p1 -i $stuff/pkgdb-no-parallel.patch
26 patch -p1 -i $stuff/cook-newest.patch
27 patch -p1 -i $stuff/wanted-version.patch
28 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso
29 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
30 make DESTDIR=$DESTDIR install
31 sed -i 's|://mirror.switch.ch/ftp/mirror|s://ftp.gnu.org|' $DESTDIR/etc/slitaz/cook.conf
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs
38 cp -a $install/* $fs
39 cp $stuff/check-wok $fs/usr/bin
40 chmod 755 $fs/usr/bin/check-wok
41 #Symlink cooker to busybox httpd server root
42 cd $fs/var/www
43 ln -s cgi-bin/cooker
44 # Daemon goes in cookutils-daemon
45 rm -rf $fs/etc/init.d
46 }
48 # Pre and post install commands for Tazpkg.
49 pre_install()
50 {
51 cp $1/etc/slitaz/cook.conf $1/etc/slitaz/cook.conf.old 2> /dev/null
52 }
54 post_install()
55 {
56 MD5="$(sed '/^SETUP_MD5/!d;s|.*="\(.*\)".*|\1|' \
57 $1/etc/slitaz/cook.conf.old)"
58 sed -i "s|^SETUP_MD5=\"\"|SETUP_MD5=\"$MD5\"|" $1/etc/slitaz/cook.conf
59 [ -z "$MD5" ] && case "$(cat "$1/etc/hostname" 2> /dev/null)" in
60 tank*)
61 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
62 tazpkg get-install aufs --root="$1/"
63 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
64 fi ;;
65 esac
66 }