blob: 55c2414396ccef288700f28fe72bc2ae29c18c7c (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# New ports collection makefile for: drweb-qmail
# Date created: 5 February 2003
# Whom: Denis N. Peplin <info@volginfo.ru>
#
# $FreeBSD$
#
PORTNAME= drweb-qmail
PORTVERSION= 4.32.1
CATEGORIES= security mail
MASTER_SITES= ftp://ftp.drweb.ru/pub/unix/FreeBSD/49/ \
ftp://ftp.drweb.ru/pub/unix/FreeBSD/53/
MAINTAINER= support@spectrum.ru
COMMENT= Qmail client for DrWeb antivirus suite
RUN_DEPENDS= ${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd49
.else
DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd53
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
INST_PREFIX= ${PREFIX}/${PORTNAME}
DOC_DIR= ${PREFIX}/share/doc/${PORTNAME}
CONFDIR= ${PREFIX}/etc/${PORTNAME}
LANGS= en en-ru en-pl en-jp
CONFS= drweb_qmail users viruses addresses
TMPLS= archive-admin archive-sender cured-admin cured-sender error-admin \
error-sender rule-admin skip-sender virus-admin virus-rcpts \
virus-sender license-admin
do-install:
${MKDIR} ${INST_PREFIX}
${MKDIR} ${INST_PREFIX}/run
${CHOWN} drweb:drweb ${INST_PREFIX}/run
${MKDIR} ${CONFDIR}
${MKDIR} ${DOC_DIR}
${MKDIR} ${DOC_DIR}/qmail
${INSTALL_PROGRAM} ${WRKSRC}/usr/local/drweb/qmail-queue.static \
${INST_PREFIX}/qmail-queue.drweb
${SED} 's#%INSTALL%#${INST_PREFIX}#g' \
< ${FILESDIR}/01.drweb-qmail.sh \
> ${PREFIX}/etc/rc.d/01.drweb-qmail.sh-dist
${CHMOD} 750 ${PREFIX}/etc/rc.d/01.drweb-qmail.sh-dist
.for LANG in ${LANGS}
${MKDIR} ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail
.endfor
.for CONF in ${CONFS}
${SED} 's#%CONFDIR%#${CONFDIR}#g' \
< ${WRKSRC}/usr/local/etc/drweb/${CONF}.conf \
> ${CONFDIR}/${CONF}.conf-dist
${CHMOD} 640 ${CONFDIR}/${CONF}.conf-dist
.if !exists( ${PREFIX}/etc/${PORTNAME}/${CONF}.conf )
${CP} ${CONFDIR}/${CONF}.conf-dist ${CONFDIR}/${CONF}.conf
${CHMOD} 600 ${CONFDIR}/${CONF}.conf
.endif
.endfor
.for LANG in ${LANGS}
.for TMPL in ${TMPLS}
${INSTALL_DATA} ${WRKSRC}/usr/local/etc/drweb/templates/${LANG}/qmail/${TMPL}.msg \
${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg-dist
.if !exists( ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg )
${INSTALL_DATA} -o drweb -g drweb -m 640 ${WRKSRC}/usr/local/etc/drweb/templates/${LANG}/qmail/${TMPL}.msg \
${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg
.endif
.endfor
.endfor
${CP} ${WRKSRC}/usr/local/drweb/doc/qmail/*.txt \
${DOC_DIR}/qmail/
${CP} ${WRKSRC}/usr/local/drweb/doc/qmail/read* \
${DOC_DIR}/qmail/
post-install:
@${ECHO}
@${CAT} ${PKGMESSAGE}
@${ECHO}
@${ECHO} "Read documentation about additional QMail tuning needed"
@${ECHO} "in ${DOCSDIR}."
@${ECHO}
.include <bsd.port.post.mk>
|