mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
63f96859ce
bapt contributed to the qmail.mk as well - Trim headers USES= qmail:run will add qmail into RUN_DEPENDS USES= qmail:build will add qmail into BUILD_DEPENDS USES= qmail[:both] will add qmail into both RUN and BUILD DEPENDS USES= qmail:vars will set QMAIL_PREFIX With hat: portmgr
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Emanuel Haupt <ehaupt@critical.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qmail-rblchk
|
|
PORTVERSION= 2.4.1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.morettoni.net/qmail/ \
|
|
CRITICAL
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Qmail RBL filter
|
|
|
|
USES= qmail:run
|
|
|
|
MAKE_JOBS_SAFE= 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>
|