aboutsummaryrefslogtreecommitdiff
path: root/security/denyhosts
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-06-30 17:13:22 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-06-30 17:13:22 +0000
commit5c7aa5140636024c9e94a5a33d756ce71c62955b (patch)
tree0df3c63dc64c7a227e67c4a886d7a5192072f919 /security/denyhosts
parentfdc2157b926cb96d9d72bd0df040558fd468555f (diff)
downloadports-5c7aa5140636024c9e94a5a33d756ce71c62955b.tar.gz
ports-5c7aa5140636024c9e94a5a33d756ce71c62955b.zip
Notes
Diffstat (limited to 'security/denyhosts')
-rw-r--r--security/denyhosts/Makefile17
-rw-r--r--security/denyhosts/distinfo6
-rw-r--r--security/denyhosts/pkg-plist9
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