summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Goodyear <g2boojum@gentoo.org>2002-02-23 18:06:44 +0000
committerGrant Goodyear <g2boojum@gentoo.org>2002-02-23 18:06:44 +0000
commitba2776e719fb5858f48da65ab2153e205e673560 (patch)
treef4893a93d9dfb2703109b204ed85f8e61b64888f /net-mail/uw-imap
parentunmask xfree-4.2.0-r6 (diff)
downloadgentoo-2-ba2776e719fb5858f48da65ab2153e205e673560.tar.gz
gentoo-2-ba2776e719fb5858f48da65ab2153e205e673560.tar.bz2
gentoo-2-ba2776e719fb5858f48da65ab2153e205e673560.zip
New, long-needed ebuild for UW-imap. Thanks to cfuga. Closes bug #783.
Diffstat (limited to 'net-mail/uw-imap')
-rw-r--r--net-mail/uw-imap/ChangeLog9
-rw-r--r--net-mail/uw-imap/files/digest-uw-imap-2001a1
-rw-r--r--net-mail/uw-imap/files/uw-imap.pam4
-rw-r--r--net-mail/uw-imap/files/uw-imap.xinetd14
-rw-r--r--net-mail/uw-imap/files/uw-imaps.xinetd15
-rw-r--r--net-mail/uw-imap/files/uw-ipop2.xinetd14
-rw-r--r--net-mail/uw-imap/files/uw-ipop3.xinetd14
-rw-r--r--net-mail/uw-imap/uw-imap-2001a.ebuild87
8 files changed, 158 insertions, 0 deletions
diff --git a/net-mail/uw-imap/ChangeLog b/net-mail/uw-imap/ChangeLog
new file mode 100644
index 000000000000..1635d705741a
--- /dev/null
+++ b/net-mail/uw-imap/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/ChangeLog,v 1.1 2002/02/23 18:06:44 g2boojum Exp $
+
+*uw-imap-2001a (23 Feb. 2002)
+
+ 22 Feb 2002; Grant Goodyear <g2boojum@gentoo.org> :
+
+ New ebuild. Thanks to CFuga.
diff --git a/net-mail/uw-imap/files/digest-uw-imap-2001a b/net-mail/uw-imap/files/digest-uw-imap-2001a
new file mode 100644
index 000000000000..b752e9d05f97
--- /dev/null
+++ b/net-mail/uw-imap/files/digest-uw-imap-2001a
@@ -0,0 +1 @@
+MD5 42c5c8d049c209b15513a4f6ebba34d2 imap-2001a.tar.Z 1959777
diff --git a/net-mail/uw-imap/files/uw-imap.pam b/net-mail/uw-imap/files/uw-imap.pam
new file mode 100644
index 000000000000..196657df9389
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imap.pam
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth required pam_pwdb.so shadow nullok
+account required pam_pwdb.so
+session required pam_pwdb.so
diff --git a/net-mail/uw-imap/files/uw-imap.xinetd b/net-mail/uw-imap/files/uw-imap.xinetd
new file mode 100644
index 000000000000..959a45573bc1
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imap.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The IMAP service allows remote users to access their mail using \
+# an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
+# Communicator.
+service imap2
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/imapd
+ log_on_success += DURATION USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/files/uw-imaps.xinetd b/net-mail/uw-imap/files/uw-imaps.xinetd
new file mode 100644
index 000000000000..8fb2f3500a78
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-imaps.xinetd
@@ -0,0 +1,15 @@
+# default: off
+# description: The IMAPS service allows remote users to access their mail \
+# using an IMAP client with SSL support such as Netscape \
+# Communicator or fetchmail.
+service imaps
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/imapd
+ log_on_success += DURATION USERID
+ log_on_failure += USERID
+ disable = yes
+}
+
diff --git a/net-mail/uw-imap/files/uw-ipop2.xinetd b/net-mail/uw-imap/files/uw-ipop2.xinetd
new file mode 100644
index 000000000000..2f52c4604bd5
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-ipop2.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The POP2 service allows remote users to access their mail \
+# using an POP2 client such as fetchmail. In most cases, clients \# support POP3 instead of POP2, so enabling this service is rarely \
+# necessary.
+service pop-2
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/ipop2d
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/files/uw-ipop3.xinetd b/net-mail/uw-imap/files/uw-ipop3.xinetd
new file mode 100644
index 000000000000..60acaf219cf2
--- /dev/null
+++ b/net-mail/uw-imap/files/uw-ipop3.xinetd
@@ -0,0 +1,14 @@
+# default: off
+# description: The POP3 service allows remote users to access their mail \
+# using an POP3 client such as Netscape Communicator, mutt, \
+# or fetchmail.
+service pop-3
+{
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/ipop3d
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/uw-imap/uw-imap-2001a.ebuild b/net-mail/uw-imap/uw-imap-2001a.ebuild
new file mode 100644
index 000000000000..fc23b8e78062
--- /dev/null
+++ b/net-mail/uw-imap/uw-imap-2001a.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Cristian Martinez <cfuga@itam.mx>
+# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/uw-imap-2001a.ebuild,v 1.1 2002/02/23 18:06:44 g2boojum Exp $
+
+PN0=imap
+S=${WORKDIR}/${PN0}-${PV}
+DESCRIPTION="UW server daemons for IMAP and POP network mail protocols."
+SRC_URI="ftp://ftp.cac.washington.edu/${PN0}/${PN0}-${PV}.tar.Z"
+HOMEPAGE="http://www.washington.edu/imap/"
+
+DEPEND="virtual/glibc
+ >=sys-libs/pam-0.72
+ ssl? ( dev-libs/openssl )"
+
+PROVIDE="virtual/imapd"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/src/osdep/unix/
+ sed "s:-g -fno-omit-frame-pointer -O6:${CFLAGS}:" Makefile > Makefile.bak
+ mv Makefile.bak Makefile
+}
+
+src_compile() {
+ if use ssl; then
+ make lnp SPECIALAUTHENTICATORS=ssl SSLTYPE=unix SSLDIR=/usr/ssl \
+ SSLINCLUDE=/usr/include/openssl || die
+ local i
+ for i in imapd ipop3d; do
+ umask 077
+ PEM1=`/bin/mktemp ${T}/openssl.XXXXXX`
+ PEM2=`/bin/mktemp ${T}/openssl.XXXXXX`
+ /usr/bin/openssl req -newkey rsa:1024 -keyout $$PEM1 \
+ -nodes -x509 -days 365 -out $$PEM2 << EOF
+--
+SomeState
+SomeCity
+SomeOrganization
+SomeOrganizationalUnit
+localhost.localdomain
+root@localhost.localdomain
+EOF
+
+ cat $$PEM1 > ${i}.pem
+ echo "" >> ${i}.pem
+ cat $$PEM2 >> ${i}.pem
+ rm $$PEM1 $$PEM2
+ umask 022
+ done
+ else
+ make lnp || die
+ fi
+}
+
+src_install() {
+ into /usr
+ dosbin imapd/imapd ipopd/ipop?d
+
+ if use ssl; then
+ mkdir -p ${D}/usr/ssl/certs
+ mv imapd.pem ${D}/usr/ssl/certs
+ mv ipop3d.pem ${D}/usr/ssl/certs
+ fi
+
+ insinto /usr/include
+ doins c-client/{mail,imap4r1,rfc822,linkage}.h
+ dolib.a c-client/c-client.a
+
+ doman src/ipopd/ipopd.8c src/imapd/imapd.8c
+
+ dodoc CPYRIGHT README docs/*.txt docs/CONFIG docs/FAQ docs/RELNOTES
+
+ docinto rfc
+ dodoc docs/rfc/*.txt
+
+ # gentoo config stuff
+ insinto /etc/pam.d
+ newins ${FILESDIR}/uw-imap.pam imap
+ newins ${FILESDIR}/uw-imap.pam pop
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/uw-imap.xinetd imap
+ newins ${FILESDIR}/uw-ipop2.xinetd ipop2
+ newins ${FILESDIR}/uw-ipop3.xinetd ipop3
+ newins ${FILESDIR}/uw-imaps.xinetd imaps
+
+}