684f385358
- Bump portrevision Notified by: Luca Morettoni <luca@morettoni.net> (author)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# New ports collection makefile for: qmail-rblchk
|
|
# Date created: 21 Jun 2005
|
|
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qmail-rblchk
|
|
PORTVERSION= 2.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://morettoni.net/qmail/
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= A qmail RBL filter
|
|
|
|
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
|
|
|
LDFLAGS?= -s
|
|
CFLAGS?= -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
|
|
-Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
QMAIL_DIR?= /var/qmail
|
|
|
|
ALL_TARGET= default
|
|
INSTALL_TARGET= setup
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
PLIST_FILES= bin/qmail-rblchk %%EXAMPLESDIR%%/spam-report.sh \
|
|
%%EXAMPLESDIR%%/rbllist.sh
|
|
PLIST_DIRS= %%EXAMPLESDIR%%
|
|
MAN1= qmail-rblchk.1
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/"cat/d' ${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
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/${f} ${EXAMPLESDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|