wok-next view cookutils/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents ded7bc956f55
children a531be466833
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="901"
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 TAGS="slitaz"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
16 DEPENDS="sdft lzma bzip2 tazpkg cacerts openssl"
17 SPLIT="cookutils-daemon"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 make DESTDIR=$install install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs
29 cp -a $install/* $fs
31 #Symlink cooker to busybox httpd server root
32 cd $fs/var/www
33 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 ;;
49 esac
50 }