openbsd-ports/security/nessus/Makefile

72 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.14 2000/07/27 00:24:43 matt Exp $
1999-10-26 09:39:19 -04:00
PKGNAME= nessus-${VERS}
1999-01-31 19:29:02 -05:00
CATEGORIES= security
NEED_VERSION= 1.316
1999-10-26 09:39:19 -04:00
VERS= 1.0.3
1999-10-26 09:39:19 -04:00
DIST_SUBDIR= nessus-${VERS}
1999-10-26 09:39:19 -04:00
DISTFILES= nessus-libraries-${VERS}${EXTRACT_SUFX} \
libnasl-${VERS}${EXTRACT_SUFX} \
nessus-core-${VERS}${EXTRACT_SUFX} \
nessus-plugins-${VERS}${EXTRACT_SUFX}
NESSUS_DIRS= ${DISTFILES:S/-${VERS}${EXTRACT_SUFX}//g}
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${VERS}/ \
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${VERS}/ \
ftp://cvs.nessus.org/pub/nessus/nessus-${VERS}/ \
ftp://ftp.chg.ru/pub/security/nessus/nessus-${VERS}/ \
ftp://ftp.sekure.net/pub/nessus/nessus-${VERS}/ \
ftp://ftp.nectec.or.th/pub/mirrors/nessus/nessus-${VERS}/
1999-01-31 19:29:02 -05:00
MAINTAINER= matt@openbsd.org
HOMEPAGE= http://www.nessus.org/
1999-01-31 19:29:02 -05:00
2000-03-05 13:30:21 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:02:07 -05:00
FLAVORS=no_x11
FLAVOR?=
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--localstatedir=/var
1999-01-31 19:29:02 -05:00
.if empty(FLAVOR:L:Mno_x11)
LIB_DEPENDS= gtk.1.2::x11/gtk+
.else
CONFIGURE_ARGS+=--disable-gtk
.endif
1999-01-31 19:29:02 -05:00
1999-10-26 09:39:19 -04:00
post-extract:
2000-07-02 21:03:50 -04:00
@sed "s%y0y0y0%${NESSUS_DIRS}%g" \
${FILESDIR}/Makefile > ${WRKSRC}Makefile
1999-10-26 09:39:19 -04:00
@sed -e "s%y0y0y0%${NESSUS_DIRS}%g" -e "s%w00w00%${WRKSRC}%g" \
${FILESDIR}/configure > ${WRKSRC}configure
2000-07-02 21:03:50 -04:00
@sed -e "s%w00w00%${WRKSRC}%g" -e "s%@@VERS@@%${VERS}%g" \
${FILESDIR}/nessus-config > ${WRKSRC}nessus-config
@sed "s%w00w00%${WRKSRC}%g" \
${FILESDIR}/nasl-config > ${WRKSRC}nasl-config
1999-10-26 09:39:19 -04:00
@chmod 755 ${WRKSRC}*
@(cd ${WRKSRC}nessus-libraries/include ; ln -s . nessus)
2000-07-02 21:03:50 -04:00
@(cd ${WRKSRC}nessus-libraries/libpeks ; ln -s . peks)
@(cd ${WRKSRC}nessus-libraries/libpcap-nessus ; ln -s . nessus)
1999-10-26 09:39:19 -04:00
@(cd ${WRKSRC}libnasl/include ; ln -s . nessus)
# Convince nmap_wrapper.nes to build regardless of nmap's presence.
post-configure:
@cp ${FILESDIR}/nmap.h ${WRKSRC}nessus-plugins/plugins/nmap_wrapper/
@touch ${WRKSRC}nessus-plugins/plugins/nmap_wrapper/nmap_installed
1999-10-26 09:39:19 -04:00
pre-install:
mkdir -p -m 755 ${PREFIX}/include/nessus
1999-01-31 19:29:02 -05:00
.include <bsd.port.mk>