- Update to 3.4.0.1
- Add reload support into e2guardian rc script Approved by: maintainer (via email)
This commit is contained in:
parent
846662a07d
commit
a1ecd47fad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409489
4 changed files with 24 additions and 9 deletions
|
@ -2,9 +2,9 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= e2guardian
|
||||
PORTVERSION= 3.0.4
|
||||
PORTVERSION= 3.4.0.1
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= marcellocoutinho@gmail.com
|
||||
|
@ -16,7 +16,7 @@ BUILD_DEPENDS= rst2man:${PORTSDIR}/textproc/py-docutils
|
|||
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
||||
|
||||
USE_GITHUB= yes
|
||||
USES= iconv pkgconfig
|
||||
USES= autoreconf libtool iconv pkgconfig
|
||||
USE_RC_SUBR= e2guardian
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --localstatedir=/var \
|
||||
|
@ -92,6 +92,9 @@ post-extract:
|
|||
@sleep 3
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@cd ${WRKSRC} && ${SH} ${WRKSRC}/autogen.sh
|
||||
|
||||
post-install:
|
||||
@${FIND} ${STAGEDIR}${ETCDIR} -type f \
|
||||
\( -name '*.conf' -or -name '*list' \) -exec ${MV} {} {}.sample \;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (e2guardian-e2guardian-v3.0.4_GH0.tar.gz) = 8817a0e95f38982520b87bb7cd7b34b7ab752f37bc2307065a82d59960b52530
|
||||
SIZE (e2guardian-e2guardian-v3.0.4_GH0.tar.gz) = 793490
|
||||
SHA256 (e2guardian-e2guardian-v3.4.0.1_GH0.tar.gz) = 0eaae1d9069ca1cf9436cb3318da321ab50107e8cc96f9f3d98417307dc608d1
|
||||
SIZE (e2guardian-e2guardian-v3.4.0.1_GH0.tar.gz) = 517052
|
||||
|
|
|
@ -27,8 +27,21 @@ load_rc_config $name
|
|||
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
pidfile=/var/run/${name}.pid
|
||||
stop_postcmd="e2guardian_stop_postcmd"
|
||||
reload_cmd="e2guardian_reload_cmd"
|
||||
extra_commands="reload"
|
||||
|
||||
command_args="-p $pidfile -f $e2guardian_config $e2guardian_flags"
|
||||
|
||||
run_rc_command "$1"
|
||||
e2guardian_reload_cmd() {
|
||||
if [ -f "${pidfile}" ]; then
|
||||
${command} -g ${command_args}
|
||||
echo "Reloading ${name}."
|
||||
fi
|
||||
}
|
||||
|
||||
e2guardian_stop_postcmd() {
|
||||
rm ${pidfile}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
@sample %%ETCDIR%%/downloadmanagers/fancy.conf.sample
|
||||
@sample %%ETCDIR%%/e2guardian.conf.sample
|
||||
@sample %%ETCDIR%%/e2guardianf1.conf.sample
|
||||
%%ETCDIR%%/installation_or_migration_from_dg.sh
|
||||
@sample %%ETCDIR%%/lists/addheaderregexplist.sample
|
||||
%%DNS%%@sample %%ETCDIR%%/lists/authexceptionsitelist.sample
|
||||
%%DNS%%@sample %%ETCDIR%%/lists/authexceptionurllist.sample
|
||||
|
@ -31,8 +30,6 @@
|
|||
@sample %%ETCDIR%%/lists/bannedsitelist.sample
|
||||
@sample %%ETCDIR%%/lists/bannedsslsitelist.sample
|
||||
@sample %%ETCDIR%%/lists/bannedurllist.sample
|
||||
%%ETCDIR%%/lists/blacklists/ads/domains
|
||||
%%ETCDIR%%/lists/blacklists/ads/urls
|
||||
@sample %%ETCDIR%%/lists/contentregexplist.sample
|
||||
%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirusextensionlist.sample
|
||||
%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirusmimetypelist.sample
|
||||
|
@ -68,6 +65,7 @@
|
|||
@sample %%ETCDIR%%/lists/logregexpurllist.sample
|
||||
@sample %%ETCDIR%%/lists/logsitelist.sample
|
||||
@sample %%ETCDIR%%/lists/logurllist.sample
|
||||
@sample %%ETCDIR%%/lists/nocheckcertsitelist.sample
|
||||
%%ETCDIR%%/lists/phraselists/badwords/weighted_dutch
|
||||
%%ETCDIR%%/lists/phraselists/badwords/weighted_french
|
||||
%%ETCDIR%%/lists/phraselists/badwords/weighted_german
|
||||
|
@ -243,6 +241,7 @@ sbin/e2guardian
|
|||
%%DATADIR%%/languages/ukenglish/template.html
|
||||
%%DATADIR%%/scripts/bsd-init
|
||||
%%DATADIR%%/scripts/e2guardian
|
||||
%%DATADIR%%/scripts/e2guardian.service
|
||||
%%DATADIR%%/scripts/logrotation
|
||||
%%DATADIR%%/scripts/solaris-init
|
||||
%%DATADIR%%/scripts/systemv-init
|
||||
|
|
Loading…
Reference in a new issue