diff options
author | Dean Bailey <alron@gentoo.org> | 2003-02-10 02:32:00 +0000 |
---|---|---|
committer | Dean Bailey <alron@gentoo.org> | 2003-02-10 02:32:00 +0000 |
commit | d8a2beee8e379ac7ca55e0a5c361881699c340b2 (patch) | |
tree | dbc3e65a365b11ba741575fbc46b6f73e99cada6 /net-mail/vimap | |
parent | menu entry fixes (diff) | |
download | historical-d8a2beee8e379ac7ca55e0a5c361881699c340b2.tar.gz historical-d8a2beee8e379ac7ca55e0a5c361881699c340b2.tar.bz2 historical-d8a2beee8e379ac7ca55e0a5c361881699c340b2.zip |
initial import of vimap, a modified uw-imap with Linuxconf style Virtual Domain support.
Diffstat (limited to 'net-mail/vimap')
20 files changed, 245 insertions, 0 deletions
diff --git a/net-mail/vimap/ChangeLog b/net-mail/vimap/ChangeLog new file mode 100644 index 000000000000..09ba9db096a4 --- /dev/null +++ b/net-mail/vimap/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for net-mail/vimap +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/ChangeLog,v 1.1 2003/02/10 02:32:00 alron Exp $ + +*vimap-2001a (09 Feb 2003) + + 09 Feb 2003; Dean Bailey <alron@gentoo.org> vimap-2001a : + Initial import. Based some of the config off of current uw-imap + ebuilds. The other half of the config is from the srpm on the + vimap website. This ebuild includes many patches by redhat for + their uw-imap rpm. Support for maildir and mbox was removed. + Support for gss (kerberos) was enabled on machines with krb5 + installed. This provides all of the same deps that uw-imap does. + Also added xinetd as a dep, as one can not use this package as + an imap server without it. diff --git a/net-mail/vimap/files/digest-vimap-2001a b/net-mail/vimap/files/digest-vimap-2001a new file mode 100644 index 000000000000..b752e9d05f97 --- /dev/null +++ b/net-mail/vimap/files/digest-vimap-2001a @@ -0,0 +1 @@ +MD5 42c5c8d049c209b15513a4f6ebba34d2 imap-2001a.tar.Z 1959777 diff --git a/net-mail/vimap/files/flock.c.bz2 b/net-mail/vimap/files/flock.c.bz2 Binary files differnew file mode 100644 index 000000000000..a62374ca5a8a --- /dev/null +++ b/net-mail/vimap/files/flock.c.bz2 diff --git a/net-mail/vimap/files/imap-2000-krbpath.patch.bz2 b/net-mail/vimap/files/imap-2000-krbpath.patch.bz2 Binary files differnew file mode 100644 index 000000000000..7c922f65f3a7 --- /dev/null +++ b/net-mail/vimap/files/imap-2000-krbpath.patch.bz2 diff --git a/net-mail/vimap/files/imap-2000-linux.patch.bz2 b/net-mail/vimap/files/imap-2000-linux.patch.bz2 Binary files differnew file mode 100644 index 000000000000..e26299b02a78 --- /dev/null +++ b/net-mail/vimap/files/imap-2000-linux.patch.bz2 diff --git a/net-mail/vimap/files/imap-2000-time.patch.bz2 b/net-mail/vimap/files/imap-2000-time.patch.bz2 Binary files differnew file mode 100644 index 000000000000..c9871f6a87a5 --- /dev/null +++ b/net-mail/vimap/files/imap-2000-time.patch.bz2 diff --git a/net-mail/vimap/files/imap-2000c-redhat-flock.patch.bz2 b/net-mail/vimap/files/imap-2000c-redhat-flock.patch.bz2 Binary files differnew file mode 100644 index 000000000000..b3f6785e5961 --- /dev/null +++ b/net-mail/vimap/files/imap-2000c-redhat-flock.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-boguswarning.patch.bz2 b/net-mail/vimap/files/imap-2001a-boguswarning.patch.bz2 Binary files differnew file mode 100644 index 000000000000..fa0d2571a590 --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-boguswarning.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-gentoo-version.patch.bz2 b/net-mail/vimap/files/imap-2001a-gentoo-version.patch.bz2 Binary files differnew file mode 100644 index 000000000000..9b83d1a84eb0 --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-gentoo-version.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-mbox-disable.patch.bz2 b/net-mail/vimap/files/imap-2001a-mbox-disable.patch.bz2 Binary files differnew file mode 100644 index 000000000000..b6af8b5e2f86 --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-mbox-disable.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-overflow.patch.bz2 b/net-mail/vimap/files/imap-2001a-overflow.patch.bz2 Binary files differnew file mode 100644 index 000000000000..0d3194ca7dab --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-overflow.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-timeout.patch.bz2 b/net-mail/vimap/files/imap-2001a-timeout.patch.bz2 Binary files differnew file mode 100644 index 000000000000..b206528369ab --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-timeout.patch.bz2 diff --git a/net-mail/vimap/files/imap-2001a-virtual.patch.bz2 b/net-mail/vimap/files/imap-2001a-virtual.patch.bz2 Binary files differnew file mode 100644 index 000000000000..74b3996baa4a --- /dev/null +++ b/net-mail/vimap/files/imap-2001a-virtual.patch.bz2 diff --git a/net-mail/vimap/files/uw-imap.pam-system-auth b/net-mail/vimap/files/uw-imap.pam-system-auth new file mode 100644 index 000000000000..49417a435f94 --- /dev/null +++ b/net-mail/vimap/files/uw-imap.pam-system-auth @@ -0,0 +1,6 @@ +#%PAM-1.0 +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-imap.pam-system-auth,v 1.1 2003/02/10 02:32:00 alron Exp $ +auth required pam_nologin.so +auth required pam_stack.so service=system-auth +account required pam_stack.so service=system-auth +session required pam_stack.so service=system-auth diff --git a/net-mail/vimap/files/uw-imap.xinetd b/net-mail/vimap/files/uw-imap.xinetd new file mode 100644 index 000000000000..7409e5879fff --- /dev/null +++ b/net-mail/vimap/files/uw-imap.xinetd @@ -0,0 +1,15 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-imap.xinetd,v 1.1 2003/02/10 02:32:00 alron Exp $ +# 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/vimap/files/uw-imaps.xinetd b/net-mail/vimap/files/uw-imaps.xinetd new file mode 100644 index 000000000000..fbdec675b782 --- /dev/null +++ b/net-mail/vimap/files/uw-imaps.xinetd @@ -0,0 +1,16 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-imaps.xinetd,v 1.1 2003/02/10 02:32:00 alron Exp $ +# 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/vimap/files/uw-ipop2.xinetd b/net-mail/vimap/files/uw-ipop2.xinetd new file mode 100644 index 000000000000..b519767f57ce --- /dev/null +++ b/net-mail/vimap/files/uw-ipop2.xinetd @@ -0,0 +1,16 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-ipop2.xinetd,v 1.1 2003/02/10 02:32:00 alron Exp $ +# 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/vimap/files/uw-ipop3.xinetd b/net-mail/vimap/files/uw-ipop3.xinetd new file mode 100644 index 000000000000..dd907e6e03f7 --- /dev/null +++ b/net-mail/vimap/files/uw-ipop3.xinetd @@ -0,0 +1,15 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-ipop3.xinetd,v 1.1 2003/02/10 02:32:00 alron Exp $ +# 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/vimap/files/uw-ipop3s.xinetd b/net-mail/vimap/files/uw-ipop3s.xinetd new file mode 100644 index 000000000000..c0c683be54a9 --- /dev/null +++ b/net-mail/vimap/files/uw-ipop3s.xinetd @@ -0,0 +1,15 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/files/uw-ipop3s.xinetd,v 1.1 2003/02/10 02:32:00 alron Exp $ +# description: The POP3S service allows remote users to access their mail \ +# using an POP3 client with SSL support such as \ +# Netscape Communicator, mutt, kmail, or fetchmail. +service pop3s +{ + 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/vimap/vimap-2001a.ebuild b/net-mail/vimap/vimap-2001a.ebuild new file mode 100644 index 000000000000..6fa66624df4f --- /dev/null +++ b/net-mail/vimap/vimap-2001a.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/vimap/vimap-2001a.ebuild,v 1.1 2003/02/10 02:32:00 alron Exp $ + +PN0=imap +S=${WORKDIR}/${PN0}-${PV} +DESCRIPTION="Linuxconf style virtual domain patched 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/ http://vimap.sf.net/" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~sparc " +IUSE="ssl kerberos" + +PROVIDE="virtual/imapd" +DEPEND="!net-mail/uw-imap + virtual/glibc + >=sys-libs/pam-0.72 + >=sys-apps/xinetd-2.3.3 + ssl? ( dev-libs/openssl ) + kerberos? ( app-crypt/krb5 )" + +src_unpack() { + unpack ${A} + + # Set CFLAGS + cd ${S}/src/osdep/unix/ + cp Makefile Makefile.orig + sed \ + -e "s:-g -fno-omit-frame-pointer -O6:${CFLAGS}:" \ + -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \ + -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \ + < Makefile.orig > Makefile + cd ${S} + + bzcat ${FILESDIR}/imap-2001a-timeout.patch.bz2 | patch -p1 \ + || die "patch 1 failed" + + bzcat ${FILESDIR}/imap-2000-linux.patch.bz2 | patch -p1 \ + || die "patch 2 failed" + + bzcat ${FILESDIR}/imap-2001a-mbox-disable.patch.bz2 | patch -p0 \ + || die "patch 3 failed" + + if use kerberos; then + bzcat ${FILESDIR}/imap-2000-krbpath.patch.bz2 | patch -p1 \ + || die "patch 4 failed" + fi + + bzcat ${FILESDIR}/imap-2000c-redhat-flock.patch.bz2 | patch -p1 \ + || die "patch 5 failed" + + bzcat ${FILESDIR}/imap-2001a-overflow.patch.bz2 | patch -p1 \ + || die "patch 6 failed" + + bzcat ${FILESDIR}/imap-2001a-gentoo-version.patch.bz2 | patch -p0 \ + || die "patch 7 failed" + + bzcat ${FILESDIR}/imap-2001a-boguswarning.patch.bz2 | patch -p0 \ + || die "patch 8 failed" + + bzcat ${FILESDIR}/imap-2000-time.patch.bz2 | patch -p1 \ + || die "patch 9 failed" + + bzcat ${FILESDIR}/imap-2001a-virtual.patch.bz2 | patch -p1 \ + || die "patch 10 failed" + + bzcat ${FILESDIR}/flock.c.bz2 > src/osdep/unix/flock.c \ + || die "patch 11 failed" +} + +src_compile() { + cd ${S} + EXTRACFLAGS=" -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 \ + -DDISABLE_REVERSE_DNS_LOOKUP" + if use ssl; then + EXTRACFLAGS=" ${EXTRACFLAGS} -I/usr/include/openssl" + SSLFLAGTHINGS="SPECIALAUTHENTICATORS=ssl SSLTYPE=unix" + fi + if use kerberos; then + EXTRACFLAGS=" ${EXTRACFLAGS} -I/usr/include/kerberosIV" + KRBFLAGTHINGS="EXTRAAUTHENTICATORS=gss" + fi + make lnv EXTRACFLAGS="${EXTRACFLAGS}" ${KRBFLAGTHINGS} ${SSLFLAGTHINGS} \ + || die + if use ssl; then + 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 + fi +} + +src_install() { + into /usr + dosbin imapd/imapd ipopd/ipop?d + + if use ssl; then + dodir /etc/ssl/certs + mv imapd.pem ${D}/etc/ssl/certs + mv ipop3d.pem ${D}/etc/ssl/certs + fi + + insinto /usr/include/imap + doins c-client/{c-client,mail,imap4r1,rfc822,linkage,misc,smtp,nntp}.h + doins c-client/{osdep,env_unix,env,fs,ftl,nl,tcp}.h + dolib.a c-client/c-client.a + dosym /usr/lib/c-client.a /usr/lib/libc-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-system-auth imap + newins ${FILESDIR}/uw-imap.pam-system-auth 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-ipop3s.xinetd ipop3s + newins ${FILESDIR}/uw-imaps.xinetd imaps +} |