aboutsummaryrefslogtreecommitdiffstats
path: root/security/samba-vscan/Makefile
blob: edc8926609084e8162dec5bfc5333f4750f27759 (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
46
47
48
# New ports collection makefile for:    samba-vscan
# Date created:     27 February 2004
# Whom:         Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
#
# $FreeBSD$
#

PORTNAME=   samba-vscan
PORTVERSION=    0.3.5
CATEGORIES= security
MASTER_SITES=   http://heanet.dl.sourceforge.net/sourceforge/openantivirus/ \
        http://easynews.dl.sourceforge.net/sourceforge/openantivirus/ \
        http://flow.dl.sourceforge.net/sourceforge/openantivirus/

MAINTAINER= jmelo@freebsdbrasil.com.br
COMMENT=    On-access virus scanning with Samba

BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/net/${VSCAN_SAMBA_PORT}:build

USE_BZIP2=  yes
SAMBA_WRKSRC=   `cd ${PORTSDIR}/net/${VSCAN_SAMBA_PORT}; make -V WRKSRC`
HAS_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ARGS= --with-samba-source=${SAMBA_WRKSRC}
ETCDIR=     ${PREFIX}/etc/samba-vscan
PKGMESSAGE= ${WRKDIR}/pkg-message
VSCAN_SAMBA_PORT?=samba

.if ${VSCAN_SAMBA_PORT} == "samba3"
PLIST_SUB=  VFSDIR=lib/samba/vfs
.else
PLIST_SUB=  VFSDIR=lib/samba
.endif

post-install:
    @${MKDIR} ${PREFIX}/etc/samba-vscan
    @${INSTALL_DATA} ${WRKSRC}/clamav/vscan-clamav.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/fprot/vscan-fprotd.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/icap/vscan-icap.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/kaspersky/vscan-kavp.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/mks/vscan-mks32.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/openantivirus/vscan-oav.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/sophos/vscan-sophos.conf ${ETCDIR}
    @${INSTALL_DATA} ${WRKSRC}/trend/vscan-trend.conf ${ETCDIR}
    @${SED} "s|%%PREFIX%%|${PREFIX}|g;" ${.CURDIR}/pkg-message > ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>