| @@ -1,41 +1,42 @@ | | | @@ -1,41 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.42 2011/01/13 13:39:17 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.43 2011/03/19 11:54:30 obache Exp $ |
2 | | | 2 | |
3 | .include "../../security/nessus/Makefile.common" | | 3 | .include "../../security/nessus/Makefile.common" |
4 | | | 4 | |
5 | DISTNAME= nessus-plugins-GPL-${VERS} | | 5 | DISTNAME= nessus-plugins-GPL-${VERS} |
6 | PKGNAME= nessus-plugins-${VERS} | | 6 | PKGNAME= nessus-plugins-${VERS} |
7 | PKGREVISION= 7 | | 7 | PKGREVISION= 7 |
8 | # nmap.nasl was removed from the pack, | | 8 | # nmap.nasl was removed from the pack, |
9 | # http://www.nessus.org/documentation/?doc=nmap-usage | | 9 | # http://www.nessus.org/documentation/?doc=nmap-usage |
10 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} nmap.nasl | | 10 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} nmap.nasl |
11 | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | | 11 | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
12 | SITES.nmap.nasl= http://www.nessus.org/documentation/ | | 12 | SITES.nmap.nasl= http://www.nessus.org/documentation/ |
13 | | | 13 | |
14 | COMMENT= Plugins for the Nessus Network Security Scanner | | 14 | COMMENT= Plugins for the Nessus Network Security Scanner |
15 | | | 15 | |
| | | 16 | FETCH_MESSAGE+= "Please download nmap.nasl" |
| | | 17 | FETCH_MESSAGE+= "manually from ${SITES.nmap.nasl:Q}" |
| | | 18 | |
16 | DEPENDS+= nmap>=2.0:../../net/nmap | | 19 | DEPENDS+= nmap>=2.0:../../net/nmap |
17 | | | 20 | |
| | | 21 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 22 | |
18 | WRKSRC= ${WRKDIR}/nessus-plugins | | 23 | WRKSRC= ${WRKDIR}/nessus-plugins |
19 | GNU_CONFIGURE= yes | | 24 | GNU_CONFIGURE= yes |
20 | USE_TOOLS+= cat gzip | | 25 | USE_TOOLS+= cat gzip |
21 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 26 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} |
22 | CONFIGURE_ENV+= CAT=${TOOLS_CAT:Q} GZIP=${TOOLS_GZIP_CMD:Q} \ | | 27 | CONFIGURE_ENV+= CAT=${TOOLS_CAT:Q} GZIP=${TOOLS_GZIP_CMD:Q} \ |
23 | ac_cv_path_MAKE=${MAKE:Q} | | 28 | ac_cv_path_MAKE=${MAKE:Q} |
24 | | | 29 | |
25 | PLIST_SRC= ${WRKDIR}/PLIST PLIST | | 30 | PLIST_SRC= ${WRKDIR}/PLIST PLIST |
26 | | | 31 | |
27 | post-install: | | 32 | post-install: |
28 | ${INSTALL_DATA} ${DISTDIR}/nmap.nasl ${PREFIX}/lib/nessus/plugins/ | | 33 | ${INSTALL_DATA} ${DISTDIR}/nmap.nasl ${DESTDIR}${PREFIX}/lib/nessus/plugins/ |
29 | # auto-generate PLIST of plug-ins | | 34 | # auto-generate PLIST of plug-ins |
30 | ${RM} -f ${WRKDIR}/PLIST | | 35 | ${RM} -f ${WRKDIR}/PLIST |
31 | cd ${PREFIX} && \ | | 36 | cd ${DESTDIR}${PREFIX} && \ |
32 | ${FIND} lib/nessus/plugins -type f -print >>${WRKDIR}/PLIST | | 37 | ${FIND} lib/nessus/plugins -type f -print >>${WRKDIR}/PLIST |
33 | | | 38 | |
34 | .include "../../mk/bsd.prefs.mk" | | | |
35 | | | | |
36 | .if !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) | | | |
37 | CONFIGURE_ARGS+= --enable-install=${ROOT_USER} | | 39 | CONFIGURE_ARGS+= --enable-install=${ROOT_USER} |
38 | .endif | | | |
39 | | | 40 | |
40 | .include "../../security/nessus-core/buildlink3.mk" | | 41 | .include "../../security/nessus-core/buildlink3.mk" |
41 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |