wok-6.x view dansguardian/receipt @ rev 24986

Up nettle 3.7.3 again, need glib-networking rebuild to no break midori
author Stanislas Leduc <shann@slitaz.org>
date Wed May 11 08:28:28 2022 -0400 (2022-05-11)
parents 874e0cca7eba
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dansguardian"
4 VERSION="2.12.0.3"
5 CATEGORY="network"
6 SHORT_DESC="Web content filter."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://dansguardian.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
14 SUGGESTED="clamav"
15 DEPENDS="squid"
16 BUILD_DEPENDS="pcre-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/dansguardian/files/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/dansguardian-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --localstatedir=/var \
31 --sysconfdir=/etc \
32 --enable-fancydm=no \
33 --with-proxyuser=nobody \
34 --with-proxygroup=nogroup \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/sbin
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/sbin $fs/usr
47 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
48 cp -a $install/var $fs
49 cp -a $install/etc $fs
50 }
52 post_install()
53 {
54 chown nobody.nogroup "$1/var/log/dansguardian"
55 }