blob: ac966fbf569ba200f4372a6b6bdfd6f5939d93fa (
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
54
|
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= milter-callback
PORTVERSION= 1.5.10
CATEGORIES= mail
MASTER_SITES= http://unix.zhegan.in/distfiles/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Milter to perform a envelope-from sender verification on target MX
LICENSE= GPLv3
USE_BZIP2= yes
USE_RC_SUBR= milter-callback
SUB_FILES= pkg-message
MAN8= milter-callback.8
# make sure flat distfile gets extracted in ${WRKSRC}
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC}; ${TAR} -xf - --no-same-owner \
--no-same-permissions -C ${WRKSRC})
OPTIONS_DEFINE= SPF
SPF_DESC= libspf support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSPF}
MAKE_ENV+= WITH_SPF=yes
LIB_DEPENDS+= spf2.3:${PORTSDIR}/mail/libspf2
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
${WRKSRC}/${PORTNAME}.c
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/var/tmp/|/var/run/|' \
${WRKSRC}/${PORTNAME}.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
${MKDIR} ${PREFIX}/etc/mail
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${PREFIX}/etc/mail/${PORTNAME}.conf.sample
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|