summaryrefslogtreecommitdiff
path: root/security/nessus-plugins/Makefile
blob: 31e6939f693e7a14f846344d0f8168b375f2edca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $NetBSD: Makefile,v 1.43 2011/03/19 11:54:30 obache Exp $

.include	"../../security/nessus/Makefile.common"

DISTNAME=	nessus-plugins-GPL-${VERS}
PKGNAME=	nessus-plugins-${VERS}
PKGREVISION=	7
# nmap.nasl was removed from the pack,
# http://www.nessus.org/documentation/?doc=nmap-usage
DISTFILES+=	${DISTNAME}${EXTRACT_SUFX} nmap.nasl
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
SITES.nmap.nasl=	http://www.nessus.org/documentation/

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
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ENV+=		CAT=${TOOLS_CAT:Q} GZIP=${TOOLS_GZIP_CMD:Q} \
			ac_cv_path_MAKE=${MAKE:Q}

PLIST_SRC=	${WRKDIR}/PLIST PLIST

post-install:
	${INSTALL_DATA} ${DISTDIR}/nmap.nasl ${DESTDIR}${PREFIX}/lib/nessus/plugins/
	# auto-generate PLIST of plug-ins
	${RM} -f ${WRKDIR}/PLIST
	cd ${DESTDIR}${PREFIX} && \
	${FIND} lib/nessus/plugins -type f -print >>${WRKDIR}/PLIST

CONFIGURE_ARGS+=	--enable-install=${ROOT_USER}

.include "../../security/nessus-core/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"