openbsd-ports/security/nessus/Makefile

86 lines
2.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.35 2004/04/08 16:32:39 sturm Exp $
1999-10-26 09:39:19 -04:00
2001-03-25 14:17:45 -05:00
COMMENT= "network security scanner"
1999-01-31 19:29:02 -05:00
2001-03-25 14:17:45 -05:00
PKGNAME= nessus-${VERS}
1999-01-31 19:29:02 -05:00
CATEGORIES= security
1999-10-26 09:39:19 -04:00
VERS= 2.0.10a
1999-10-26 09:39:19 -04:00
DIST_SUBDIR= nessus
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}
2000-08-04 21:25:32 -04:00
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${VERS}/src/ \
2001-02-12 22:00:11 -05:00
ftp://mirror.arc.nasa.gov/pub/tools/nessus/nessus-${VERS}/src/ \
2000-08-04 21:25:32 -04:00
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${VERS}/src/ \
2001-02-12 22:00:11 -05:00
ftp://nessus.via.ecp.fr/nessus/nessus-${VERS}/src/ \
ftp://sunsite.cnlab-switch.ch/mirror/nessus/nessus-${VERS}/src/ \
2000-08-04 21:25:32 -04:00
ftp://ftp.chg.ru/pub/security/nessus/nessus-${VERS}/src/ \
ftp://ftp.sekure.net/pub/nessus/nessus-${VERS}/src/ \
2001-02-12 22:00:11 -05:00
ftp://ftp.nectec.or.th/pub/mirrors/nessus/nessus-${VERS}/src/ \
ftp://ftp.pt.nessus.org/pub/nessus/nessus-${VERS}/src/ \
ftp://ftp.au.nessus.org/pub/nessus/nessus-${VERS}/src/ \
ftp://ftp.stuff.ca/pub/nessus/nessus-${VERS}/src/src/ \
ftp://ftp.at.nessus.org/pub/nessus/nessus-${VERS}/src/ \
ftp://ftp.linux.org.tr/pub/nessus/nessus-${VERS}/src/ \
ftp://cvs.nessus.org/pub/nessus/nessus-${VERS}/src/
1999-01-31 19:29:02 -05:00
MAINTAINER= Srebrenko Sehic <haver@insecure.dk>
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
USE_LIBTOOL= Yes
FLAVORS=no_x11
FLAVOR?=
# Can't do CONFIGURE_STYLE=autoconf because of configure wrapper
# that builds each tarball in succession.
CONFIGURE_STYLE=gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/nessus-core \
${WRKSRC}/nessus-plugins ${WRKSRC}/libnasl ${WRKSRC}/nessus-libraries
CONFIGURE_ARGS+=--localstatedir=/var --disable-nessuspcap \
--sharedstatedir=/var --enable-shared --enable-bpf-sharing
LIB_DEPENDS= net::net/libnet
BUILD_DEPENDS= ::devel/bison
.if empty(FLAVOR:L:Mno_x11)
2002-04-19 10:43:36 -04:00
LIB_DEPENDS+= gtk.1.2,gdk.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:
@sed 's%@@NESSUS_DIRS@@%${NESSUS_DIRS}%g' \
2000-07-02 21:03:50 -04:00
${FILESDIR}/Makefile > ${WRKSRC}Makefile
@sed -e 's%@@NESSUS_DIRS@@%${NESSUS_DIRS}%g' \
-e 's%@@WRKSRC@@%${WRKSRC}%g' \
1999-10-26 09:39:19 -04:00
${FILESDIR}/configure > ${WRKSRC}configure
@sed -e 's%@@WRKSRC@@%${WRKSRC}%g' -e 's%@@VERS@@%${VERS}%g' \
-e 's%@@PREFIX@@%${PREFIX}%g' \
2000-07-02 21:03:50 -04:00
${FILESDIR}/nessus-config > ${WRKSRC}nessus-config
@sed 's%@@WRKSRC@@%${WRKSRC}%g' \
2000-07-02 21:03:50 -04:00
${FILESDIR}/nasl-config > ${WRKSRC}nasl-config
@${CHMOD} 755 ${WRKSRC}*
2002-10-28 12:35:01 -05:00
@cd ${WRKSRC}nessus-libraries/include ; ln -s . nessus
@cd ${WRKSRC}libnasl/include ; ln -s . nessus
NO_REGRESS= Yes
1999-10-26 09:39:19 -04:00
post-install:
@${STRIP} ${PREFIX}/bin/{nasl,nessus,nessus-mkrand} ${PREFIX}/sbin/nessusd
1999-01-31 19:29:02 -05:00
.include <bsd.port.mk>