wok annotate cookutils/receipt @ rev 18600
Up cookutils(775)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 16 01:25:36 2015 +0200 (2015-11-16) |
parents | d0c489c336c7 |
children | f3745a1b2305 |
rev | line source |
---|---|
pankso@9812 | 1 # SliTaz package receipt. |
pankso@9812 | 2 |
pankso@9812 | 3 PACKAGE="cookutils" |
al@18600 | 4 VERSION="775" |
pankso@9812 | 5 CATEGORY="base-system" |
pankso@9812 | 6 SHORT_DESC="SliTaz packages builder new generation." |
pankso@9812 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="GPL3" |
pankso@9812 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@9812 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@13892 | 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@9812 | 12 TAGS="slitaz" |
pankso@12778 | 13 HOST_ARCH="i486 arm" |
pankso@9812 | 14 |
al@18550 | 15 DEPENDS="sdft" |
pascal@14173 | 16 |
pankso@9812 | 17 # Rules to configure and make the package. |
pankso@9812 | 18 compile_rules() |
pankso@9812 | 19 { |
pankso@9812 | 20 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz |
pankso@9812 | 21 make DESTDIR=$DESTDIR install |
pankso@9812 | 22 } |
pankso@9812 | 23 |
pankso@9812 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9812 | 25 genpkg_rules() |
pankso@9812 | 26 { |
pankso@9812 | 27 mkdir -p $fs |
pankso@9812 | 28 cp -a $install/* $fs |
mojo@13856 | 29 #Symlink cooker to busybox httpd server root |
mojo@13856 | 30 cd $fs/var/www |
mojo@13856 | 31 ln -s cgi-bin/cooker |
pankso@9826 | 32 # Daemon goes in cookutils-deamon |
pankso@9826 | 33 rm -rf $fs/etc/init.d |
pankso@9812 | 34 } |
pascal@12966 | 35 |
pascal@12966 | 36 # Pre and post install commands for Tazpkg. |
pascal@12966 | 37 post_install() |
pascal@12966 | 38 { |
pascal@17689 | 39 case "$(cat $1/etc/hostname 2> /dev/null)" in |
pascal@12966 | 40 tank*) |
pascal@12966 | 41 if ! chroot $1/ tazpkg list | grep -q aufs ; then |
pascal@12966 | 42 tazpkg get-install aufs --root=$1/ |
pascal@12966 | 43 sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf |
pascal@12966 | 44 fi ;; |
pascal@12966 | 45 esac |
pascal@12966 | 46 } |