wok-current view cookutils/receipt @ rev 20038
Add ipset, ipset-dev, iprange, firehol
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 24 19:59:19 2017 +0200 (2017-08-24) |
parents | 027ff114948a |
children | cf687dbfb029 |
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 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs
30 cp -a $install/* $fs
31 #Symlink cooker to busybox httpd server root
32 cd $fs/var/www
33 ln -s cgi-bin/cooker
34 # Daemon goes in cookutils-daemon
35 rm -rf $fs/etc/init.d
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 case "$(cat "$1/etc/hostname" 2> /dev/null)" in
42 tank*)
43 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
44 tazpkg get-install aufs --root="$1/"
45 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
46 fi ;;
47 esac
48 }