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

dukto: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 28 14:03:53 2012 +0200 (2012-08-28)
parents 7449759b1941
children 22d2275b30ec
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="2.0"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages builder new generation."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://mirror.slitaz.org/sources/$PACKAGE/$TARBALL"
11 TAGS="slitaz"
12 HOST_ARCH="i486 arm"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
19 make DESTDIR=$DESTDIR install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs
26 cp -a $install/* $fs
27 # Daemon goes in cookutils-deamon
28 rm -rf $fs/etc/init.d
29 }
31 # Pre and post install commands for Tazpkg.
32 post_install()
33 {
34 case "$(cat $1/etc/hostname)" in
35 tank*)
36 if ! chroot $1/ tazpkg list | grep -q aufs ; then
37 tazpkg get-install aufs --root=$1/
38 sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf
39 fi ;;
40 esac
41 }