diff options
author | garga <garga@FreeBSD.org> | 2006-07-01 01:13:22 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-07-01 01:13:22 +0800 |
commit | dc3e75bd7421d658241f406dcfb8d821f2ba3274 (patch) | |
tree | b0018d5d2e4dac9f6545001b55f2d5a5b43b8f59 /security | |
parent | d74e02f711754f33cbc9f4c1f3482ba17d9d15ec (diff) | |
download | freebsd-ports-gnome-dc3e75bd7421d658241f406dcfb8d821f2ba3274.tar.gz freebsd-ports-gnome-dc3e75bd7421d658241f406dcfb8d821f2ba3274.tar.zst freebsd-ports-gnome-dc3e75bd7421d658241f406dcfb8d821f2ba3274.zip |
- Update to 2.5
* ADMIN_EMAIL pref can now contain multiple email addresses delimited by a
comma (white space is optional). eg. foo@bar.com, bar@foo.com,
foobar@foo.com
* fixed bug in denyfileutil: 'timestamp' is now initialized properly
* daemon-control-dist: modified to work w/ non-default python versions. You
must change the PYTHON_BIN and #!/bin/env/python references if appropriate.
* added a debug message when loading allowed-hosts fails.
* fixed bug when reporting suspicious login activity.
PR: ports/99636
Submitted by: maintainer
Diffstat (limited to 'security')
-rw-r--r-- | security/denyhosts/Makefile | 17 | ||||
-rw-r--r-- | security/denyhosts/distinfo | 6 | ||||
-rw-r--r-- | security/denyhosts/pkg-plist | 9 |
3 files changed, 17 insertions, 15 deletions
diff --git a/security/denyhosts/Makefile b/security/denyhosts/Makefile index de6ede2d5dd6..9a9f067ec448 100644 --- a/security/denyhosts/Makefile +++ b/security/denyhosts/Makefile @@ -6,11 +6,11 @@ # PORTNAME= denyhosts -DISTVERSION= 2.4b +PORTVERSION= 2.5 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= DenyHosts-${DISTVERSION} +DISTNAME= DenyHosts-${PORTVERSION} MAINTAINER= janos.mohacsi@bsd.hu COMMENT= Script to thwart ssh attacks @@ -20,7 +20,7 @@ USE_PYDISTUTILS= yes USE_RC_SUBR= denyhosts -DOC_FILES= CHANGELOG.txt LICENSE.txt README.txt +PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt pre-configure: @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ @@ -29,11 +29,14 @@ pre-configure: ${WRKSRC}/setup.py post-install: -.ifndef(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc + [ -f ${PREFIX}/etc/denyhosts.cfg ] || \ + ${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${PREFIX}/etc/denyhosts.cfg +.if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor +. for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +. endfor .endif @${CAT} ${PKGMESSAGE} diff --git a/security/denyhosts/distinfo b/security/denyhosts/distinfo index 60f84300d4e1..1d7e456d4330 100644 --- a/security/denyhosts/distinfo +++ b/security/denyhosts/distinfo @@ -1,3 +1,3 @@ -MD5 (DenyHosts-2.4b.tar.gz) = c60df73b29baeadffbbb1ef8f130dd8d -SHA256 (DenyHosts-2.4b.tar.gz) = 851a050c6eb78618605eecdfae80a1ac412b2adc99160fb9c9d275f64858a7c1 -SIZE (DenyHosts-2.4b.tar.gz) = 42206 +MD5 (DenyHosts-2.5.tar.gz) = b33f0cdae6448ae559c5f22dbffe59f2 +SHA256 (DenyHosts-2.5.tar.gz) = 1efa1a977d0341bc5c94dbc652f86f3834e12013d7dc19a4f6e7b4b4c0242ed4 +SIZE (DenyHosts-2.5.tar.gz) = 42612 diff --git a/security/denyhosts/pkg-plist b/security/denyhosts/pkg-plist index 256020e1c602..c15df5e9df22 100644 --- a/security/denyhosts/pkg-plist +++ b/security/denyhosts/pkg-plist @@ -1,7 +1,10 @@ bin/denyhosts.py +@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 +@exec [ -f %B/denyhosts.cfg ] || cp -f %B/%f %B/denyhosts.cfg +%%DATADIR%%/daemon-control-dist %%DATADIR%%/denyhosts.cfg-dist %%DATADIR%%/setup.py -%%DATADIR%%/daemon-control-dist %%DATADIR%%/scripts/restricted_from_invalid.py %%DATADIR%%/scripts/restricted_from_passwd.py %%DATADIR%%/plugins/README.contrib @@ -71,10 +74,6 @@ bin/denyhosts.py %%PYTHON_SITELIBDIR%%/DenyHosts/restricted.py %%PYTHON_SITELIBDIR%%/DenyHosts/restricted.pyc %%PYTHON_SITELIBDIR%%/DenyHosts/restricted.pyo -%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt -%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt -%%PORTDOCS%%%%DOCSDIR%%/README.txt -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%PYTHON_SITELIBDIR%%/DenyHosts @dirrm %%DATADIR%%/scripts @dirrm %%DATADIR%%/plugins |