blob: 5efbf5b0849c8f1b2701f8c3a9d4590287032b60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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
NO_STAGE= yes
.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>
|