diff options
Diffstat (limited to 'mail/prayer/Makefile')
-rw-r--r-- | mail/prayer/Makefile | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/mail/prayer/Makefile b/mail/prayer/Makefile index b15a75db553..a7eec13048d 100644 --- a/mail/prayer/Makefile +++ b/mail/prayer/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2004/01/29 00:02:03 heinz Exp $ +# $NetBSD: Makefile,v 1.14 2004/02/28 23:50:59 heinz Exp $ # DISTNAME= prayer-1.0.8 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= mail www MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/ @@ -10,31 +10,42 @@ MAINTAINER= abs@NetBSD.org HOMEPAGE= http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/ COMMENT= Small, fast, web mail interface -PKG_GROUPS= prayer - USE_BUILDLINK2= YES USE_PKGINSTALL= YES USE_GNU_TOOLS+= make USE_PERL5= build +PRAYER_USER= prayer +PRAYER_GROUP= prayer +PKG_GROUPS= ${PRAYER_GROUP} +PKG_USERS= ${PRAYER_USER}:${PRAYER_GROUP} MAKE_ENV+= EGDIR="${EGDIR}" MAKE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}" MAKE_ENV+= BUILDLINK_PREFIX.db4="${BUILDLINK_PREFIX.db4}" MAKE_ENV+= BUILDLINK_PREFIX.imap-uw="${BUILDLINK_PREFIX.imap-uw}" +MAKE_ENV+= SSLCERTS="${SSLCERTS}" PKG_SYSCONFSUBDIR= prayer -EGDIR= ${PREFIX}/share/examples/prayer +EGDIR= ${PREFIX}/share/examples/prayer + +RCD_SCRIPTS= prayer +RCD_SCRIPT_SRC.prayer= ${FILESDIR}/prayer.rc 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 -pre-install: - ${INSTALL_DATA_DIR} ${EGDIR} +VAR_PREFIX= /var/spool/prayer + +OWN_DIRS+= ${EGDIR} +OWN_DIRS_PERMS+=${VAR_PREFIX} ${PRAYER_USER} ${PRAYER_GROUP} 0750 + +FILES_SUBST+= OPSYS="${OPSYS}" +FILES_SUBST+= VAR_PREFIX="${VAR_PREFIX}" -post-install: - ${FIND} ${PREFIX}/share/prayer -name CVS -type d -print | ${SORT} -r | \ +post-patch: + ${FIND} ${WRKSRC} -name CVS -type d -print | ${SORT} -r | \ ${XARGS} ${RM} -r .include "../../databases/db4/buildlink2.mk" |