aboutsummaryrefslogtreecommitdiffstats
path: root/www/c-icap-modules/Makefile
blob: 9df64531381c33141bd61e886c2bbf3585b06895 (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
# New ports collection makefile for:    c-icap-modules
# Date created:             15 August 2012
# Whom:                 Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   c-icap
PORTVERSION=    0.2.3
CATEGORIES= www security
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/0.2.x/
PKGNAMESUFFIX=  -modules
DISTNAME=   c_icap_modules-${PORTVERSION}

MAINTAINER= mm@FreeBSD.org
COMMENT=    c-icap modules virus_scan and srv_url_check

LICENSE=    GPLv2

LIB_DEPENDS+=   icapapi:${PORTSDIR}/www/c-icap \
        clamav:${PORTSDIR}/security/clamav

GNU_CONFIGURE=  yes
DATADIR=    ${PREFIX}/share/c_icap

CFLAGS+=    -DHAVE_STRNSTR

MAN8=       c-icap-mods-sguardDB.8

CONFIGURE_ARGS+=    --enable-static \
            --with-c-icap=${LOCALBASE} \
            --with-clamav=${LOCALBASE}

post-install:
    @${CP} -np ${PREFIX}/etc/c-icap/srv_url_check.conf.default \
        ${PREFIX}/etc/c-icap/srv_url_check.conf || ${TRUE}
    @${CP} -np ${PREFIX}/etc/c-icap/virus_scan.conf.default \
        ${PREFIX}/etc/c-icap/virus_scan.conf || ${TRUE}

.include <bsd.port.mk>