summaryrefslogtreecommitdiffstats
path: root/mail/qmail-rblchk/Makefile
blob: da240b26124a14426f84ad2cbc0af102dc1e9157 (plain)
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
# New ports collection makefile for:	qmail-rblchk
# Date created:				21 Jun 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	qmail-rblchk
PORTVERSION=	2.4.1
CATEGORIES=	mail
MASTER_SITES=	http://morettoni.net/qmail/ \
		http://critical.ch/distfiles/ \
		http://energy.critical.ch/distfiles/

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	A qmail RBL filter

USE_QMAIL_RUN=	yes

LDFLAGS?=	-s
CFLAGS?=	-O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
		-Wshadow -Wcast-qual -Wcast-align -Wwrite-strings

WRKSRC=		${WRKDIR}/${PORTNAME}

ALL_TARGET=	default
INSTALL_TARGET=	setup

PLIST_FILES=	bin/qmail-rblchk bin/getsenderip \
		%%EXAMPLESDIR%%/spam-report.sh %%EXAMPLESDIR%%/rbllist.sh \
		%%EXAMPLESDIR%%/dot-qmail-storeip
PLIST_DIRS=	%%EXAMPLESDIR%%
MAN1=		qmail-rblchk.1 getsenderip.1

post-patch:
	@${REINPLACE_CMD} -e '/"cat/d; s|,02755|,0755|' ${WRKSRC}/hier.c

do-configure:
	${PRINTF}   "${PREFIX}\n\n.../bin.\n"	> ${WRKSRC}/conf-home
	${ECHO_CMD} "${CC} ${CFLAGS}"		> ${WRKSRC}/conf-cc
	${ECHO_CMD} "${CC} ${LDFLAGS}"		> ${WRKSRC}/conf-ld

post-install:
	${MKDIR} ${EXAMPLESDIR}
.for f in rbllist.sh spam-report.sh dot-qmail-storeip
	${INSTALL_DATA} ${WRKSRC}/contrib/${f} ${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud