diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-08-30 10:53:44 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-08-30 10:53:44 +0800 |
commit | ed3a432f890aedd1540664bf68997230872931cb (patch) | |
tree | 4fd934f3ab3cf97e0ccf8ac6cc70f5218ada586c /security/denyhosts/Makefile | |
parent | a1a2187f6929d23df1bdc8a96f44d09f3944ef01 (diff) | |
download | freebsd-ports-gnome-ed3a432f890aedd1540664bf68997230872931cb.tar.gz freebsd-ports-gnome-ed3a432f890aedd1540664bf68997230872931cb.tar.zst freebsd-ports-gnome-ed3a432f890aedd1540664bf68997230872931cb.zip |
- 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
Diffstat (limited to 'security/denyhosts/Makefile')
-rw-r--r-- | security/denyhosts/Makefile | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/security/denyhosts/Makefile b/security/denyhosts/Makefile index 0964943e073d..a3662c9cd95a 100644 --- a/security/denyhosts/Makefile +++ b/security/denyhosts/Makefile @@ -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> |