diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2003-03-14 10:38:02 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2003-03-14 10:38:02 +0000 |
commit | 691c3344e725b13431329570a3edb6b92d08eeb1 (patch) | |
tree | 82ee3d9d916c025490c4ad60702547eaf7038d37 | |
parent | docs gzipped (diff) | |
download | gentoo-2-691c3344e725b13431329570a3edb6b92d08eeb1.tar.gz gentoo-2-691c3344e725b13431329570a3edb6b92d08eeb1.tar.bz2 gentoo-2-691c3344e725b13431329570a3edb6b92d08eeb1.zip |
Security update
-rw-r--r-- | net-mail/qpopper/ChangeLog | 13 | ||||
-rw-r--r-- | net-mail/qpopper/files/digest-qpopper-4.0.5 | 2 | ||||
-rw-r--r-- | net-mail/qpopper/qpopper-4.0.5.ebuild | 119 |
3 files changed, 129 insertions, 5 deletions
diff --git a/net-mail/qpopper/ChangeLog b/net-mail/qpopper/ChangeLog index 15aee386824a..f1d19d1412ee 100644 --- a/net-mail/qpopper/ChangeLog +++ b/net-mail/qpopper/ChangeLog @@ -1,10 +1,13 @@ # ChangeLog for net-mail/qpopper -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# Author: Enrico Morelli <morelli@cerm.unifi.it> -# Maintaniner: José Alberto Suárez López <bass@gentoo.org> +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/ChangeLog,v 1.7 2003/03/14 10:38:02 aliz Exp $ + +*qpopper-4.0.5 (14 Mar 2003) + + 14 Mar 2003; Daniel Ahlberg <aliz@gentoo.org> : + Security update. + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords - -# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/ChangeLog,v 1.6 2003/02/13 20:40:45 vapier Exp $ *qpopper-4.0.4 (20 Jun 2002) diff --git a/net-mail/qpopper/files/digest-qpopper-4.0.5 b/net-mail/qpopper/files/digest-qpopper-4.0.5 new file mode 100644 index 000000000000..a5748117ec15 --- /dev/null +++ b/net-mail/qpopper/files/digest-qpopper-4.0.5 @@ -0,0 +1,2 @@ +MD5 e00853280c9e899711f0b0239d3d8f86 qpopper4.0.5.tar.gz 2281284 +MD5 af01c6fe9f770666dda081ab34a16b50 qpopper-files.tar.bz2 269722 diff --git a/net-mail/qpopper/qpopper-4.0.5.ebuild b/net-mail/qpopper/qpopper-4.0.5.ebuild new file mode 100644 index 000000000000..47ffb6df992b --- /dev/null +++ b/net-mail/qpopper/qpopper-4.0.5.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 + +IUSE="ssl pam" + +S=${WORKDIR}/${PN}${PV} +DESCRIPTION="A POP3 Server" +SRC_URI="ftp://ftp.qualcomm.com/eudora/servers/unix/popper/${PN}${PV}.tar.gz + http://www.ibiblio.org/gentoo/distfiles/qpopper-files.tar.bz2" +HOMEPAGE="http://www.qpopper.org/qpopper/" + +DEPEND="virtual/glibc \ + virtual/mta \ + sys-libs/gdbm \ + sys-apps/xinetd \ + pam? ( >=sys-libs/pam-0.72 ) \ + ssl? ( dev-libs/openssl )" + +SLOT="0" +LICENSE="qpopper | GPL-2" +KEYWORDS="~x86 ~sparc" + +src_compile() { + CO=" --enable-apop=/etc/pop.auth \ + --enable-popuid=pop \ + --enable-log-login \ + --enable-specialauth \ + --enable-log-facility=LOG_MAIL \ + --enable-debugging \ + --enable-uw-kludge-flag \ + --with-gdbm" + + if use ssl; then + if use pam; then + ./configure ${CO} --with-openssl --with-pam=pop3 + else + ./configure ${CO} --with-openssl + fi + 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 > cert.pem + echo "" >> cert.pem + cat $$PEM2 >> cert.pem + make || die + rm $$PEM1 $$PEM2 + umask 022 + + elif use pam; then + ./configure ${CO} --with-pam=pop3 || die + make || die + + else + ./configure ${CO} + make || die + fi +} + +src_install() { + into /usr + dosbin popper/popper popper/popauth + + if use ssl; then + dodir /etc/mail/certs + fowners root.mail /etc/mail/certs + fperms 660 /etc/mail/certs + mv cert.pem ${D}/etc/mail/certs + fperms 600 /etc/mail/certs/cert.pem + fowners root.0 /etc/mail/certs/cert.pem + fi + + doman man/popauth.8 man/poppassd.8 man/popper.8 + + dodoc ${WORKDIR}/GUIDE.pdf + + docinto rfc + dodoc doc/rfc*.txt + + if use pam; then + insinto /etc/pam.d + newins ${WORKDIR}/pop3.pam-system-auth pop3 + fi + + insinto /etc/xinetd.d + newins ${WORKDIR}/pop3.xinetd pop-3 +} + +pkg_postinst () { + einfo "PS. If you use APOP service to authenticate " + einfo "the users you have to follow these steps: " + einfo "" + einfo "1) create a new account named pop" + einfo "2) change the owner and permissions of" + einfo " /usr/sbin/popauth:" + einfo " # chown pop /usr/sbin/popauth" + einfo " # chmod u+s /usr/sbin/popauth" + einfo "3) initialize the authentication database:" + einfo " # popauth -init" + einfo "4) new users can be added by root:" + einfo " # popauth -user <user>" + einfo " or removed:" + einfo " # popauth -delete <user>" + einfo " Other users can add themeselves or change their" + einfo " password with the command popauth" + einfo "5) scripts or other non-interactive processes can add or change" + einfo " the passwords with the following command:" + einfo " # popauth -user <user> <password>" +} |