1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/mail/smfsav/Makefile
Dmitry Marakasov a461483ae2 - Don't override upstream paths
- Replace hardcoded /usr/local by ${PREFIX}
- Add required_files and command_args to rc script
- Fix REINPLACE_CMD args in Makefile

PR:		199081
Submitted by:	sasaki@fcc.ad.jp (maintainer)
2015-06-02 13:47:20 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Anton Lysenok <bart@tapolsky.net.ua>
# $FreeBSD$
PORTNAME= smfsav
PORTVERSION= 1.4.0
PORTREVISION= 2
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
SUB_FILES+= pkg-message
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.mk>