summaryrefslogtreecommitdiff
path: root/net/snort
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2009-12-09 11:42:35 +0000
committerobache <obache@pkgsrc.org>2009-12-09 11:42:35 +0000
commit50e28e79055a237827a97ea92dc023b9dce48398 (patch)
treedce3faffc9bf751489fa6678c4a68e55eedaa73c /net/snort
parent972eeb77cfaa8dd7ade15b95967ad59bbe979442 (diff)
downloadpkgsrc-50e28e79055a237827a97ea92dc023b9dce48398.tar.gz
Add user-destdir support.
Diffstat (limited to 'net/snort')
-rw-r--r--net/snort/Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/net/snort/Makefile b/net/snort/Makefile
index 2ece42b023c..5c712e262f5 100644
--- a/net/snort/Makefile
+++ b/net/snort/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2009/07/17 18:00:20 adrianp Exp $
+# $NetBSD: Makefile,v 1.42 2009/12/09 11:42:35 obache Exp $
#
DISTNAME= snort-2.8.3.1
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.snort.org/
COMMENT= The Open Source Network Intrusion Detection System
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS+= snort-mysql-[0-9]*
CONFLICTS+= snort-pgsql-[0-9]*
CONFLICTS+= snort-prelude-[0-9]*
@@ -88,28 +90,26 @@ CONFIGURE_ARGS+= --with-libpcap-libraries=${BUILDLINK_PREFIX.libpcap}/lib
pre-build:
${CP} ${WRKSRC}/etc/snort.conf ${WRKSRC}/etc/snort.conf.default
-post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort/schemas
+INSTALLATION_DIRS+= ${EGDIR} share/doc/snort/schemas
+post-install:
${INSTALL_DATA} ${WRKSRC}/etc/*.config \
${WRKSRC}/etc/*.map \
${WRKSRC}/etc/threshold.conf \
- ${WRKSRC}/etc/snort.conf.default ${EGDIR}/
- ${INSTALL_DATA} ${WRKSRC}/doc/generators ${EGDIR}
+ ${WRKSRC}/etc/snort.conf.default ${DESTDIR}${EGDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/generators ${DESTDIR}${EGDIR}
. for i in ${DOC_FILES}
- ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/snort/
+ ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DESTDIR}${PREFIX}/share/doc/snort/
. endfor
- ${INSTALL_DATA} ${WRKSRC}/doc/README.* ${PREFIX}/share/doc/snort/
- ${INSTALL_DATA} ${WRKSRC}/doc/*.tex ${PREFIX}/share/doc/snort/
- ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${PREFIX}/share/doc/snort/
- ${INSTALL_MAN} ${WRKSRC}/snort.8 ${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_DATA} ${WRKSRC}/doc/README.* ${DESTDIR}${PREFIX}/share/doc/snort/
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.tex ${DESTDIR}${PREFIX}/share/doc/snort/
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DESTDIR}${PREFIX}/share/doc/snort/
+ ${INSTALL_MAN} ${WRKSRC}/snort.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC}/schemas/create_* \
- ${PREFIX}/share/doc/snort/schemas
+ ${DESTDIR}${PREFIX}/share/doc/snort/schemas
.include "../../net/libpcap/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"