diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-19 06:28:09 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-19 06:28:09 +0000 |
commit | 454103013f7a74a4a73bea6706418ce4ab9053be (patch) | |
tree | fed8573353c5610aa43b7fcfa43b9e9c46195398 /sysutils | |
parent | df7031f8891fede27bbb0616f873a49c242c4f29 (diff) | |
download | ports-454103013f7a74a4a73bea6706418ce4ab9053be.tar.gz ports-454103013f7a74a4a73bea6706418ce4ab9053be.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/syslog-ng-devel/Makefile | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng-devel/files/syslog-ng.sh.in | 12 | ||||
-rw-r--r-- | sysutils/syslog-ng2/Makefile | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng2/files/syslog-ng.sh.in | 12 | ||||
-rw-r--r-- | sysutils/syslog-ng3-devel/Makefile | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng3-devel/files/syslog-ng.sh.in | 14 | ||||
-rw-r--r-- | sysutils/syslog-ng3/Makefile | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng3/files/syslog-ng.sh.in | 14 |
8 files changed, 50 insertions, 6 deletions
diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile index 38a1f52415ca..16c1a1c845a0 100644 --- a/sysutils/syslog-ng-devel/Makefile +++ b/sysutils/syslog-ng-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/syslog-ng/2.0/src/ diff --git a/sysutils/syslog-ng-devel/files/syslog-ng.sh.in b/sysutils/syslog-ng-devel/files/syslog-ng.sh.in index 341143b8a2f3..38d41485a74c 100644 --- a/sysutils/syslog-ng-devel/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng-devel/files/syslog-ng.sh.in @@ -12,8 +12,12 @@ # to enable this service: # #syslog_ng_enable="YES" +#syslog_ng_config="-u daemon" +#syslog_ng_pid="/var/run/syslog-ng.pid" # +syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} + . %%RC_SUBR%% name=syslog_ng @@ -21,13 +25,19 @@ rcvar=`set_rcvar` command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf -pidfile=/var/run/syslog.pid extra_commands=reload + +if checkyesno syslog_ng_purgeklog; then + start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1 $start_precmd"; +fi + stop_postcmd=stop_postcmd load_rc_config $name : ${syslog_ng_enable:="NO"} +pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"} +command_args="-p ${pidfile} ${syslog_ng_config}" stop_postcmd() { rm -f $pidfile diff --git a/sysutils/syslog-ng2/Makefile b/sysutils/syslog-ng2/Makefile index 38a1f52415ca..16c1a1c845a0 100644 --- a/sysutils/syslog-ng2/Makefile +++ b/sysutils/syslog-ng2/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/syslog-ng/2.0/src/ diff --git a/sysutils/syslog-ng2/files/syslog-ng.sh.in b/sysutils/syslog-ng2/files/syslog-ng.sh.in index 341143b8a2f3..38d41485a74c 100644 --- a/sysutils/syslog-ng2/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng2/files/syslog-ng.sh.in @@ -12,8 +12,12 @@ # to enable this service: # #syslog_ng_enable="YES" +#syslog_ng_config="-u daemon" +#syslog_ng_pid="/var/run/syslog-ng.pid" # +syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} + . %%RC_SUBR%% name=syslog_ng @@ -21,13 +25,19 @@ rcvar=`set_rcvar` command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf -pidfile=/var/run/syslog.pid extra_commands=reload + +if checkyesno syslog_ng_purgeklog; then + start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1 $start_precmd"; +fi + stop_postcmd=stop_postcmd load_rc_config $name : ${syslog_ng_enable:="NO"} +pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"} +command_args="-p ${pidfile} ${syslog_ng_config}" stop_postcmd() { rm -f $pidfile diff --git a/sysutils/syslog-ng3-devel/Makefile b/sysutils/syslog-ng3-devel/Makefile index 38a1f52415ca..16c1a1c845a0 100644 --- a/sysutils/syslog-ng3-devel/Makefile +++ b/sysutils/syslog-ng3-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/syslog-ng/2.0/src/ diff --git a/sysutils/syslog-ng3-devel/files/syslog-ng.sh.in b/sysutils/syslog-ng3-devel/files/syslog-ng.sh.in index 478e2c4dacd4..05bf5fcf1aee 100644 --- a/sysutils/syslog-ng3-devel/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng3-devel/files/syslog-ng.sh.in @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/sysutils/syslog-ng3-devel/files/Attic/syslog-ng.sh.in,v 1.1 2006-11-14 12:46:33 miwi Exp $ +# $FreeBSD: /tmp/pcvs/ports/sysutils/syslog-ng3-devel/files/Attic/syslog-ng.sh.in,v 1.2 2007-03-19 06:28:09 rafan Exp $ # # PROVIDE: syslogd @@ -12,8 +12,12 @@ # to enable this service: # #syslog_ng_enable="YES" +#syslog_ng_config="-u daemon" +#syslog_ng_pid="/var/run/syslog-ng.pid" # +syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} + . %%RC_SUBR%% name=syslog_ng @@ -21,13 +25,19 @@ rcvar=`set_rcvar` command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf -pidfile=/var/run/syslog.pid extra_commands=reload + +if checkyesno syslog_ng_purgeklog; then + start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1 $start_precmd"; +fi + stop_postcmd=stop_postcmd load_rc_config $name : ${syslog_ng_enable:="NO"} +pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"} +command_args="-p ${pidfile} ${syslog_ng_config}" stop_postcmd() { rm -f $pidfile diff --git a/sysutils/syslog-ng3/Makefile b/sysutils/syslog-ng3/Makefile index 38a1f52415ca..16c1a1c845a0 100644 --- a/sysutils/syslog-ng3/Makefile +++ b/sysutils/syslog-ng3/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/syslog-ng/2.0/src/ diff --git a/sysutils/syslog-ng3/files/syslog-ng.sh.in b/sysutils/syslog-ng3/files/syslog-ng.sh.in index 73b77d6784a4..a6bedfbbfda3 100644 --- a/sysutils/syslog-ng3/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng3/files/syslog-ng.sh.in @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/sysutils/syslog-ng3/files/Attic/syslog-ng.sh.in,v 1.1 2006-11-14 12:46:33 miwi Exp $ +# $FreeBSD: /tmp/pcvs/ports/sysutils/syslog-ng3/files/Attic/syslog-ng.sh.in,v 1.2 2007-03-19 06:28:09 rafan Exp $ # # PROVIDE: syslogd @@ -12,8 +12,12 @@ # to enable this service: # #syslog_ng_enable="YES" +#syslog_ng_config="-u daemon" +#syslog_ng_pid="/var/run/syslog-ng.pid" # +syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} + . %%RC_SUBR%% name=syslog_ng @@ -21,13 +25,19 @@ rcvar=`set_rcvar` command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf -pidfile=/var/run/syslog.pid extra_commands=reload + +if checkyesno syslog_ng_purgeklog; then + start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1 $start_precmd"; +fi + stop_postcmd=stop_postcmd load_rc_config $name : ${syslog_ng_enable:="NO"} +pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"} +command_args="-p ${pidfile} ${syslog_ng_config}" stop_postcmd() { rm -f $pidfile |