summaryrefslogtreecommitdiff
path: root/mail/prayer/Makefile
blob: 86798c201f1b75e0834d0e57a95b3cb94b630734 (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
# $NetBSD: Makefile,v 1.29 2006/10/23 08:31:29 rillig Exp $
#

DISTNAME=	prayer-1.0.12
PKGREVISION=	4
CATEGORIES=	mail www
MASTER_SITES=	ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/

MAINTAINER=	abs@NetBSD.org
HOMEPAGE=	http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/
COMMENT=	Small, fast, web mail interface

USE_TOOLS+=	gmake perl
PRAYER_USER=	prayer
PRAYER_GROUP=	prayer
PKG_GROUPS=	${PRAYER_GROUP}
PKG_USERS=	${PRAYER_USER}:${PRAYER_GROUP}

BUILD_DEFS+=	PRAYER_USER PRAYER_GROUP VARBASE

MAKE_ENV+=	EGDIR=${EGDIR:Q}
MAKE_ENV+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
MAKE_ENV+=	BUILDLINK_PREFIX.db4="${BUILDLINK_PREFIX.db4}"
MAKE_ENV+=	BUILDLINK_PREFIX.imap-uw="${BUILDLINK_PREFIX.imap-uw}"
MAKE_ENV+=	SSLCERTS=${SSLCERTS:Q}
MAKE_ENV+=	PRAYER_USER=${PRAYER_USER} PRAYER_GROUP=${PRAYER_GROUP}
MAKE_ENV+=	ROOT_USER=${ROOT_USER} ROOT_GROUP=${ROOT_GROUP}

PKG_SYSCONFSUBDIR=	prayer
EGDIR=			${PREFIX}/share/examples/prayer

RCD_SCRIPTS=		prayer

CONF_FILES=	${EGDIR}/prayer.cf ${PKG_SYSCONFDIR}/prayer.cf
CONF_FILES+=	${EGDIR}/prayer-accountd.cf ${PKG_SYSCONFDIR}/prayer-accountd.cf
CONF_FILES+=	${EGDIR}/motd.html ${PKG_SYSCONFDIR}/motd.html
CONF_FILES+=	${EGDIR}/welcome.html ${PKG_SYSCONFDIR}/welcome.html

VAR_PREFIX=	${VARBASE}/spool/prayer

OWN_DIRS_PERMS+=${VAR_PREFIX} ${PRAYER_USER} ${PRAYER_GROUP} 0750

FILES_SUBST+=	OPSYS=${OPSYS:Q}
FILES_SUBST+=	VAR_PREFIX=${VAR_PREFIX:Q}

post-patch:
	${FIND} ${WRKSRC} -name CVS -type d -print | ${SORT} -r | \
		${XARGS} ${RM} -r

pre-install:
	${INSTALL_DATA_DIR} ${EGDIR}

.include "../../databases/db4/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mail/imap-uw/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/krb5.buildlink3.mk"

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