1 |
commit: 4f24163bf1e2145f36eb2183b91bd553770b4945 |
2 |
Author: Matthew Ogilvie <mmogilvi+gnto <AT> zoho <DOT> com> |
3 |
AuthorDate: Thu Oct 24 01:39:58 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 5 22:14:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f24163b |
7 |
|
8 |
net-mail/poppassd_ceti: bump 1.8.7, EAPI=7 |
9 |
|
10 |
In addition to 1.8.7 changes from upstream, the changes |
11 |
compared to 1.8.5-r2 include: |
12 |
- Change to EAPI=7. |
13 |
- LICENSE=GPL-2+ (Although strictly speaking the "or later version" |
14 |
terminology was only added upstream after the 1.8.7 tarball was cut.) |
15 |
- Drop the xinetd RDEPEND, and document it (and the sudo |
16 |
alternative) using readme.gentoo-r1.eclass |
17 |
|
18 |
Bug: https://bugs.gentoo.org/696252 |
19 |
Signed-off-by: Matthew Ogilvie <mmogilvi+gnto <AT> zoho.com> |
20 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
21 |
|
22 |
net-mail/poppassd_ceti/Manifest | 1 + |
23 |
net-mail/poppassd_ceti/poppassd_ceti-1.8.7.ebuild | 61 +++++++++++++++++++++++ |
24 |
2 files changed, 62 insertions(+) |
25 |
|
26 |
diff --git a/net-mail/poppassd_ceti/Manifest b/net-mail/poppassd_ceti/Manifest |
27 |
index b69052218de..5edcaf737ef 100644 |
28 |
--- a/net-mail/poppassd_ceti/Manifest |
29 |
+++ b/net-mail/poppassd_ceti/Manifest |
30 |
@@ -1 +1,2 @@ |
31 |
DIST poppassd-1.8.5.tar.gz 6054 BLAKE2B f97c908a3880aa9ddb76ce09f33046649dfa2d145c8d8d5b70f1a7b473ba2ba8901b62d8e0644187c5987e3c4c8257c8f2bee9504b98bf3d81035e0acda4522c SHA512 4d8d9c3b15b986bd34e5e459f654e8137019a2466b9fec001d9e61a3267b09f150c3faee8e6914d98742c7b3a7301271ba522ee6dff614cca97815a3ae241ae9 |
32 |
+DIST poppassd-ceti-1.8.7.tar.xz 71400 BLAKE2B ca26f7298a8f679c595a9cd66622f1e8ddeff80a7b1655df91a7a15668337112113806d0aef788a374c483cbc957e765b178428d839da2c853ebf87e16039548 SHA512 d50549a4f6bdd9eac7fa74a7787e47dbffff14da883d4e8e23e24802883761c1a392b8a7fbffe5fa726845f48b3b33e0dbc1743ad2d689a4d396c91d0a42f8f1 |
33 |
|
34 |
diff --git a/net-mail/poppassd_ceti/poppassd_ceti-1.8.7.ebuild b/net-mail/poppassd_ceti/poppassd_ceti-1.8.7.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..2ec3e4e92f2 |
37 |
--- /dev/null |
38 |
+++ b/net-mail/poppassd_ceti/poppassd_ceti-1.8.7.ebuild |
39 |
@@ -0,0 +1,61 @@ |
40 |
+# Copyright 1999-2019 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit pam readme.gentoo-r1 |
46 |
+ |
47 |
+# Long ago it was just "poppassd", but upstream now seems to have |
48 |
+# settled on "poppassd-ceti" (instead of "poppassd_ceti" or no suffix). |
49 |
+MY_PN="poppassd-ceti" |
50 |
+MY_P="${MY_PN}-${PV}" |
51 |
+S=${WORKDIR}/${MY_P} |
52 |
+ |
53 |
+DESCRIPTION="Password change daemon with PAM support" |
54 |
+HOMEPAGE="https://github.com/kravietz/poppassd-ceti" |
55 |
+SRC_URI="https://github.com/kravietz/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz" |
56 |
+ |
57 |
+# Strictly speaking the "or later version" clarification was only |
58 |
+# added upstream after 1.8.7: |
59 |
+LICENSE="GPL-2+" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~x86" |
62 |
+ |
63 |
+DEPEND="sys-libs/pam" |
64 |
+RDEPEND="${DEPEND}" |
65 |
+ |
66 |
+FORCE_PRINT_ELOG=1 # possibly remove in the next bump |
67 |
+DISABLE_AUTOFORMATTING=1 |
68 |
+DOC_CONTENTS="poppassd is installed, but has to be run as root to work. |
69 |
+ |
70 |
+Most commonly a front end would require sys-apps/xinetd and connect to |
71 |
+port 106: For this, edit /etc/xinetd.d/poppassd, install sys-apps/xinetd, |
72 |
+and start the xinetd service. |
73 |
+ |
74 |
+Alternatively, a front end may be able to run it directly (if already |
75 |
+root), or might use app-admin/sudo. To use sudo, you'll need to configure |
76 |
+/etc/sudoers with something similar to: |
77 |
+ |
78 |
+ apache ALL=(ALL) NOPASSWD: /usr/sbin/poppassd |
79 |
+ |
80 |
+See also README.md.bz2 for related configuration and security |
81 |
+considerations. |
82 |
+" |
83 |
+ |
84 |
+src_install() { |
85 |
+ dodoc README.md |
86 |
+ readme.gentoo_create_doc |
87 |
+ |
88 |
+ pamd_mimic_system poppassd auth account password |
89 |
+ |
90 |
+ insinto /etc/xinetd.d |
91 |
+ newins "${FILESDIR}"/poppassd.xinetd poppassd |
92 |
+ |
93 |
+ exeinto /usr/sbin |
94 |
+ exeopts -o root -g bin -m 500 |
95 |
+ doexe poppassd |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ readme.gentoo_print_elog |
100 |
+} |