summaryrefslogtreecommitdiff
path: root/security/hostsentry
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-19 14:24:57 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-19 14:24:57 +0000
commit090d6268790fdd790e63a5de97ffe7cabb6a22be (patch)
tree6bc34781941511f541d397b2a5c51d969f20825d /security/hostsentry
parentUpdate to 051018. (diff)
. respect PREFIX
. bump PORTREVISION PR: 87660, 87638 Reported by: dosirak via kris Submitted by: Michael Ranner <mranner@inode.at> (maintainer)
Notes
Notes: svn path=/head/; revision=145870
Diffstat (limited to 'security/hostsentry')
-rw-r--r--security/hostsentry/Makefile6
-rw-r--r--security/hostsentry/pkg-plist2
2 files changed, 6 insertions, 2 deletions
diff --git a/security/hostsentry/Makefile b/security/hostsentry/Makefile
index 700fbc9efc0a..27e667daeb99 100644
--- a/security/hostsentry/Makefile
+++ b/security/hostsentry/Makefile
@@ -7,7 +7,7 @@
PORTNAME= hostsentry
PORTVERSION= 0.02
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.netsys.com/len/ \
${MASTER_SITE_PACKETSTORM}
@@ -19,11 +19,15 @@ COMMENT= A Login Anomaly Detector
RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm
USE_PYTHON= yes
+USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
post-patch:
@${SED} 's|%%PREFIX%%|${PREFIX}|' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
+ @${REINPLACE_CMD} -e "s,/usr/local,${PREFIX}," \
+ ${WRKSRC}/*
+ @${RM} ${WRKSRC}/*.bak
post-install:
.if !defined(NOPORTDOCS)
diff --git a/security/hostsentry/pkg-plist b/security/hostsentry/pkg-plist
index 7b03376ebd1f..3921ef634080 100644
--- a/security/hostsentry/pkg-plist
+++ b/security/hostsentry/pkg-plist
@@ -24,7 +24,7 @@ lib/hostsentry/modules/moduleMultipleLogins.py
lib/hostsentry/modules/moduleOddDirnames.py
lib/hostsentry/modules/moduleRhostsCheck.py
@dirrm lib/hostsentry/modules
-@unexec rm %D/lib/hostsentry/*.pyc || true
+@unexec rm %D/lib/hostsentry/*.pyc 2>/dev/null || true
@dirrm lib/hostsentry
@unexec rmdir %D/etc/hostsentry 2>/dev/null || echo "If you are permanently removing this port, you should do a "rm -rf ${PKG_PREFIX}/etc/hostsentry" to remove any binary, configuration and log files left." | fmt
%%PORTDOCS%%%%DOCSDIR%%/README.BUGS