aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd/Makefile
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1997-05-30 19:59:08 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1997-05-30 19:59:08 +0000
commit01fcaa015cc13b34f8a4f5ecb351e324de1dc7f4 (patch)
treea7d87ec66315e9feca1319e37caefe95830a50a4 /mail/cyrus-imapd/Makefile
parentfdf92566aae93cb377cd51fe14875e9924b68de0 (diff)
downloadports-01fcaa015cc13b34f8a4f5ecb351e324de1dc7f4.tar.gz
ports-01fcaa015cc13b34f8a4f5ecb351e324de1dc7f4.zip
Notes
Diffstat (limited to 'mail/cyrus-imapd/Makefile')
-rw-r--r--mail/cyrus-imapd/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile
new file mode 100644
index 000000000000..f224f706bf6e
--- /dev/null
+++ b/mail/cyrus-imapd/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: cyrus
+# Version required: 1.5.2
+# Date created: May 4th 1997
+# Whom: jfitz@FreeBSD.ORG
+#
+# $Id$
+#
+
+DISTNAME= cyrus-imapd-v1.5.2
+PKGNAME= cyrus-1.5.2
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
+
+MAINTAINER= jfitz@FreeBSD.ORG
+
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
+ --with-cyrus-group=cyrus
+
+MAN1= cyradm.1
+MAN3= imclient.3
+MAN5= imapd.conf.5
+MAN8= arbitron.8 collectnews.8 cyrquota.8 deliver.8 imapd.8 \
+ pop3d.8 reconstruct.8 rmnews.8 syncnews.8
+
+post-configure:
+ @ ${SETENV} ${MAKE_ENV} /usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/imap/config.c ${WRKSRC}/imap/krbck.c
+
+pre-install:
+ @ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
+ @ ${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/cyrus/html
+ @ ${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
+.for file in acl-extension bugs changes copyrights install overview quota-extension server-design
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/cyrus
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/cyrus/html
+ ${INSTALL_DATA} ${FILESDIR}/imapd.conf ${PREFIX}/etc
+ ${MKDIR} -p -m 750 /var/spool/imap
+ /usr/sbin/chown cyrus.cyrus /var/spool/imap
+ ${MKDIR} -p -m 700 /var/pwcheck
+ /usr/sbin/chown cyrus.cyrus /var/pwcheck
+ ${MKDIR} -p -m 750 ${PREFIX}/etc/imap
+ /usr/sbin/chown cyrus.cyrus ${PREFIX}/etc/imap
+ /usr/bin/touch ${PREFIX}/etc/imap/mailboxes
+ /bin/chmod 640 ${PREFIX}/etc/imap/mailboxes
+ /bin/mkdir -m 750 \
+ ${PREFIX}/etc/imap/user \
+ ${PREFIX}/etc/imap/quota \
+ ${PREFIX}/etc/imap/proc \
+ ${PREFIX}/etc/imap/log \
+ ${PREFIX}/etc/imap/msg
+ /usr/sbin/chown cyrus.cyrus ${PREFIX}/etc/imap/*
+ echo "Installing ${PREFIX}/etc/rc.d/cyrus.sh startup file."; \
+ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/cyrus.sh
+ echo "#" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ echo "" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ echo "if [ -x ${PREFIX}/cyrus/bin/pwcheck ]" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ echo "then" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ echo " ${PREFIX}/cyrus/bin/pwcheck & && echo -n ' pwcheck'" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ echo "fi" >> ${PREFIX}/etc/rc.d/cyrus.sh
+ /bin/chmod 751 ${PREFIX}/etc/rc.d/cyrus.sh
+
+.include <bsd.port.mk>