aboutsummaryrefslogtreecommitdiffstats
path: root/mail/teapop-devel/Makefile
blob: 1a40f56e8efa5eafadd29ef3c8f8404d0eddc797 (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
# New ports collection makefile for:    teapop-devel
# Date created:             7/08/2003
# Whom:                 sheepkiller@cultdeadsheep.org
#
# $FreeBSD$
#

PORTNAME=   teapop
PORTVERSION=    20030414
CATEGORIES= mail ipv6
MASTER_SITES=   ftp://ftp.toontown.org/pub/teapop/snapshots/ \
        http://www.toontown.org/pub/teapop/snapshots/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Yet another RFC1939 compliant POP3 server

GNU_CONFIGURE=      yes
CONFIGURE_ARGS=     --enable-flock

LATEST_LINK=    teapop-devel

##
## Available knobs:
## General options
##   WITHOUT_IPV6: disable IPv6 support
##   WITH_TCPWRAPPERS: enable the use of tcp_wrappers
##   WITHOUT_APOP: don't allow users to authenticate with APOP
##   WITHOUT_VPOP: don't support virtual domains
##   WITH_DRAC: enable support for DRAC
##   WITH_POPAUTHFILE: enable support for a popauth file
##   POPAUTH_FILE: popauth file name (default : ${PREFIX}/etc/teapop.popauth)

POPAUTH_FILE?=      ${PREFIX}/etc/teapop.popauth

.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=    --enable-ipv6
.endif

.if defined(WITH_TCPWRAPPERS)
CONFIGURE_ARGS+=    --enable-tcp_wrappers
.endif

.if defined(WITHOUT_APOP)
CONFIGURE_ARGS+=    --disable-apop
.endif

.if defined(WITHOUT_VPOP)
CONFIGURE_ARGS+=    --disable-vpop
.endif

.if defined(WITH_DRAC)
BUILD_DEPENDS+=     ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif

.if defined(WITH_POPAUTHFILE)
CONFIGURE_ARGS+=    --enable-popauth-file=${POPAUTH_FILE}
.endif

MAN8=       teapop.8

##
## Authentication backend
##   WITH_OPENLDAP: add support for authentication through OpenLDAP server
##   WITH_MYSQL: enable support for authentication from MySQL database
##   WITH_PGSQL: enable support for authentication from PostgreSQL database
##

.if defined(WITH_PGSQL)
USE_PGSQL=      YES
CONFIGURE_ARGS+=    --with-pgsql
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=      YES
CONFIGURE_ARGS+=    --with-mysql
.endif

.if defined(WITH_OPENLDAP)
USE_OPENLDAP=       YES
CONFIGURE_ARGS+=    --with-ldap=openldap
.endif

show-options:
    @${SED} -ne 's/^##//p' ${.CURDIR}/Makefile

post-install:
    @${ECHO_MSG} ""
    @${ECHO_MSG} "------------------------------------------------------------------------"
    @${ECHO_MSG} "===> Be sure to copy ${LOCALBASE}/etc/teapop.passwd.sample to"
    @${ECHO_MSG} "===> ${LOCALBASE}/etc/teapop.passwd before using teapop"
    @${ECHO_MSG} "------------------------------------------------------------------------"
    @${ECHO_MSG} ""

.include <bsd.port.mk>