wok-6.x view cookutils/receipt @ rev 20655

cookutils: do not assume . in search path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 13 11:25:30 2019 +0100 (2019-01-13)
parents 98ec0fc5e9e9
children 35f179a3bcbc
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 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs
31 cp -a $install/* $fs
32 #Symlink cooker to busybox httpd server root
33 cd $fs/var/www
34 ln -s cgi-bin/cooker
35 # Daemon goes in cookutils-daemon
36 rm -rf $fs/etc/init.d
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 case "$(cat "$1/etc/hostname" 2> /dev/null)" in
43 tank*)
44 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
45 tazpkg get-install aufs --root="$1/"
46 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
47 fi ;;
48 esac
49 }