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