mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
58471a55f7
- devel/lua-stdlib-debug - devel/lua-stdlib-normalize - mail/smfsav - mail/smfsav-devel PR: 258617 258618 258619 258620 Approved by: maintainer, meta (mentor), ygy (mentor) Differential Revision: https://reviews.freebsd.org/D32173
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Anton Lysenok <bart@tapolsky.net.ua>
|
|
|
|
PORTNAME= smfsav
|
|
PORTVERSION= 2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://smf-sav.anw.at/
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= smf-sav-reloaded-${PORTVERSION}
|
|
|
|
MAINTAINER= sasaki12@gmail.com
|
|
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
|
|
SUB_LIST= SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
|
|
|
|
CONFLICTS= smfsav
|
|
|
|
.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>
|