Index: head/sysutils/sec/Makefile =================================================================== --- head/sysutils/sec/Makefile (revision 308116) +++ head/sysutils/sec/Makefile (revision 308117) @@ -1,45 +1,43 @@ -# ex:ts=8 -# New ports collection Makefile for: sec -# Date created: 25, February 2003 -# Whom: Nicolas Jombart -# +# Created by: Nicolas Jombart # $FreeBSD$ -# PORTNAME= sec -PORTVERSION= 2.5.1 +PORTVERSION= 2.6.2 CATEGORIES= sysutils MASTER_SITES= SF/simple-evcorr/${PORTNAME}/${PORTVERSION} -MAINTAINER= ecu@ipv42.net +MAINTAINER= ecu@200ok.org COMMENT= Simple event (logs) correlator USE_PERL5_RUN= YES NO_BUILD= YES USE_RC_SUBR= sec SUB_LIST= PERL=${PERL} MAN8= sec.8 -PORTDOCS= ChangeLog README +MANCOMPRESSED= no PLIST_FILES= bin/sec DATADIR= share/sec PORTCONTRIB= convert.pl itostream.c swatch2sec.pl PLIST_FILES+= ${PORTCONTRIB:S|^|%%DATADIR%%/|} PLIST_DIRS+= ${DATADIR} -post-patch: - @${REINPLACE_CMD} -e \ - 's|${PORTNAME}.pl|${PORTNAME}|g' ${WRKSRC}/${PORTNAME}.pl.man +.include +.if ${PORT_OPTIONS:MDOCS} +PORTDOCS= ChangeLog README +.endif do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/sec.pl ${PREFIX}/bin/${PORTNAME} - ${INSTALL_MAN} ${WRKSRC}/sec.pl.man ${PREFIX}/man/man8/sec.8 -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/sec.man ${PREFIX}/man/man8/sec.8 +.if empty(PORT_OPTIONS:MDOCS) + ${MKDIR} ${DOCSDIR} +.for file in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR} +.endfor .endif @${MKDIR} ${PREFIX}/${DATADIR} cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${PORTCONTRIB} ${PREFIX}/${DATADIR} .include Property changes on: head/sysutils/sec/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/sec/distinfo =================================================================== --- head/sysutils/sec/distinfo (revision 308116) +++ head/sysutils/sec/distinfo (revision 308117) @@ -1,2 +1,2 @@ -SHA256 (sec-2.5.1.tar.gz) = 8aa675dbf89733d1a45eb3cc08baac4be3a3f6c0158a6f78f2e8d05344c97bc1 -SIZE (sec-2.5.1.tar.gz) = 85406 +SHA256 (sec-2.6.2.tar.gz) = d2f4877a79a04042f39c30390be46c4334b9141945f606935a40f1a9455a9948 +SIZE (sec-2.6.2.tar.gz) = 100464 Property changes on: head/sysutils/sec/distinfo ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/sec/files/sec.in =================================================================== --- head/sysutils/sec/files/sec.in (revision 308116) +++ head/sysutils/sec/files/sec.in (revision 308117) @@ -1,78 +1,84 @@ #!/bin/sh # +# $FreeBSD$ +# +# PROVIDE: sec +# REQUIRE: LOGIN +# KEYWORD: shutdown +# # Sample SEC startup script for FreeBSD (contributed by Jo Rhett) # # Add the following lines to /etc/rc.conf to enable sec: # sec_enable (bool): Set to "NO" by default. # Set it to "YES" to enable sec. # # These parameters control the first (or only) instance of sec # sec_flags (str): Set to "" by default. # sec_configfile (str): Set to "%%PREFIX%%/etc/sec.conf" by default. # # To handle multiple instances you can also define # sec_instances="main auth" (list): define the instances (any string) which should be started/stopped # sec_instance_main_flags (str): define the invocation options for the first instance # sec_instance_main_configfile (str): define the config file for the first instance # sec_instance_auth_flags (str): define the invocation options for the second instance # sec_instance_auth_configfile (str): define the config file for the second instance # ...etc # . /etc/rc.subr name="sec" rcvar=sec_enable command="%%PREFIX%%/bin/sec" command_args="-detach" -command_interpreter="%%PERL%%" +command_interpreter="/usr/bin/perl" extra_commands="reload" pidfile="/var/run/sec.pid" start_precmd="sec_checkconfig" reload_precmd="sec_checkconfig" restart_precmd="sec_checkconfig" sig_reload=HUP load_rc_config "${name}" [ -z "${sec_enable}" ] && sec_enable="NO" [ -z "${sec_flags}" ] && sec_flags="-log=/var/log/sec.log" [ -z "${sec_configfile}" ] && sec_configfile="%%PREFIX%%/etc/sec.conf" sec_checkconfig() { if [ -z $instance ] then echo -n "Performing sanity check of sec configuration: " else echo -n "Performing sanity check of sec_${instance} configuration: " fi ${command} -debug=1 -testonly -conf=${sec_configfile} 2>&1 >/dev/null if [ $? != 0 ]; then echo "FAILED" ${command} -testonly -conf=${sec_configfile} return 1 else echo "OK" fi } required_files="${sec_configfile}" sec_flags="-conf=${sec_configfile} -pid=${pidfile} ${sec_flags}" run_rc_command "$1" # Are we handling multiple instances? if [ ! -z "${sec_instances}" ] then for instance in $sec_instances do # Iterate through all instances name="sec_${instance}" pidfile="/var/run/sec_${instance}.pid" eval required_files=\$sec_${instance}_configfile eval sec_${instance}_flags="\"-conf=\$sec_${instance}_configfile -pid=\$pidfile \$sec_${instance}_flags\"" run_rc_command "$1" done fi Property changes on: head/sysutils/sec/files/sec.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property