blob: 8555e84381b9bf3535c75ff8dda765b05d9d3409 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$
PORTNAME= drac
PORTVERSION= 1.12
PORTREVISION= 9
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/ \
http://atreides.freenix.no/~anders/ \
ftp://totem.fix.no/pub/mirrors/misc/
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= Dynamic Relay Authorization Control, a POP-before-SMTP implementation
PLIST_FILES= sbin/rpc.dracd include/drac.h lib/libdrac.a \
etc/dracd.allow-sample
USE_CSTD= gnu89
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DB DOCS
OPTIONS_RADIO= MUA
OPTIONS_RADIO_MUA= POSTFIX EXIM
POSTFIX_DESC= Use POSTFIX
EXIM_DESC= Use EXIM
DB_DESC= Use database with POSTFIX
.include <bsd.port.options.mk>
DEFS= -DWITH_TI_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
.if ${PORT_OPTIONS:MPOSTFIX}
DEFS+= -DTERM_KD
RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix
.if ${PORT_OPTIONS:MDB}
USE_BDB= 41+
.endif
.elif ${PORT_OPTIONS:MEXIM}
DEFS+= -DTERM_KD -DREQ_HASH -DCIDR_KEY
RUN_DEPENDS+= exim:${PORTSDIR}/mail/exim
.endif
NO_WRKSUBDIR= yes
USE_RC_SUBR= dracd
.if ${PORT_OPTIONS:MDOCS}
PLIST_FILES+= man/man3/dracauth.3.gz man/man1/rpc.dracd.1.gz
.endif
.if defined(WITH_TI_RPC)
DEFS+= -DTI_RPC
.else
DEFS+= -DSOCK_RPC
.endif
.if defined(WITH_FOREGROUND)
DEFS+= -DRPC_SVC_FG
.endif
MAKE_ARGS+= DEFS="${DEFS}"
pre-everything::
.if ${PORT_OPTIONS:MIPV6}
@${ECHO_MSG} "============================================================="
@${ECHO_MSG} "It is IPv6 non-correspondence."
@${ECHO_MSG} "After it understands, it is possible to use it with IPv4."
@${ECHO_MSG} "============================================================="
@${ECHO_MSG}
.endif
@${ECHO_MSG} "============================================================="
@${ECHO_MSG} "For databases compatible with other MTAs than sendmail, use:"
@${ECHO_MSG}
@${ECHO_MSG} "mail/postfix"
@${ECHO_MSG} "mail/exim"
@${ECHO_MSG}
@${ECHO_MSG} "Define WITH_FOREGROUND to make the rpc.dracd daemon stay in"
@${ECHO_MSG} "foreground instead of detaching itself. This breaks the"
@${ECHO_MSG} "startup script."
@${ECHO_MSG} "============================================================="
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${STAGEDIR}${PREFIX}/sbin/
@${INSTALL_DATA} ${WRKSRC}/drac.h ${STAGEDIR}${PREFIX}/include/
@${INSTALL_DATA} ${WRKSRC}/libdrac.a ${STAGEDIR}${PREFIX}/lib/
@${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample \
${STAGEDIR}${PREFIX}/etc/
.if ${PORT_OPTIONS:MDOCS}
@${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${STAGEDIR}${PREFIX}/man/man3/
@${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m \
${STAGEDIR}${PREFIX}/man/man1/rpc.dracd.1
.endif
.include <bsd.port.mk>
|