1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- patch swatch.rc to check for buffer overflow in cmdarg with long _flags lines

- add p5-File-Tail dependency
- Bump PORTREVISION

PR:		ports/164529
Submitted by:	scheidell
Approved by:	joseph@randomnetworks.com (maintainer timeout, 15 days), gabor (mentor)
This commit is contained in:
Michael Scheidell 2012-02-10 14:37:30 +00:00
parent f46d4c4e4b
commit 1793f6d69a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290860
2 changed files with 13 additions and 5 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= swatch
PORTVERSION= 3.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security sysutils
MASTER_SITES= SF
@ -17,7 +17,8 @@ COMMENT= The Simple WATCHer and filter
BUILD_DEPENDS= \
${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
${SITE_PERL}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc
${SITE_PERL}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc \
${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail
RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes

View File

@ -4,6 +4,7 @@
#
# PROVIDE: swatch
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# To enable multiple instance of swatch, add lines like below to
# /etc/rc.conf.
@ -22,14 +23,20 @@
name=swatch
rcvar=swatch_enable
command=%%PREFIX%%/bin/swatch
procname=%%LOCALBASE%%/bin/perl
load_rc_config ${name}
# set some defaults
: ${swatch_enable:="NO"}
command=%%PREFIX%%/bin/swatch
if [ -n "${swatch_rules}" ]; then
for i in ${swatch_rules}; do
eval swatch_flags=\$swatch_${i}_flags
len=`echo "0${command} ${swatch_flags} (perl)0" | wc -c`
if [ $len -ge 255 ];then
procname=%%LOCALBASE%%/bin/perl
fi
eval swatch_user=\$swatch_${i}_user
eval swatch_chdir=\$swatch_${i}_chdir
eval pidfile=\$swatch_${i}_pidfile