wok view dansguardian/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 380ffe05937a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dansguardian"
4 VERSION="2.10.1.1"
5 CATEGORY="network"
6 SHORT_DESC="Web content filter"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dansguardian.org/"
11 WGET_URL="http://dansguardian.org/downloads/2/Stable/$TARBALL"
12 SUGGESTED="clamav"
14 BUILD_DEPENDS="pcre-dev"
15 DEPENDS="squid"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --localstatedir=/var \
24 --sysconfdir=/etc \
25 --enable-fancydm=no \
26 --with-proxyuser=nobody \
27 --with-proxygroup=nogroup \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/sbin $fs/usr/share
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
38 cp -a $install/var $fs/
39 cp -a $install/etc $fs/
40 }
42 post_install()
43 {
44 chown nobody.nogroup "$1/var/log/dansguardian"
45 }