freebsd-ports/security/openvas-plugins/Makefile
William Grzybowski a9db62d9e9 security/openvas-plugins: fix build
- Fix build, add pkgconfig to USES [1]
- Trim Makefile header

PR:		ports/179811 [1]
Submitted by:	John Marino <draco@marino.st>
2013-06-21 17:48:03 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Tomoyuki Sakurai <cherry@trombik.org>
# $FreeBSD$
PORTNAME= openvas-plugins
PORTVERSION= 1.0.7
PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= http://wald.intevation.org/frs/download.php/588/
MAINTAINER= ports@FreeBSD.org
COMMENT= Plugins for OpenVAS
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet \
openvasd:${PORTSDIR}/security/openvas-server
LIB_DEPENDS= openvas.2:${PORTSDIR}/security/openvas-libraries \
openvasnasl.2:${PORTSDIR}/security/openvas-libnasl \
gnutls.26:${PORTSDIR}/security/gnutls
RUN_DEPENDS= openvasd:${PORTSDIR}/security/openvas-server \
${LOCALBASE}/bin/gmd5sum:${PORTSDIR}/sysutils/coreutils \
${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync
USES= pkgconfig
GNU_CONFIGURE= yes
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
CPPFLAGS+= "`${LIBNET_CONFIG} --cflags`"
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../openvas-libraries/Makefile.common"
#.if ${ARCH} != "i386"
#BROKEN= does not compile
#.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \
${WRKSRC}/plugins/3com_hub/Makefile
.include <bsd.port.post.mk>