summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorveego <veego>2000-08-25 12:35:40 +0000
committerveego <veego>2000-08-25 12:35:40 +0000
commita7d438e823edfa131b794afbdeaea8bb10e4a408 (patch)
tree8c7879894d2c49b71783ae3d1486b3d043f91abf /mail
parenta5ada5a7a4d339244f0573915fcafc4f11dbb0a3 (diff)
downloadpkgsrc-a7d438e823edfa131b794afbdeaea8bb10e4a408.tar.gz
This version is based on the one in pkgsrc/mail/cyrus but needs cyrus-sasl
and works.
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd/Makefile87
-rw-r--r--mail/cyrus-imapd/files/md53
-rw-r--r--mail/cyrus-imapd/pkg/COMMENT1
-rw-r--r--mail/cyrus-imapd/pkg/DEINSTALL28
-rw-r--r--mail/cyrus-imapd/pkg/DESCR11
-rw-r--r--mail/cyrus-imapd/pkg/INSTALL49
-rw-r--r--mail/cyrus-imapd/pkg/PLIST58
7 files changed, 237 insertions, 0 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile
new file mode 100644
index 00000000000..ee64e119e28
--- /dev/null
+++ b/mail/cyrus-imapd/Makefile
@@ -0,0 +1,87 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/08/25 12:35:40 veego Exp $
+
+DISTNAME= cyrus-imapd-1.6.24
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://asg.web.cmu.edu/cyrus/imapd/
+
+DEPENDS+= tcl-8.0.5:../../lang/tcl80
+DEPENDS+= cyrus-sasl-1.5.24:../../mail/cyrus-sasl
+
+ONLY_FOR_PLATFORM= NetBSD-1.5*-* \
+ SunOS-*-*
+
+USE_PERL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS+= --with-cyrus-prefix=${PREFIX}/cyrus
+CONFIGURE_ARGS+= --with-statedir=/var/run
+CONFIGURE_ARGS+= --enable-netscapehack
+CONFIGURE_ARGS+= --with-auth=unix
+CONFIGURE_ARGS+= --without-krb
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
+CPPFLAGS+=-I${PREFIX}/include/cyrus-sasl
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+CYRUS_USER?= cyrus
+CYRUS_GROUP?= mail
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+= --with-cyrus-user=${CYRUS_USER}
+CONFIGURE_ARGS+= --with-cyrus-group=${CYRUS_GROUP}
+
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/krb5/com_err.h)
+CPPFLAGS+=-I/usr/include/krb5
+.endif
+
+.if defined(KERBEROS) && ${KERBEROS} == 4
+USE_KERBEROS= yes
+CONFIGURE_ARGS+= --with-login=krb
+.endif
+
+.if !exists(/usr/include/openssl/rc4.h)
+DEPENDS+= openssl-0.9.*:../../security/openssl
+CPPFLAGS+=-I${PREFIX}/include
+.endif
+
+.if ${OPSYS} == "NetBSD"
+.if exists(/usr/sbin/user)
+ADDUSER= /usr/sbin/useradd
+ADDGROUP= /usr/sbin/groupadd
+.else
+DEPENDS+= user>=20000313:../../sysutils/user
+ADDUSER= ${LOCALBASE}/sbin/useradd
+ADDGROUP= ${LOCALBASE}/sbin/groupadd
+.endif
+.elif ${OPSYS} == "SunOS"
+ADDUSER= useradd
+ADDGROUP= groupadd
+.endif
+
+pre-install:
+ ${SED} -e 's|@CYUSER@|${CYRUS_USER}|g' \
+ -e 's|@CYGROUP@|${CYRUS_GROUP}|g' \
+ < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
+ ${SED} -e 's|@CYUSER@|${CYRUS_USER}|g' \
+ -e 's|@CYGROUP@|${CYRUS_GROUP}|g' \
+ -e 's|@ADDUSER@|${ADDUSER}|g' \
+ -e 's|@ADDGROUP@|${ADDGROUP}|g' \
+ -e 's|@CHGRP@|${CHGRP}|g' \
+ -e 's|@ID@|${ID}|g' \
+ -e 's|@TOUCH@|${TOUCH}|g' \
+ -e 's|@RM@|${RM}|g' \
+ < ${PKGDIR}/INSTALL > ${INSTALL_FILE}
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
+
+# Deliver must be executable by all on machines with local
+# users sending to cyrus mailboxes.
+
+#post-install:
+# @${CHMOD} a+rx ${PREFIX}/cyrus/bin/deliver
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/cyrus-imapd/files/md5 b/mail/cyrus-imapd/files/md5
new file mode 100644
index 00000000000..870d7470d57
--- /dev/null
+++ b/mail/cyrus-imapd/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/08/25 12:35:40 veego Exp $
+
+MD5 (cyrus-imapd-1.6.24.tar.gz) = 490a246e787581e0bbc558788ff5f562
diff --git a/mail/cyrus-imapd/pkg/COMMENT b/mail/cyrus-imapd/pkg/COMMENT
new file mode 100644
index 00000000000..72cc6f0fc69
--- /dev/null
+++ b/mail/cyrus-imapd/pkg/COMMENT
@@ -0,0 +1 @@
+IMAP server
diff --git a/mail/cyrus-imapd/pkg/DEINSTALL b/mail/cyrus-imapd/pkg/DEINSTALL
new file mode 100644
index 00000000000..8cd8ddfeb97
--- /dev/null
+++ b/mail/cyrus-imapd/pkg/DEINSTALL
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2000/08/25 12:35:40 veego Exp $
+#
+
+PKGNAME=$1
+STAGE=$2
+
+USER=@CYUSER@
+GROUP=@CYUSER@
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ cat << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want to
+remove the \`${USER}' user and in some cases also the \`${GROUP}' group.
+===========================================================================
+EOF
+ ;;
+*)
+ echo "Unexpected argument: $2"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/mail/cyrus-imapd/pkg/DESCR b/mail/cyrus-imapd/pkg/DESCR
new file mode 100644
index 00000000000..b0ebd2f8d05
--- /dev/null
+++ b/mail/cyrus-imapd/pkg/DESCR
@@ -0,0 +1,11 @@
+Cyrus IMAP Server
+
+IMAP (Internet Message Access Protocol) is an Internet
+standards-track protocol for accessing messages (mail,
+bboards, news, etc). The Cyrus IMAP server differs from
+other IMAP server implementations in that it is generally
+intended to be run on "sealed" servers, where normal users
+are not permitted to log in. The mailbox database is stored
+in parts of the filesystem that are private to the Cyrus
+IMAP system. All user access to mail is through the IMAP,
+POP3, or KPOP protocols.
diff --git a/mail/cyrus-imapd/pkg/INSTALL b/mail/cyrus-imapd/pkg/INSTALL
new file mode 100644
index 00000000000..24c582c7ba0
--- /dev/null
+++ b/mail/cyrus-imapd/pkg/INSTALL
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2000/08/25 12:35:40 veego Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+CYUSER=@CYUSER@
+CYGROUP=@CYGROUP@
+ADDUSER=@ADDUSER@
+ADDGROUP=@ADDGROUP@
+CHGRP=@CHGRP@
+ID=@ID@
+TOUCH=@TOUCH@
+RM=@RM@
+
+case ${STAGE} in
+PRE-INSTALL)
+ # Group... the default's shipped with NetBSD
+ # We need to check that ${CYGROUP} exists before adding the user.
+ #
+ ${TOUCH} "/tmp/grouptestcyrus.$$"
+ ${CHGRP} ${CYGROUP} "/tmp/grouptestcyrus.$$" >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ echo "Group '${CYGROUP}' already exists...proceeding."
+ else
+ echo "Creating '${CYGROUP}' group..."
+ ${ADDGROUP} ${CYGROUP}
+ echo "Done."
+ fi
+ ${RM} -f "/tmp/grouptestcyrus.$$"
+
+ ${ID} ${CYUSER} >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ echo "User '${CYUSER}' already exists...proceeding."
+ else
+ echo "Creating '${CYUSER}' user..."
+ ${ADDUSER} -c "Amanda User" -g ${CYGROUP} -s /bin/sh ${CYUSER}
+ echo "Done."
+ fi
+ ;;
+POST-INSTALL)
+ ;;
+*)
+ echo "Unexpected argument: $2"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/mail/cyrus-imapd/pkg/PLIST b/mail/cyrus-imapd/pkg/PLIST
new file mode 100644
index 00000000000..1a4b7099ed9
--- /dev/null
+++ b/mail/cyrus-imapd/pkg/PLIST
@@ -0,0 +1,58 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/08/25 12:35:40 veego Exp $
+bin/cyradm
+bin/imtest
+bin/installsieve
+cyrus/bin/arbitron
+cyrus/bin/collectnews
+cyrus/bin/deliver
+cyrus/bin/dump_deliverdb
+cyrus/bin/feedcyrus
+cyrus/bin/fud
+cyrus/bin/imapd
+cyrus/bin/mbpath
+cyrus/bin/pop3d
+cyrus/bin/quota
+cyrus/bin/reconstruct
+cyrus/bin/syncnews
+cyrus/bin/timsieved
+include/cyrus/acl.h
+include/cyrus/assert.h
+include/cyrus/auth.h
+include/cyrus/bsearch.h
+include/cyrus/charset.h
+include/cyrus/glob.h
+include/cyrus/gmtoff.h
+include/cyrus/imclient.h
+include/cyrus/imparse.h
+include/cyrus/lock.h
+include/cyrus/map.h
+include/cyrus/mkgmtime.h
+include/cyrus/nonblock.h
+include/cyrus/parseaddr.h
+include/cyrus/prot.h
+include/cyrus/retry.h
+include/cyrus/sysexits.h
+include/cyrus/util.h
+include/cyrus/xmalloc.h
+lib/libcyrus.a
+man/man1/cyradm.1
+man/man1/imtest.1
+man/man1/installsieve.1
+man/man3/imclient.3
+man/man5/imapd.conf.5
+man/man5/krb.equiv.5
+man/man8/arbitron.8
+man/man8/collectnews.8
+man/man8/deliver.8
+man/man8/fud.8
+man/man8/imapd.8
+man/man8/mbpath.8
+man/man8/pop3d.8
+man/man8/quota.8
+man/man8/reconstruct.8
+man/man8/rmnews.8
+man/man8/syncnews.8
+man/man8/timsieved.8
+@dirrm include/cyrus
+@dirrm cyrus/bin
+@dirrm cyrus