wok-next annotate dansguardian/receipt @ rev 12010

stella: added desc, removed extension from desktop file
author Samuel Trassare <samuel_trassare@yahoo.com>
date Mon Mar 05 16:40:06 2012 -0800 (2012-03-05)
parents
children 380ffe05937a
rev   line source
pascal@11220 1 # SliTaz package receipt.
pascal@11220 2
pascal@11220 3 PACKAGE="dansguardian"
pascal@11220 4 VERSION="2.10.1.1"
pascal@11220 5 CATEGORY="network"
pascal@11220 6 SHORT_DESC="Web content filter"
pascal@11220 7 MAINTAINER="erjo@slitaz.org"
pascal@11220 8 BUILD_DEPENDS="pcre-dev"
pascal@11220 9 DEPENDS="squid"
pascal@11220 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11220 11 WEB_SITE="http://dansguardian.org/"
pascal@11220 12 WGET_URL="http://dansguardian.org/downloads/2/Stable/$TARBALL"
pascal@11220 13 SUGGESTED="clamav"
pascal@11220 14
pascal@11220 15 # Rules to configure and make the package.
pascal@11220 16 compile_rules()
pascal@11220 17 {
pascal@11220 18 cd $src
pascal@11220 19 ./configure \
pascal@11220 20 --prefix=/usr \
pascal@11220 21 --localstatedir=/var \
pascal@11220 22 --sysconfdir=/etc \
pascal@11220 23 --enable-fancydm=no \
pascal@11220 24 --with-proxyuser=nobody \
pascal@11220 25 --with-proxygroup=nogroup \
pascal@11220 26 $CONFIGURE_ARGS &&
pascal@11220 27 make && make DESTDIR=$DESTDIR install
pascal@11220 28 }
pascal@11220 29
pascal@11220 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11220 31 genpkg_rules()
pascal@11220 32 {
pascal@11220 33 mkdir -p $fs/usr/sbin $fs/usr/share
pascal@11220 34 cp -a $_pkg/usr/sbin $fs/usr
pascal@11220 35 cp -a $_pkg/usr/share/${PACKAGE} $fs/usr/share
pascal@11220 36 cp -a $_pkg/var $fs/
pascal@11220 37 cp -a $_pkg/etc $fs/
pascal@11220 38 }
pascal@11220 39
pascal@11220 40 post_install()
pascal@11220 41 {
pascal@11220 42 local root
pascal@11220 43 root=$1
pascal@11220 44 chown nobody.nogroup $root/var/log/dansguardian
pascal@11220 45 }