aboutsummaryrefslogtreecommitdiffstats
path: root/security/openvas-plugins/Makefile
blob: 2f8b92dfa5f6b87103086e4e62adc4f2670831e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    openvas-plugins
# Date created:     2008-04-27
# Whom:         Tomoyuki Sakurai <cherry@trombik.org>
#
# $FreeBSD$
#

PORTNAME=   openvas-plugins
PORTVERSION=    1.0.0
PORTREVISION=   2
CATEGORIES= security
MASTER_SITES=   http://wald.intevation.org/frs/download.php/412/

MAINTAINER= cherry@trombik.org
COMMENT=    Plugins for OpenVAS

BUILD_DEPENDS=  ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet \
        openvasd:${PORTSDIR}/security/openvas-server
LIB_DEPENDS=    openvas.1:${PORTSDIR}/security/openvas-libraries \
        openvasnasl.1:${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

GNU_CONFIGURE=  yes
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include `${LIBNET_CONFIG} --cflags`" \
        LDFLAGS="-L${LOCALBASE}/lib"
MAN1=       openvas-build.1

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/security/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>