aboutsummaryrefslogtreecommitdiffstats
path: root/mail/milter-regex/Makefile
blob: f4f4ef6840493830c3324b34f14b2b2cd77616b4 (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
# New ports collection makefile for:    milter-regex
# Date created:             2003-10-03
# Whom:                 trevor
#
# based on the OpenBSD port by Daniel Hartmeier (dhartmei on OpenBSD.org)
# $FreeBSD$
#

PORTNAME=   milter-regex
PORTVERSION=    1.6
PORTREVISION=   2
CATEGORIES= mail
MASTER_SITES=   http://www.benzedrine.cx/

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Milter plugin to sendmail for regular expression filtering

DIST_SUBDIR=    repacked
MAILUSER?=  mailnull
MAN8=       milter-regex.8
PLIST_FILES=    libexec/milter-regex
USE_RC_SUBR=    milterregex.sh
SPOOLDIR?=  /var/run/milter-regex
SUB_LIST=   SPOOLDIR=${SPOOLDIR}

.include <bsd.port.pre.mk>

.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"

post-patch:
    @${REINPLACE_CMD} -e \
        "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
        s:/var/spool/milter-regex:${SPOOLDIR}:g; \
        s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c
    @${REINPLACE_CMD} -e \
        "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
        s:/var/spool/milter-regex:${SPOOLDIR}:g; \
        s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8
    @${REINPLACE_CMD} -e "s:-lpthread:${PTHREAD_LIBS}:g; \
        s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g; \
        s:-L/usr/local/lib:-L${LOCALBASE}/lib:g; \
        s/-Werror//g"  ${WRKSRC}/Makefile

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${PREFIX}/libexec
    @${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8
    @${INSTALL} -d -o ${MAILUSER} -g daemon -m 0700 ${SPOOLDIR}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
an title='2012-10-01 16:50:35 +0800'>2012-10-011-12721/+14828 * Updated Lithuanian translationŽygimantas Beručka2012-09-301-1688/+2608 * [l10n] Updated Catalan (Valencian) translationCarles Ferrando2012-09-261-7130/+7220 * [l10n] Updated Catalan translationGil Forcada2012-09-261-7101/+7402 * Added uk translationDaniel Korostil2012-09-261-440/+416 * Updated Czech translation by Jiri EischmannPetr Kovar2012-09-241-6863/+7249 * Updated Danish translationFlemming Christensen2012-09-241-7038/+7338 * Updated gujarati fileSweta Kothari2012-09-241-23/+106 * Updated Finnish translation by Jiri Grönroos.Timo Jyrinki2012-09-241-7019/+9055 * Updated Malayalam fileAni Peter2012-09-231-358/+310 * Updated Malayalam fileAni Peter2012-09-231-342/+185 * Updated Malayalam fileAni Peter2012-09-231-10743/+9497 * Updated gujarati fileSweta Kothari2012-09-231-103/+66 * Assamese translation updatedNilamdyuti Goswami2012-09-221-964/+727 * Assamese translation updatedNilamdyuti Goswami2012-09-221-187/+109 * Updated gujarati fileSweta Kothari2012-09-221-14/+41 * Assamese translation updatedNilamdyuti Goswami2012-09-211-8052/+7886 * Updated Telugu TranslationsKrishnababu Krothapalli2012-09-211-3695/+3846 * Updated gujarati fileSweta Kothari2012-09-211-27/+16 * Updated gujarati fileSweta Kothari2012-09-211-115/+65 * Updated translation for Odia.ManojKumar Giri2012-09-211-12427/+13552 * Updated kn translationShankar Prasad2012-09-201-16/+75 * Updated Russian translationYuri Myasoedov2012-09-201-928/+684 * Updated gujarati fileSweta Kothari2012-09-201-2/+2 * Updated gujarati fileSweta Kothari2012-09-201-193/+121 * Updated kn translationShankar Prasad2012-09-201-144/+182 * Updated kn translationShankar Prasad2012-09-201-10754/+10612 * Updated kn translationShankar Prasad2012-09-201-29/+77 * update Punjabi TranslationA S Alam2012-09-191-1121/+853 * Updated Bulgarian translationKrasimir Chonov2012-09-191-6855/+7393 * Updated kn translationShankar Prasad2012-09-191-247/+213 * Updated gujarati fileSweta Kothari2012-09-181-1338/+1219 * Updated Russian translationYuri Myasoedov2012-09-181-49/+32 * Updated kn translationShankar Prasad2012-09-181-332/+562 * Updated Brazilian Portuguese translation, reviewed by Djavan Fagundes <djavan...Rafael Ferreira2012-09-181-8471/+5714 * Updated Slovenian translationMatej Urbančič2012-09-181-2553/+696 * uk updateDaniel Korostil2012-09-181-6847/+7198 * Updated kn translationShankar Prasad2012-09-171-11244/+10709 * Updated kn translationShankar Prasad2012-09-171-427/+425 * Updated Latvian translationRūdolfs Mazurs2012-09-171-8523/+8620 * Updated Spanish translationDaniel Mustieles2012-09-161-565/+564 * Updated Hungarian translationGabor Kelemen2012-09-16