blob: 5c8003d820d347d19b9f34be0f26a3de23c9a27c (
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
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
|
# Created by: chris@shagged.org
# $FreeBSD$
PORTNAME= tpop3d
PORTVERSION= 1.5.5
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= SAVANNAH
MAINTAINER= ports@FreeBSD.org
COMMENT= Virtual-domain capable POP3 server supporting MySQL, PgSQL etc auth
USES= ssl
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib -lcrypto
CONFIGURE_ARGS= --enable-auth-other \
--enable-tcp-wrappers \
--enable-tls \
--with-openssl-root=${OPENSSLBASE} \
--with-mailspool-directory=/var/mail
OPTIONS_DEFINE= LDAP PERLAUTH PASSWDAUTH FLATAUTH GDBMAUTH MAILDIR MBOXINDICES DRAC FIX_PERLAUTH DOCS
OPTIONS_RADIO= DB
OPTIONS_RADIO_DB= MYSQL PGSQL
DB_DESC= Authentication database
PERLAUTH_DESC= Use Perl authentication
PASSWDAUTH_DESC= Use /etc/passwd authentication
FLATAUTH_DESC= Use /etc/passwd-style flat file authentication
GDBMAUTH_DESC= Use authentication against GNU dbm files
MAILDIR_DESC= Compile Maildir support
MBOXINDICES_DESC= Save Mbox indices
DRAC_DESC= DRAC RFC for POP-before-SMTP relaying
FIX_PERLAUTH_DESC= Only try it if perl-auth coredumps
DRAC_CONFIGURE_ENABLE= drac
MAILDIR_CONFIGURE_ENABLE= mbox-maildir
PERLAUTH_CONFIGURE_ENABLE= auth-perl
FLATAUTH_CONFIGURE_ENABLE= auth-flatfile
GDBMAUTH_CONFIGURE_ENABLE= auth-gdbm
PASSWDAUTH_CONFIGURE_ENABLE= auth-passwd
MBOXINDICES_CONFIGURE_ENABLE= mbox-bsd-save-indices
DRAC_BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:mail/drac
GDBMAUTH_CPPFLAGS= -I${LOCALBASE}/include
GDBMAUTH_LIB_DEPENDS= libgdbm.so:databases/gdbm
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_ON= --enable-auth-mysql \
--with-mysql-lib-dir=${LOCALBASE}/lib/mysql \
--with-mysql-include-dir=${LOCALBASE}/include/mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --enable-auth-pgsql \
--with-pgsql-lib-dir=${LOCALBASE}/lib \
--with-pgsql-include-dir=${LOCALBASE}/include
LDAP_USE= OPENLDAP=yes
LDAP_CONFIGURE_ON= --enable-auth-ldap --with-openldap-root=${LOCALBASE}
PERLAUTH_USES= perl5
FIX_PERLAUTH_EXTRA_PATCHES=${PATCHDIR}/extra-patch-auth_perl.c
USE_RC_SUBR= tpop3d
DEFAULT_CONFIG= ${PREFIX}/etc/tpop3d.conf.sample
PORTDOCS= CHANGES CREDITS FAQ HACKING INSTALL PORTABILITY \
README README.POP-before-SMTP README.auth_mysql TODO
post-patch:
@${REINPLACE_CMD} '/^CFLAGS/ s, -g -O2,,' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} 's,/etc/tpop3d,${PREFIX}/etc/tpop3d,g' \
${WRKSRC}/tpop3d.conf.5 ${WRKSRC}/tpop3d.8
do-install:
${INSTALL_DATA} ${FILESDIR}/tpop3d.conf.dist \
${STAGEDIR}${DEFAULT_CONFIG}
${INSTALL_MAN} ${WRKSRC}/tpop3d.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/tpop3d.8 ${STAGEDIR}${MANPREFIX}/man/man8
${INSTALL_PROGRAM} ${WRKSRC}/tpop3d ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|