Date: Sat, 30 Aug 2014 02:53:44 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366587 - head/security/denyhosts Message-ID: <201408300253.s7U2ricM041622@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sat Aug 30 02:53:44 2014 New Revision: 366587 URL: http://svnweb.freebsd.org/changeset/ports/366587 QAT: https://qat.redports.org/buildarchive/r366587/ Log: - Add missing OPTIONS_DEFINE - Convert PYDISTUTILS_AUTOPLIST and USE_PYDISTUTILS to USE_PYTHON - Remove python from SHEBANG_LANG - Add REINPLACE_ARGS - Move .bak/.orig removal from pre-install: to post-patch: - Use @sample - Bump PORTREVISION for package change - Take maintainership Modified: head/security/denyhosts/Makefile head/security/denyhosts/pkg-plist Modified: head/security/denyhosts/Makefile ============================================================================== --- head/security/denyhosts/Makefile Sat Aug 30 02:32:58 2014 (r366586) +++ head/security/denyhosts/Makefile Sat Aug 30 02:53:44 2014 (r366587) @@ -3,47 +3,41 @@ PORTNAME= denyhosts PORTVERSION= 2.6 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security MASTER_SITES= SF DISTNAME= DenyHosts-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Script to thwart ssh attacks LICENSE= GPLv2 -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +OPTIONS_DEFINE= DOCS +REINPLACE_ARGS= -i '' +USE_PYTHON= autoplist distutils +USE_RC_SUBR= denyhosts USES= python:2 shebangfix -env_OLD_CMD= /bin/env -env_CMD= ${SETENV} -SHEBANG_LANG= python env -SHEBANG_FILES= plugins/test_deny.py \ - scripts/restricted_from_invalid.py \ - scripts/restricted_from_passwd.py -USE_RC_SUBR= denyhosts -SUB_LIST+= PYTHON=${PYTHON_CMD} +PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt SUB_FILES= pkg-message +SUB_LIST= PYTHON=${PYTHON_CMD} -PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt +SHEBANG_LANG= env +SHEBANG_FILES= plugins/test_deny.py \ + scripts/restricted_from_invalid.py \ + scripts/restricted_from_passwd.py +env_OLD_CMD= /bin/env +env_CMD= ${SETENV} post-patch: - @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ - ${WRKSRC}/daemon-control-dist \ - ${WRKSRC}/denyhosts.cfg-dist \ - ${WRKSRC}/setup.py - -pre-install: - @${FIND} ${WRKSRC} -type f \( -name \*.bak -o -name \*.orig \) -delete + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/daemon-control-dist ${WRKSRC}/denyhosts.cfg-dist ${WRKSRC}/setup.py + @${FIND} ${WRKSRC} -type f -name '*.bak' -o -name '*.orig' -delete post-install: - ${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist \ - ${STAGEDIR}${PREFIX}/etc/denyhosts.conf-dist - - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${STAGEDIR}${PREFIX}/etc/denyhosts.conf.sample + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> Modified: head/security/denyhosts/pkg-plist ============================================================================== --- head/security/denyhosts/pkg-plist Sat Aug 30 02:32:58 2014 (r366586) +++ head/security/denyhosts/pkg-plist Sat Aug 30 02:53:44 2014 (r366587) @@ -1,3 +1 @@ -@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 -@exec [ -f %B/denyhosts.conf ] || cp -f %B/%f %B/denyhosts.conf +@sample etc/denyhosts.conf.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408300253.s7U2ricM041622>