wok-current view cookutils/receipt @ rev 24722
updated libcaca and libcaca-dev (0.99.beta19 -> 0.99.beta20)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 10:03:33 2022 +0100 (2022-03-15) |
parents | 7e911016a644 |
children | 715a7620dc23 |
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 current_version()
20 {
21 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
22 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
23 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|\. receipt|. ./receipt|' cook
30 sed -i 's,grep -q ^aufs /proc/modules,grep "^nodev.aufs\$" /proc/filesystems,' cook
31 patch -p1 -i $stuff/pkgdb-absolute.patch
32 patch -p1 -i $stuff/pkgdb-no-parallel.patch
33 patch -p1 -i $stuff/cook-newest.patch
34 patch -p1 -i $stuff/wanted-version.patch
35 patch -p1 -i $stuff/avoid-gawk-warning.patch
36 patch -p1 -i $stuff/avoid-hard-link-exist-error.patch
37 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso
38 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
39 make DESTDIR=$DESTDIR install
40 sed -i 's|://mirror.switch.ch/ftp/mirror|s://ftp.gnu.org|' $DESTDIR/etc/slitaz/cook.conf
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs
47 cp $stuff/cookutils-doc.desktop $install/usr/share/applications
48 cp -a $install/* $fs
49 cp $stuff/check-wok $fs/usr/bin
50 chmod 755 $fs/usr/bin/check-wok
51 #Symlink cooker to busybox httpd server root
52 cd $fs/var/www
53 ln -s cgi-bin/cooker
54 # Daemon goes in cookutils-daemon
55 rm -rf $fs/etc/init.d
56 }
58 # Pre and post install commands for Tazpkg.
59 pre_install()
60 {
61 cp $1/etc/slitaz/cook.conf $1/etc/slitaz/cook.conf.old 2> /dev/null
62 }
64 post_install()
65 {
66 MD5="$(sed '/^SETUP_MD5/!d;s|.*="\(.*\)".*|\1|' \
67 $1/etc/slitaz/cook.conf.old 2> /dev/null)"
68 sed -i "s|^SETUP_MD5=\"\"|SETUP_MD5=\"$MD5\"|" $1/etc/slitaz/cook.conf
69 [ -z "$MD5" ] && case "$(cat "$1/etc/hostname" 2> /dev/null)" in
70 tank*)
71 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
72 tazpkg get-install aufs --root="$1/"
73 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
74 fi ;;
75 esac
76 }