1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/mail/smfsav/Makefile
Dirk Meyer 6058705eb9 - bump MILTER_SOVER to fix linking on FREEBSD-12
- bump PORTREVISION on ports using libmilter
- rename WITH_SENDMAIL_PORT to WITH_MILTER_PORT
- rename WITH_SENDMAIL_BASE to WITH_MILTER_BASE
- rename WITH_SENDMAIL_STATIC_MILTER to WITH_MILTER_STATIC
- cleanup ifdefs
- fix build on batv-filter with libmilter from ports
2018-07-01 10:17:18 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Anton Lysenok <bart@tapolsky.net.ua>
# $FreeBSD$
PORTNAME= smfsav
PORTVERSION= 1.4.0
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= SF/smfs
DISTNAME= smf-sav-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= sasaki@fcc.ad.jp
COMMENT= Sendmail Sender Address Validator
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USERS= smfs
GROUPS= smfs
OPTIONS_DEFINE= DOCS
USE_RC_SUBR= smfsav
CPPFLAGS+= -D_REENTRANT
LDFLAGS+= -lmilter -lpthread
SMFSAV_RUN_DIR?=/var/run/smfs
PLIST_SUB= SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
SUB_FILES+= pkg-message
CONFLICTS= smfsav-devel
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.c
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.conf
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/smf-sav ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/smf-sav.conf ${STAGEDIR}${PREFIX}/etc/smf-sav.conf.sample
@${MKDIR} ${STAGEDIR}${SMFSAV_RUN_DIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog readme ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>