blob: 19ef1eb70d46d90c1273bd5d9cc419378b7d7472 (
plain)
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
|
# Created by: Alexander Logvinov <info@logvinov.com>
# $FreeBSD$
PORTNAME= mdpop3d
PORTVERSION= 0.97
CATEGORIES= mail
MASTER_SITES= ftp://ftp.corpit.ru/home/mjt/mdpop3d/
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple and small POP3 daemon implementation with Maildir support
PLIST_FILES= libexec/mdpop3d
MAN8= mdpop3d.8
MANCOMPRESSED= no
OPTIONS_DEFINE= PAM APOP
APOP_DESC= Build with APOP command support (requires PAM)
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|LIBS = -lpam -ldl|LIBS = -lpam|;/^CC[[:blank:]]*=/d' \
${WRKSRC}/Makefile
.if ! ${PORT_OPTIONS:MPAM}
@${REINPLACE_CMD} -e 's|LIBS = -lpam|LIBS = -lcrypt|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|DEFS = -DUSE_PAM|#DEFS = -DUSE_PAM|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \
${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MAPOP}
@${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \
${WRKSRC}/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/mdpop3d.8 ${PREFIX}/man/man8
.include <bsd.port.mk>
|