summaryrefslogtreecommitdiff
path: root/security/portsentry
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-12 02:14:13 +0000
committerjoerg <joerg>2008-06-12 02:14:13 +0000
commit39d7fb93432416d872ed34e0025741cc93068c06 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /security/portsentry
parentcce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff)
downloadpkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz
Add DESTDIR support.
Diffstat (limited to 'security/portsentry')
-rw-r--r--security/portsentry/Makefile9
-rw-r--r--security/portsentry/distinfo4
-rw-r--r--security/portsentry/patches/patch-ac6
3 files changed, 11 insertions, 8 deletions
diff --git a/security/portsentry/Makefile b/security/portsentry/Makefile
index 91c6183c77b..2840a134263 100644
--- a/security/portsentry/Makefile
+++ b/security/portsentry/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/12/28 11:51:42 obache Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/12 02:14:45 joerg Exp $
#
DISTNAME= portsentry-1.2
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/sentrytools/
COMMENT= Detects and respond to port scans against a target host in real-time
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/portsentry_beta
BUILD_TARGET= ${LOWER_OPSYS}
@@ -18,6 +20,7 @@ CONF_FILES= ${EGDIR}/portsentry.conf ${PKG_SYSCONFDIR}/portsentry.conf
CONF_FILES+= ${EGDIR}/portsentry.ignore ${PKG_SYSCONFDIR}/portsentry.ignore
INSTALLATION_DIRS= sbin share/doc/portsentry share/examples/portsentry
+INSTALL_MAKE_FLAGS= INSTALLDIR=${DESTDIR}${PREFIX}
post-patch:
@cd ${WRKSRC}; \
@@ -35,7 +38,7 @@ post-patch:
done
post-install:
- ${INSTALL_DATA} ${WRKSRC}/README.install ${PREFIX}/share/doc/portsentry
- ${INSTALL_DATA} ${WRKSRC}/README.methods ${PREFIX}/share/doc/portsentry
+ ${INSTALL_DATA} ${WRKSRC}/README.install ${DESTDIR}${PREFIX}/share/doc/portsentry
+ ${INSTALL_DATA} ${WRKSRC}/README.methods ${DESTDIR}${PREFIX}/share/doc/portsentry
.include "../../mk/bsd.pkg.mk"
diff --git a/security/portsentry/distinfo b/security/portsentry/distinfo
index 0e53808fd46..ee188e9a7ed 100644
--- a/security/portsentry/distinfo
+++ b/security/portsentry/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.7 2005/12/08 19:21:57 joerg Exp $
+$NetBSD: distinfo,v 1.8 2008/06/12 02:14:45 joerg Exp $
SHA1 (portsentry-1.2.tar.gz) = 091124db3f9ccc29afae08d6ab1fdd073b789d0a
RMD160 (portsentry-1.2.tar.gz) = 8bf4bce18229a7ebff47e7fe50493738ae818085
Size (portsentry-1.2.tar.gz) = 48054 bytes
SHA1 (patch-aa) = eea7602eaed3d065b4ec6002dff524bdcd846e9f
SHA1 (patch-ab) = 76d9062ba8fd205b05d64ce8485e1c6c294bed1a
-SHA1 (patch-ac) = 8b00f1dde9f6203a958d2a7b5d6a2efa1a904753
+SHA1 (patch-ac) = a986348ed630e2f9a794d78d75989fc3aa0d3638
SHA1 (patch-ad) = 7e79e119eda32e4e2f53f878ea1b24afdce2ee54
diff --git a/security/portsentry/patches/patch-ac b/security/portsentry/patches/patch-ac
index 600efb497f0..b1e3eb0f37d 100644
--- a/security/portsentry/patches/patch-ac
+++ b/security/portsentry/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.4 2005/12/08 19:21:57 joerg Exp $
+$NetBSD: patch-ac,v 1.5 2008/06/12 02:14:45 joerg Exp $
--- Makefile.orig 2003-05-23 18:10:13.000000000 +0000
+++ Makefile
@@ -39,12 +39,12 @@ $NetBSD: patch-ac,v 1.4 2005/12/08 19:21:57 joerg Exp $
- cp ./portsentry $(INSTALLDIR)$(CHILDDIR)
+ ${BSD_INSTALL_DATA} ./portsentry.conf $(INSTALLDIR)$(CHILDDIR)
+ ${BSD_INSTALL_DATA} ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR)
-+ ${BSD_INSTALL_PROGRAM} ./portsentry ${PREFIX}/sbin
++ ${BSD_INSTALL_PROGRAM} ./portsentry ${DESTDIR}${PREFIX}/sbin
@echo "Setting permissions"
chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.ignore
chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.conf
- chmod 700 $(INSTALLDIR)$(CHILDDIR)/portsentry
-+ chmod 700 ${PREFIX}/sbin/portsentry
++ chmod 700 ${DESTDIR}${PREFIX}/sbin/portsentry
@echo ""
@echo ""
@echo "Edit $(INSTALLDIR)$(CHILDDIR)/portsentry.conf and change"