2003-02-08 08:21:19 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2003/02/08 13:21:19 reinhard 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
|
|
|
|
2003-02-08 08:21:19 -05:00
|
|
|
VERS= 1.2.7
|
1999-10-26 09:39:19 -04:00
|
|
|
|
2000-09-30 20:41:45 -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/ \
|
2002-05-25 06:38:58 -04:00
|
|
|
ftp://cvs.nessus.org/pub/nessus/nessus-${VERS}/src/
|
1999-01-31 19:29:02 -05:00
|
|
|
|
2001-06-17 05:40:10 -04:00
|
|
|
MAINTAINER= Reinhard J. Sammer <reinhard@openbsd.org>
|
2000-07-26 20:23:33 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
2002-05-25 06:38:58 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
FLAVORS=no_x11
|
2000-07-26 20:23:33 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2001-05-06 10:38:33 -04:00
|
|
|
# Can't do CONFIGURE_STYLE=autoconf because of configure wrapper
|
|
|
|
# that builds each tarball in succession.
|
2000-07-26 20:23:33 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2002-05-25 06:38:58 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/nessus-core \
|
|
|
|
${WRKSRC}/nessus-plugins ${WRKSRC}/libnasl ${WRKSRC}/nessus-libraries
|
|
|
|
CONFIGURE_ARGS+=--localstatedir=/var --disable-nessuspcap --sharedstatedir=/var
|
2000-12-28 11:07:05 -05:00
|
|
|
|
2002-09-27 23:18:15 -04:00
|
|
|
LIB_DEPENDS= net::net/libnet
|
|
|
|
|
2000-07-26 20:23:33 -04:00
|
|
|
.if empty(FLAVOR:L:Mno_x11)
|
2002-04-19 10:43:36 -04:00
|
|
|
LIB_DEPENDS+= gtk.1.2,gdk.1.2::x11/gtk+
|
2000-07-26 20:23:33 -04:00
|
|
|
.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-12-28 11:07:05 -05:00
|
|
|
@sed 's%@@NESSUS_DIRS@@%${NESSUS_DIRS}%g' \
|
2000-07-02 21:03:50 -04:00
|
|
|
${FILESDIR}/Makefile > ${WRKSRC}Makefile
|
2000-12-28 11:07:05 -05:00
|
|
|
@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
|
2000-12-28 11:07:05 -05:00
|
|
|
@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
|
2000-12-28 11:07:05 -05:00
|
|
|
@sed 's%@@WRKSRC@@%${WRKSRC}%g' \
|
2000-07-02 21:03:50 -04:00
|
|
|
${FILESDIR}/nasl-config > ${WRKSRC}nasl-config
|
2002-05-25 06:38:58 -04:00
|
|
|
@${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
|
|
|
|
2001-07-03 03:57:46 -04:00
|
|
|
post-install:
|
2002-05-25 06:38:58 -04:00
|
|
|
@${STRIP} ${PREFIX}/bin/{nasl,nessus,nessus-mkrand} ${PREFIX}/sbin/nessusd
|
2001-07-03 03:57:46 -04:00
|
|
|
|
1999-01-31 19:29:02 -05:00
|
|
|
.include <bsd.port.mk>
|