wok annotate dansguardian/receipt @ rev 25229

updated python-pyst2 (0.5.0 -> 0.5.1)
author Hans-G?nter Theisgen
date Wed Jul 13 16:59:13 2022 +0100 (2022-07-13)
parents 874e0cca7eba
children
rev   line source
pascal@11220 1 # SliTaz package receipt.
pascal@11220 2
pascal@11220 3 PACKAGE="dansguardian"
Hans-G?nter@22627 4 VERSION="2.12.0.3"
pascal@11220 5 CATEGORY="network"
Hans-G?nter@22627 6 SHORT_DESC="Web content filter."
pascal@11220 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@11220 9 WEB_SITE="http://dansguardian.org/"
Hans-G?nter@22627 10
Hans-G?nter@22627 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22627 12 WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
Hans-G?nter@22627 13
pascal@11220 14 SUGGESTED="clamav"
Hans-G?nter@22627 15 DEPENDS="squid"
pascal@15000 16 BUILD_DEPENDS="pcre-dev"
pascal@15000 17
pascal@24385 18 # What is the latest version available today?
pascal@24385 19 current_version()
pascal@24385 20 {
pascal@24385 21 wget -O - https://sourceforge.net/projects/dansguardian/files/ 2>/dev/null | \
pascal@24385 22 sed '/scope="row/!d;s|.*/dansguardian-||;s|.tar.*||;q'
pascal@24385 23 }
pascal@24385 24
pascal@11220 25 # Rules to configure and make the package.
pascal@11220 26 compile_rules()
pascal@11220 27 {
Hans-G?nter@22627 28 ./configure \
Hans-G?nter@22627 29 --prefix=/usr \
Hans-G?nter@22627 30 --localstatedir=/var \
Hans-G?nter@22627 31 --sysconfdir=/etc \
Hans-G?nter@22627 32 --enable-fancydm=no \
Hans-G?nter@22627 33 --with-proxyuser=nobody \
Hans-G?nter@22627 34 --with-proxygroup=nogroup \
pascal@11220 35 $CONFIGURE_ARGS &&
Hans-G?nter@22627 36 make &&
Hans-G?nter@22627 37 make DESTDIR=$DESTDIR install
pascal@11220 38 }
pascal@11220 39
pascal@11220 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11220 41 genpkg_rules()
pascal@11220 42 {
Hans-G?nter@22627 43 mkdir -p $fs/usr/sbin
Hans-G?nter@22627 44 mkdir -p $fs/usr/share
Hans-G?nter@22627 45
Hans-G?nter@22627 46 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22627 47 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
Hans-G?nter@22627 48 cp -a $install/var $fs
Hans-G?nter@22627 49 cp -a $install/etc $fs
pascal@11220 50 }
pascal@11220 51
pascal@11220 52 post_install()
pascal@11220 53 {
pascal@18730 54 chown nobody.nogroup "$1/var/log/dansguardian"
pascal@11220 55 }