Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/tpop3d/
Date: Mon, 18 Feb 2019 21:19:30
Message-Id: 1550524747.8c50341cc8ee978403e2e99fbf38b9c9a2748e64.grknight@gentoo
1 commit: 8c50341cc8ee978403e2e99fbf38b9c9a2748e64
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 18 21:19:07 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 18 21:19:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c50341c
7
8 net-mail/tpop3d: Revbump for EAPI and dependency change
9
10 Non-maintainer commit
11
12 Bug: https://bugs.gentoo.org/666000
13 Package-Manager: Portage-2.3.61, Repoman-2.3.12
14 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
15
16 net-mail/tpop3d/tpop3d-1.5.5-r1.ebuild | 94 ++++++++++++++++++++++++++++++++++
17 1 file changed, 94 insertions(+)
18
19 diff --git a/net-mail/tpop3d/tpop3d-1.5.5-r1.ebuild b/net-mail/tpop3d/tpop3d-1.5.5-r1.ebuild
20 new file mode 100644
21 index 00000000000..f467cb37e32
22 --- /dev/null
23 +++ b/net-mail/tpop3d/tpop3d-1.5.5-r1.ebuild
24 @@ -0,0 +1,94 @@
25 +# Copyright 1999-2019 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit flag-o-matic autotools
31 +
32 +DESCRIPTION="An extensible POP3 server with vmail-sql/MySQL support"
33 +HOMEPAGE="https://savannah.nongnu.org/projects/tpop3d/"
34 +SRC_URI="mirror://nongnu/tpop3d/${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="authexternal debug flatfile gdbm ldap maildir mbox mysql offensive
40 + pam passwd perl postgres +sha1 shadow ssl tcpd"
41 +
42 +RDEPEND="sha1? ( >=dev-libs/openssl-0.9.6:0= )
43 + ssl? ( >=dev-libs/openssl-0.9.6:0= )
44 + ldap? ( >=net-nds/openldap-2.0.7 )
45 + mysql? ( dev-db/mysql-connector-c:0= )
46 + postgres? ( dev-db/postgresql[server] )
47 + perl? ( >=dev-lang/perl-5.6.1 )
48 + pam? ( virtual/pam
49 + >=net-mail/mailbase-0.00-r8 )
50 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
51 +
52 +DEPEND="${RDEPEND}"
53 +
54 +PATCHES=( "${FILESDIR}/${PN}-1.5.4-gold.patch" )
55 +
56 +src_prepare() {
57 + default
58 + eautoreconf
59 +}
60 +
61 +src_configure() {
62 + local myconf=""
63 + local noauth=0
64 +
65 + # Various authentication methods
66 + use authexternal && myconf="${myconf} --enable-auth-other"
67 + use flatfile && myconf="${myconf} --enable-auth-flatfile"
68 + use gdbm && myconf="${myconf} --enable-auth-gdbm"
69 + use ldap && myconf="${myconf} --enable-auth-ldap"
70 + use mysql && myconf="${myconf} --enable-auth-mysql --with-mysql-lib-dir=$(mysql_config --variable=pkglibdir)"
71 + use pam || myconf="${myconf} --disable-auth-pam"
72 + use passwd && myconf="${myconf} --enable-auth-passwd"
73 + use perl && myconf="${myconf} --enable-auth-perl"
74 + use postgres && myconf="${myconf} --enable-auth-pgsql"
75 + use shadow && myconf="${myconf} --enable-auth-passwd --enable-shadow-passwords"
76 +
77 + use authexternal || use flatfile || use gdbm || use ldap || use mysql ||
78 + use pam || use passwd || use perl || use postgres || use shadow ||
79 + noauth=1
80 +
81 + if [[ ${noauth} -eq 1 ]]; then
82 + ewarn "None of tpop3d's authentication mechanism USE flags are set."
83 + ewarn "As a result tpop3d will be built with /etc/passwd authentication only."
84 + myconf="${myconf} --enable-auth-passwd"
85 + fi
86 +
87 + # Other optional features
88 + use debug && myconf="${myconf} --enable-backtrace"
89 + use maildir && myconf="${myconf} --enable-mbox-maildir"
90 + use mbox || myconf="${myconf} --disable-mbox-bsd"
91 + use offensive || myconf="${myconf} --disable-snide-comments"
92 + use sha1 || myconf="${myconf} --disable-sha1-passwords"
93 + use ssl && myconf="${myconf} --enable-tls"
94 + use tcpd && myconf="${myconf} --enable-tcp-wrappers"
95 +
96 + econf ${myconf}
97 +
98 + # Causes crash with "stack smashing attack" on connect, because of bug in
99 + # SSP (bug #115285)
100 + filter-flags -fstack-protector
101 +}
102 +
103 +src_install() {
104 + default
105 + dodir /etc/tpop3d
106 +
107 + if use pam ; then
108 + dodir /etc/pam.d
109 + dosym pop3 /etc/pam.d/tpop3d
110 + fi
111 +
112 + newinitd "${FILESDIR}/${PN}-1.5.4.init" tpop3d
113 +}
114 +
115 +pkg_postinst() {
116 + elog "Read the tpop3d.conf manpage"
117 + elog "Please create /etc/tpop3d/tpop3d.conf to fit your configuration"
118 +}