pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/snort Add user-destdir support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e7ac2ef613cb
branches: trunk
changeset: 568272:e7ac2ef613cb
user: obache <obache%pkgsrc.org@localhost>
date: Wed Dec 09 11:42:35 2009 +0000
description:
Add user-destdir support.
diffstat:
net/snort/Makefile | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diffs (57 lines):
diff -r 0549c54c98a0 -r e7ac2ef613cb net/snort/Makefile
--- a/net/snort/Makefile Wed Dec 09 11:25:52 2009 +0000
+++ b/net/snort/Makefile Wed Dec 09 11:42:35 2009 +0000
@@ -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 @@
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 @@
pre-build:
${CP} ${WRKSRC}/etc/snort.conf ${WRKSRC}/etc/snort.conf.default
+INSTALLATION_DIRS+= ${EGDIR} share/doc/snort/schemas
+
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort/schemas
-
${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"
Home |
Main Index |
Thread Index |
Old Index