wok-next diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dansguardian/receipt Mon Mar 05 16:40:06 2012 -0800 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dansguardian" 1.7 +VERSION="2.10.1.1" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Web content filter" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +BUILD_DEPENDS="pcre-dev" 1.12 +DEPENDS="squid" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://dansguardian.org/" 1.15 +WGET_URL="http://dansguardian.org/downloads/2/Stable/$TARBALL" 1.16 +SUGGESTED="clamav" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure \ 1.23 + --prefix=/usr \ 1.24 + --localstatedir=/var \ 1.25 + --sysconfdir=/etc \ 1.26 + --enable-fancydm=no \ 1.27 + --with-proxyuser=nobody \ 1.28 + --with-proxygroup=nogroup \ 1.29 + $CONFIGURE_ARGS && 1.30 + make && make DESTDIR=$DESTDIR install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/sbin $fs/usr/share 1.37 + cp -a $_pkg/usr/sbin $fs/usr 1.38 + cp -a $_pkg/usr/share/${PACKAGE} $fs/usr/share 1.39 + cp -a $_pkg/var $fs/ 1.40 + cp -a $_pkg/etc $fs/ 1.41 +} 1.42 + 1.43 +post_install() 1.44 +{ 1.45 + local root 1.46 + root=$1 1.47 + chown nobody.nogroup $root/var/log/dansguardian 1.48 +}