ports/105305: [PATCH] security/denyhosts: Fit FreeBSD's environment
Gea-Suan Lin
gslin at gslin.org
Wed Nov 8 22:50:19 UTC 2006
>Number: 105305
>Category: ports
>Synopsis: [PATCH] security/denyhosts: Fit FreeBSD's environment
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 08 22:50:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Gea-Suan Lin
>Release: FreeBSD 6.1-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE-p8 FreeBSD 6.1-RELEASE-p8 #0: Fri Sep 29 03:41:50 CST 2006
>Description:
- Move patch from pre-configure to post-patch.
- Use denyhost.conf (FreeBSD's default config file) instead of denyhost.cfg.
- Bump PORTREVISION.
Port maintainer (janos.mohacsi at bsd.hu) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- denyhosts-2.5_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/denyhosts/Makefile /home/staff/gslin/work/ports/denyhosts/Makefile
--- /usr/ports/security/denyhosts/Makefile Sat Jul 1 01:13:22 2006
+++ /home/staff/gslin/work/ports/denyhosts/Makefile Sun Nov 5 15:57:19 2006
@@ -7,6 +7,7 @@
PORTNAME= denyhosts
PORTVERSION= 2.5
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -22,7 +23,7 @@
PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt
-pre-configure:
+post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/daemon-control-dist \
${WRKSRC}/denyhosts.cfg-dist \
@@ -30,8 +31,8 @@
post-install:
${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc
- [ -f ${PREFIX}/etc/denyhosts.cfg ] || \
- ${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc/denyhosts.cfg
+ [ -f ${PREFIX}/etc/denyhosts.conf ] || \
+ ${INSTALL_DATA} ${WRKSRC}/denyhosts.conf-dist ${PREFIX}/etc/denyhosts.conf
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
diff -ruN --exclude=CVS /usr/ports/security/denyhosts/pkg-plist /home/staff/gslin/work/ports/denyhosts/pkg-plist
--- /usr/ports/security/denyhosts/pkg-plist Sat Jul 1 01:13:22 2006
+++ /home/staff/gslin/work/ports/denyhosts/pkg-plist Sun Nov 5 15:57:28 2006
@@ -1,9 +1,9 @@
bin/denyhosts.py
- at unexec if cmp -s %D/etc/denyhosts.cfg %D/etc/denyhosts.cfg-dist; then rm -f %D/etc/denyhosts.cfg; fi
-etc/denyhosts.cfg-dist
- at exec [ -f %B/denyhosts.cfg ] || cp -f %B/%f %B/denyhosts.cfg
+ at unexec if cmp -s %D/etc/denyhosts.conf %D/etc/denyhosts.conf-dist; then rm -f %D/etc/denyhosts.conf; fi
+etc/denyhosts.conf-dist
+ at exec [ -f %B/denyhosts.conf ] || cp -f %B/%f %B/denyhosts.conf
%%DATADIR%%/daemon-control-dist
-%%DATADIR%%/denyhosts.cfg-dist
+%%DATADIR%%/denyhosts.conf-dist
%%DATADIR%%/setup.py
%%DATADIR%%/scripts/restricted_from_invalid.py
%%DATADIR%%/scripts/restricted_from_passwd.py
--- denyhosts-2.5_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list