summaryrefslogtreecommitdiff
path: root/mail/solid-pop3d/Makefile
blob: f241d043369f8561b8467813f806c08a565b8c9f (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
# $NetBSD: Makefile,v 1.4 2006/03/04 21:30:02 jlam Exp $

DISTNAME=		solid-pop3d-0.15
CATEGORIES=		mail
MASTER_SITES=		http://solidpop3d.pld.org.pl/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://solidpop3d.pld.org.pl/
COMMENT=		Flexible POP3 server

EGDIR=			${PREFIX}/share/examples/spop3d
MESSAGE_SUBST+=		EGDIR=${EGDIR}

PLIST_SRC=
EXAMPLES=

GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--enable-logextend	\
			--enable-statistics

BUILD_DEFS+=		USE_INET6

.if defined(SPOP3D_ENABLE_APOP)
CONFIGURE_ARGS+=	--enable-apop
PLIST_SRC+=		${.CURDIR}/PLIST.apop
.endif

.if defined(SPOP3D_ENABLE_STANDALONE)
CONFIGURE_ARGS+=	--enable-standalone
CONFIGURE_ARGS+=	--enable-connect
.endif

.if defined(SPOP3D_ENABLE_ALIASES)
CONFIGURE_ARGS+=	--enable-mapping
CONFIGURE_ARGS+=	--enable-nonip
.endif

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

EXAMPLES+=		config.example

PLIST_SRC+=		${.CURDIR}/PLIST

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	cd ${WRKSRC}/doc; for i in ${EXAMPLES}; do			\
		${INSTALL_DATA} $${i} ${EGDIR}/$${i};			\
	done
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/solid-pop3d
.for i in AUTHORS CONFIGFILE COPYING ChangeLog INSTALL README THANKS VIRTUALS
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/solid-pop3d
.endfor

.include "../../mk/bsd.pkg.mk"