wok-current view cookutils/receipt @ rev 23136
updated linuxconsoletools (1.6.0 -> 1.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 14 17:12:22 2020 +0100 (2020-03-14) |
parents | 2a588e4793bc |
children | 0699e7a9c776 |
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 patch -p1 -i $stuff/pkgdb-absolute.patch
24 patch -p1 -i $stuff/pkgdb-no-parallel.patch
25 patch -p1 -i $stuff/cook-newest.patch
26 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso
27 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
28 make DESTDIR=$DESTDIR install
29 sed -i 's|://mirror.switch.ch/ftp/mirror|s://ftp.gnu.org|' $DESTDIR/etc/slitaz/cook.conf
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs
36 cp -a $install/* $fs
37 cp $stuff/check-wok $fs/usr/bin
38 chmod 755 $fs/usr/bin/check-wok
39 #Symlink cooker to busybox httpd server root
40 cd $fs/var/www
41 ln -s cgi-bin/cooker
42 # Daemon goes in cookutils-daemon
43 rm -rf $fs/etc/init.d
44 }
46 # Pre and post install commands for Tazpkg.
47 pre_install()
48 {
49 cp $1/etc/slitaz/cook.conf $1/etc/slitaz/cook.conf.old 2> /dev/null
50 }
52 post_install()
53 {
54 MD5="$(sed '/^SETUP_MD5/!d;s|.*="\(.*\)".*|\1|' \
55 $1/etc/slitaz/cook.conf.old)"
56 sed -i "s|^SETUP_MD5=\"\"|SETUP_MD5=\"$MD5\"|" $1/etc/slitaz/cook.conf
57 [ -z "$MD5" ] && case "$(cat "$1/etc/hostname" 2> /dev/null)" in
58 tank*)
59 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
60 tazpkg get-install aufs --root="$1/"
61 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
62 fi ;;
63 esac
64 }