1 |
commit: cfe22fac9212b925f4828568e89ecd21f980ec99 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 23 03:51:51 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 23 03:51:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cfe22fac |
7 |
|
8 |
sys-auth/mrsh: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sys-auth/mrsh/Manifest | 1 + |
14 |
sys-auth/mrsh/files/union-wait-deprecated.diff | 20 ++++++++++++++++ |
15 |
sys-auth/mrsh/metadata.xml | 18 ++++++++++++++ |
16 |
sys-auth/mrsh/mrsh-2.12.ebuild | 33 ++++++++++++++++++++++++++ |
17 |
4 files changed, 72 insertions(+) |
18 |
|
19 |
diff --git a/sys-auth/mrsh/Manifest b/sys-auth/mrsh/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..79e107e |
22 |
--- /dev/null |
23 |
+++ b/sys-auth/mrsh/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST mrsh-2.12.tar.gz 458757 BLAKE2B f7a8a25507eca247814e0cc83730403316d59b1f221fba6bc1abe2f9e86cc083c44dfd886499e60c2ccd13e730204c9d1f0466ad43150bf488950965ce452a63 SHA512 1417197f5c26305287c5f8622800f8f02c5ea0abe1e0c65f9911cda5a3ba466ad75dd8b5120a9c004fbef4086f6627ee805f62801bd0c075e99c8f1298d09135 |
26 |
|
27 |
diff --git a/sys-auth/mrsh/files/union-wait-deprecated.diff b/sys-auth/mrsh/files/union-wait-deprecated.diff |
28 |
new file mode 100644 |
29 |
index 0000000..bcb6376 |
30 |
--- /dev/null |
31 |
+++ b/sys-auth/mrsh/files/union-wait-deprecated.diff |
32 |
@@ -0,0 +1,20 @@ |
33 |
+--- a/mrlogin/mrlogin.c 2016-04-29 19:22:08.000000000 +0200 |
34 |
++++ b/mrlogin/mrlogin.c 2019-10-29 02:25:39.095172149 +0100 |
35 |
+@@ -476,7 +476,7 @@ |
36 |
+ void |
37 |
+ catch_child(int ignore) |
38 |
+ { |
39 |
+- union wait status; |
40 |
++ int status; |
41 |
+ int pid; |
42 |
+ |
43 |
+ (void)ignore; |
44 |
+@@ -487,7 +487,7 @@ |
45 |
+ return; |
46 |
+ /* if the child (reader) dies, just quit */ |
47 |
+ if (pid < 0 || (pid == childpid && !WIFSTOPPED(status))) |
48 |
+- done((int)(status.w_termsig | status.w_retcode)); |
49 |
++ done((int)(WTERMSIG(status) | WEXITSTATUS(status))); |
50 |
+ } |
51 |
+ /* NOTREACHED */ |
52 |
+ } |
53 |
|
54 |
diff --git a/sys-auth/mrsh/metadata.xml b/sys-auth/mrsh/metadata.xml |
55 |
new file mode 100644 |
56 |
index 0000000..68a30cc |
57 |
--- /dev/null |
58 |
+++ b/sys-auth/mrsh/metadata.xml |
59 |
@@ -0,0 +1,18 @@ |
60 |
+<?xml version="1.0" encoding="UTF-8"?> |
61 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
62 |
+<pkgmetadata> |
63 |
+ <maintainer type="person"> |
64 |
+ <email>lssndrbarbieri@×××××.com</email> |
65 |
+ <name>Alessandro Barbieri</name> |
66 |
+ </maintainer> |
67 |
+ <upstream> |
68 |
+ <remote-id type="github">chaos/mrsh</remote-id> |
69 |
+ </upstream> |
70 |
+<longdescription>Mrsh is a set of remote shell programs that use munge authentication |
71 |
+rather than reserved ports for security. The code for mrsh is based |
72 |
+on the source code for rsh, rshd, rlogin, rlogind, and rcp.</longdescription> |
73 |
+ <use> |
74 |
+ <flag name="pam">build with pam support</flag> |
75 |
+ <flag name="shadow">build with shadow file support</flag> |
76 |
+ </use> |
77 |
+</pkgmetadata> |
78 |
|
79 |
diff --git a/sys-auth/mrsh/mrsh-2.12.ebuild b/sys-auth/mrsh/mrsh-2.12.ebuild |
80 |
new file mode 100644 |
81 |
index 0000000..6192a2b |
82 |
--- /dev/null |
83 |
+++ b/sys-auth/mrsh/mrsh-2.12.ebuild |
84 |
@@ -0,0 +1,33 @@ |
85 |
+# Copyright 1999-2020 Gentoo Authors |
86 |
+# Distributed under the terms of the GNU General Public License v2 |
87 |
+ |
88 |
+EAPI="7" |
89 |
+ |
90 |
+inherit systemd |
91 |
+ |
92 |
+DESCRIPTION="Mrsh is a set of remote shell programs that use munge authentication." |
93 |
+HOMEPAGE="https://github.com/chaos/mrsh" |
94 |
+SRC_URI="https://github.com/chaos/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
95 |
+LICENSE="GPL-2" |
96 |
+SLOT="0" |
97 |
+KEYWORDS="~amd64" |
98 |
+IUSE="pam shadow" |
99 |
+DEPEND=" |
100 |
+ sys-auth/munge |
101 |
+ |
102 |
+ pam? ( sys-libs/pam ) |
103 |
+ shadow? ( virtual/shadow ) |
104 |
+" |
105 |
+RDEPEND="${DEPEND}" |
106 |
+ |
107 |
+PATCHES=( "${FILESDIR}/union-wait-deprecated.diff" ) |
108 |
+ |
109 |
+src_configure() { |
110 |
+ local myconf=( |
111 |
+ --disable-static |
112 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
113 |
+ $(use_with pam) |
114 |
+ $(use_with shadow) |
115 |
+ ) |
116 |
+ econf "${myconf[@]}" |
117 |
+} |