pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/nessus-plugins * improve fetch message



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39c81d265152
branches:  trunk
changeset: 586759:39c81d265152
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Mar 19 11:54:30 2011 +0000

description:
* improve fetch message
* add user-destdir installation support
* fixes installation on platforms where ROOT_USER != "root".

diffstat:

 security/nessus-plugins/Makefile |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r cf27f9f4c4eb -r 39c81d265152 security/nessus-plugins/Makefile
--- a/security/nessus-plugins/Makefile  Sat Mar 19 11:46:59 2011 +0000
+++ b/security/nessus-plugins/Makefile  Sat Mar 19 11:54:30 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2011/01/13 13:39:17 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2011/03/19 11:54:30 obache Exp $
 
 .include       "../../security/nessus/Makefile.common"
 
@@ -13,8 +13,13 @@
 
 COMMENT=       Plugins for the Nessus Network Security Scanner
 
+FETCH_MESSAGE+=        "Please download nmap.nasl"
+FETCH_MESSAGE+=        "manually from ${SITES.nmap.nasl:Q}"
+
 DEPENDS+=      nmap>=2.0:../../net/nmap
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}/nessus-plugins
 GNU_CONFIGURE=         yes
 USE_TOOLS+=            cat gzip
@@ -25,17 +30,13 @@
 PLIST_SRC=     ${WRKDIR}/PLIST PLIST
 
 post-install:
-       ${INSTALL_DATA} ${DISTDIR}/nmap.nasl ${PREFIX}/lib/nessus/plugins/
+       ${INSTALL_DATA} ${DISTDIR}/nmap.nasl ${DESTDIR}${PREFIX}/lib/nessus/plugins/
        # auto-generate PLIST of plug-ins
        ${RM} -f ${WRKDIR}/PLIST
-       cd ${PREFIX} && \
+       cd ${DESTDIR}${PREFIX} && \
        ${FIND} lib/nessus/plugins -type f -print >>${WRKDIR}/PLIST
 
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
 CONFIGURE_ARGS+=       --enable-install=${ROOT_USER}
-.endif
 
 .include "../../security/nessus-core/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index