wok view dansguardian/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents e5b73f3c73d4
children 9e01bc6321ea
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 local root
45 root=$1
46 chown nobody.nogroup $root/var/log/dansguardian
47 }