- Update to 2.4.0

PR:		ports/105003
Submitted by:	maintainer (Nicolas Jombart)
This commit is contained in:
Cheng-Lung Sung 2006-11-02 06:39:56 +00:00
parent 8733917642
commit cb49f98107
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176166
3 changed files with 28 additions and 20 deletions

View file

@ -1,13 +1,13 @@
# New ports collection Makefile for: sec
# Date created: 25, February 2003
# Whom: Nicolas Jombart <ecu@ipv42.net>
# ex:ts=8
# New ports collection Makefile for: sec
# Date created: 25, February 2003
# Whom: Nicolas Jombart <ecu@ipv42.net>
#
# $FreeBSD$
#
PORTNAME= sec
PORTVERSION= 2.3.3
PORTREVISION= 1
PORTVERSION= 2.4.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= simple-evcorr
@ -22,8 +22,12 @@ USE_RC_SUBR= sec
SUB_LIST= PERL=${PERL}
MAN8= sec.8
PORTDOCS= ChangeLog README convert.pl itostream.c
PORTDOCS= ChangeLog README
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 \
@ -36,5 +40,7 @@ do-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${MKDIR} ${PREFIX}/${DATADIR}
cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${PORTCONTRIB} ${PREFIX}/${DATADIR}
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
MD5 (sec-2.3.3.tar.gz) = 1b714a7dbb71e165327886a329f6d1e0
SHA256 (sec-2.3.3.tar.gz) = 13d2ffa82905f55f82c6bf6c7ff356956e430a475b280989f5805d86df341d09
SIZE (sec-2.3.3.tar.gz) = 77785
MD5 (sec-2.4.0.tar.gz) = 3697bdab0664d5392c8e1e66edd3291c
SHA256 (sec-2.4.0.tar.gz) = f73462d5a003ae82e0e31c68d55898d1d3b039016ecd3707a48d5e07deef2a82
SIZE (sec-2.4.0.tar.gz) = 80011

View file

@ -1,10 +1,12 @@
#!/bin/sh
#
# 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.
# Sample SEC startup script for FreeBSD (contributed by Jo Rhett)
#
# These flags control the first (or only) instance of sec.
# 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.
#
@ -42,9 +44,9 @@ load_rc_config "${name}"
sec_checkconfig() {
if [ -z $instance ]
then
echo -n "Performing sanity check of sec configuration: "
echo -n "Performing sanity check of sec configuration: "
else
echo -n "Performing sanity check of sec_${instance} configuration: "
echo -n "Performing sanity check of sec_${instance} configuration: "
fi
${command} -debug=1 -testonly -conf=${sec_configfile} 2>&1 >/dev/null
if [ $? != 0 ]; then
@ -61,17 +63,17 @@ sec_flags="-conf=${sec_configfile} -pid=${pidfile} ${sec_flags}"
run_rc_command "$1"
# Are we handling multiple instance mode?
# Are we handling multiple instances?
if [ ! -z "${sec_instances}" ]
then
for instance in $sec_instances
do
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
run_rc_command "$1"
done
fi