Ticket #38856: Portfile-dansguardian.3.diff
File Portfile-dansguardian.3.diff, 3.2 KB (added by mroman@…, 12 years ago) |
---|
-
(a) Portfile.orig vs. (b) /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/dansguardian/Portfile
a b 4 4 PortSystem 1.0 5 5 6 6 name dansguardian 7 version 2.10.1.1 8 revision 1 7 version 2.12.0.3 9 8 categories net 10 9 platforms darwin 10 license GPL-2 11 11 maintainers nomaintainer 12 12 description web content filter 13 13 long_description DansGuardian is content-control software: software \ … … 15 15 It also includes virus filtering and usage monitoring features. 16 16 17 17 homepage http://dansguardian.org/ 18 master_sites http://dansguardian.org/downloads/2/Stable/ \19 http://usmirror.dansguardian.org/downloads/2/Stable/ \ 20 http://mirrors.evis.net.ph/dansguardian/downloads/2/Stable/ 21 22 checksums md5 0987a1c9bfbdf398118386f10279611a \ 23 sha1 ff3012e01130b2269582c21c3eeb4ea013dc9679 \ 24 rmd160 dc15ca9779a5084c5e4248545c730f25fff241a3 18 master_sites sourceforge 19 20 checksums md5 2a88d0392cd28eaec02b7ee727b2e253 \ 21 sha1 c5d8175910310f9a03efc2e6cb440ea418adb896 \ 22 rmd160 312db0ce2db9d1b2ed537807f9b2eca5d76a4123 23 24 use_bzip2 yes 25 25 26 26 depends_build port:pkgconfig 27 27 depends_lib port:zlib \ … … 29 29 30 30 configure.args --enable-pcre \ 31 31 --disable-ntlm \ 32 --disable-clam av33 34 use_parallel_build yes 32 --disable-clamd \ 33 --enable-avastd \ 34 --enable-kavd 35 35 36 36 startupitem.create yes 37 37 startupitem.name dansguardian 38 38 startupitem.executable ${prefix}/sbin/dansguardian -N 39 39 40 variant clamav description {Enable support for libclamav av scanner} {40 variant clamav description {Enable support for clamav av scanner} { 41 41 depends_lib-append port:clamav 42 42 43 # enable --enable-clamav in the next version if it works with >=clamav-0.9544 #configure.args-delete --disable-clamav45 #configure.args-append --enable-clamav46 47 43 configure.args-append --enable-clamd \ 48 44 --with-proxyuser=clamav \ 49 45 --with-proxygroup=clamav … … 56 52 configure.args-append --enable-ntlm 57 53 } 58 54 59 post- destroot{55 post-activate { 60 56 set runas_user nobody 61 57 set runas_group nobody 62 58 … … 69 65 ui_msg "\n DansGuardian and clamd must run with either the same group or user ID. \n\ 70 66 Don't forget to set clamd socket in etc/dansguardian/contentscanners/clamdscan.conf.\n" 71 67 } 72 73 # by default dansguardian runs as nobody and writes log to /var/log/dansguardian/access.log 74 # !!! when user rebuilds dansguardian with clamav variant var/log/dansguardian/access.log has old owner and access is denied 75 # the solution is to rm -rf ${prefix}/var/log/dansguardian and port activate dansguardian 76 xinstall -d -o ${runas_user} -g ${runas_group} -m 755 ${destroot}${prefix}/var/log/dansguardian 77 destroot.keepdirs-append ${destroot}${prefix}/var/log/dansguardian 68 69 set log_path ${prefix}/var/log/dansguardian 70 exec mkdir -p ${log_path} 71 exec chown -R ${runas_user}:${runas_group} ${log_path} 72 exec chmod -R 755 ${log_path} 78 73 } 79 80 livecheck.type regex81 livecheck.url "http://dansguardian.org/?page=news"82 livecheck.regex "DansGuardian (.*) is.*released!"83