56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.42 2011/03/19 11:14:30 obache Exp $
|
|
|
|
.include "../../security/nessus/Makefile.common"
|
|
|
|
DISTNAME= nessus-core-${VERS}
|
|
PKGREVISION= 7
|
|
|
|
COMMENT= Core module of the Nessus Network Security Scanner
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/nessus-core
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= pkg-config
|
|
CONFIGURE_ARGS+= --enable-gtk
|
|
CONFIGURE_ARGS+= --with-x
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
|
CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q}
|
|
CONFIGURE_ENV+= ac_cv_path_GTKCONFIG="pkg-config gtk+-2.0" \
|
|
ac_cv_path_GLIBCONFIG="pkg-config glib-2.0"
|
|
|
|
RCD_SCRIPTS= nessusd
|
|
|
|
PKG_SYSCONFSUBDIR?= nessus
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/nessus ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${ROOT_USER} ${ROOT_GROUP} 0755
|
|
|
|
OWN_DIRS+= ${PREFIX}/lib/nessus \
|
|
${PREFIX}/lib/nessus/reports \
|
|
${PREFIX}/lib/nessus/plugins
|
|
|
|
MAKE_DIRS+= ${VARBASE}/nessus/jobs \
|
|
${VARBASE}/nessus/logs \
|
|
${VARBASE}/nessus/tmp \
|
|
${VARBASE}/nessus/users
|
|
|
|
CONF_FILES+= ${BUILDLINK_PREFIX.libnasl}/share/examples/libnasl/nessus_org.pem \
|
|
${VARBASE}/nessus/nessus_org.pem
|
|
CONF_FILES+= ${PREFIX}/share/examples/nessus/nessus-services \
|
|
${VARBASE}/nessus/nessus-services
|
|
|
|
# just juggle _pkginstall-post-install-check in mk/pkginstall/bsd.pkginstall.mk
|
|
INSTALLATION_DIRS+= share/examples/libnasl
|
|
CHECK_FILES_SKIP+= ${PREFIX}/share/examples/libnasl/nessus_org.pem
|
|
post-install:
|
|
${INSTALL_DATA} \
|
|
${BUILDLINK_PREFIX.libnasl}/share/examples/libnasl/nessus_org.pem \
|
|
${DESTDIR}${PREFIX}/share/examples/libnasl
|
|
|
|
.include "../../security/libnasl/buildlink3.mk"
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|