source: trunk/dports/net/dansguardian/Portfile

Last change on this file was 105952, checked in by larryv@…, 4 years ago

dansguardian: Update to 2.12.0.3 (#38856).

Also:

  • Add license.
  • Switch to SourceForge for master_sites.
  • Remove variants and enable features by default.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 105952 2013-05-11 03:04:31Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            dansguardian
7version         2.12.0.3
8categories      net
9platforms       darwin
10license         GPL-2
11maintainers     nomaintainer
12description     web content filter
13long_description        DansGuardian is content-control software: software \
14                        designed to control which websites users can access.\
15                        It also includes virus filtering and usage monitoring features.
16
17homepage        http://dansguardian.org/ 
18master_sites    sourceforge:dansguardian
19
20checksums           md5     2a88d0392cd28eaec02b7ee727b2e253 \
21                    sha1    c5d8175910310f9a03efc2e6cb440ea418adb896 \
22                    rmd160  312db0ce2db9d1b2ed537807f9b2eca5d76a4123
23
24use_bzip2       yes
25
26depends_build   port:pkgconfig
27depends_lib     port:zlib \
28                port:pcre \
29                port:libiconv
30                               
31configure.args  --enable-pcre \
32                --enable-avastd \
33                --enable-kavd \
34                --enable-clamd \
35                --enable-ntlm
36
37startupitem.create      yes
38startupitem.name        dansguardian
39startupitem.executable  ${prefix}/sbin/dansguardian -N
40
41post-activate {
42        set runas_user nobody
43        set runas_group nobody
44
45        set log_path ${prefix}/var/log/dansguardian/
46        xinstall -d ${prefix}/var/log/
47        xinstall -d -o ${runas_user} -g ${runas_group} -m 755 ${log_path}
48        fs-traverse file ${log_path} {
49                if { [file isdirectory ${file}] } {
50                        file attributes ${file} -group ${runas_group} -owner ${runas_user} -permissions 00755
51                } else {
52                        file attributes ${file} -group ${runas_group} -owner ${runas_user} -permissions 00644
53                }
54        }
55
56}
57
58livecheck.regex ${name}-(\[\\d\\.\]+\\d)
Note: See TracBrowser for help on using the repository browser.