blob: 20c84beb7be84944df226bf382cd86cc052c68df (
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
|
# New ports collection makefile for: prayer
# Date created: 27 Dez 2003
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= prayer
PORTVERSION= 1.0.16
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/
MAINTAINER= ports@FreeBSD.org
COMMENT= Prayer Webmail System
BUILD_DEPENDS= ${LOCALBASE}/lib/libc-client4.a:${PORTSDIR}/mail/cclient
.if !defined(PRAYER_WITHOUT_SESSION_CACHE)
LIB_DEPENDS+= ${BERKELEYDB_LIB}:${PORTSDIR}/${BERKELEYDB_PORT}
.endif
USE_OPENLDAP= yes
USE_GMAKE= yes
USE_OPENSSL= yes
USE_PERL5_BUILD= yes
MAKE_ENV+= PORTCFLAGS="${CFLAGS}"
BERKELEYDB_PORT?= databases/db42
BERKELEYDB_LIB?= db-4.2
DOCS= ACCOUNTD CMD_LINE DESIGN DONE DONE-OLD FEATURES ICONLIST \
INSTALL LOGS NOTICE README ROADMAP SECURITY TODO URL_OPTIONS
pre-patch:
${CP} ${WRKSRC}/defaults/Config ${WRKSRC}/Config
do-configure:
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/prayer.sh \
> ${WRKSRC}/prayer.sh
.if defined(PRAYER_WITHOUT_SESSION_CACHE)
${REINPLACE_CMD} \
-e 's|SESSION_CACHE_ENABLE = true |SESSION_CACHE_ENABLE = false|' \
-e 's|/usr/local/prayer|${PREFIX}/prayer|' \
${WRKSRC}/Config
.endif
pre-install:
if ! pw groupshow prayer; then pw groupadd prayer; fi
if ! pw usershow prayer; then pw useradd prayer -g prayer \
-h - -d /nonexistent -s /nonexistent -c "Prayer Webmail"; fi
${MKDIR} ${PREFIX}/prayer
${INSTALL_SCRIPT} ${WRKSRC}/prayer.sh \
${LOCALBASE}/etc/rc.d/prayer.sh.sample
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>
|