mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
2b3df78ed1
- Add LICENSE - Fix build with new utmpx - Convert to OptionsNG PR: ports/172243 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
# Created by: Anton Lysenok <bart@tapolsky.net.ua>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= smfsav
|
|
PORTVERSION= 1.4.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF/smfs
|
|
DISTNAME= smf-sav-${PORTVERSION}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Sendmail Sender Address Validator
|
|
|
|
LICENSE= GPLv2
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USE_RC_SUBR= smfsav
|
|
|
|
CPPFLAGS+= -D_REENTRANT ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -lmilter ${PTHREAD_LIBS}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTDOCS= CHANGES README
|
|
PLIST_FILES= sbin/smfsav \
|
|
etc/smfsav.conf-dist
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/readme
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c \
|
|
${LDFLAGS})
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} \
|
|
&& ${INSTALL_PROGRAM} smf-sav ${PREFIX}/sbin/smfsav \
|
|
&& ${INSTALL_DATA} smf-sav.conf ${PREFIX}/etc/smfsav.conf-dist)
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
(cd ${WRKSRC} \
|
|
&& ${INSTALL_DATA} ChangeLog ${DOCSDIR}/CHANGES \
|
|
&& ${INSTALL_DATA} readme ${DOCSDIR}/README)
|
|
.endif
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|