mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
sys-auth/mrsh: new package
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sys-auth/mrsh/Manifest
Normal file
1
sys-auth/mrsh/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST mrsh-2.12.tar.gz 458757 BLAKE2B f7a8a25507eca247814e0cc83730403316d59b1f221fba6bc1abe2f9e86cc083c44dfd886499e60c2ccd13e730204c9d1f0466ad43150bf488950965ce452a63 SHA512 1417197f5c26305287c5f8622800f8f02c5ea0abe1e0c65f9911cda5a3ba466ad75dd8b5120a9c004fbef4086f6627ee805f62801bd0c075e99c8f1298d09135
|
||||||
20
sys-auth/mrsh/files/union-wait-deprecated.diff
Normal file
20
sys-auth/mrsh/files/union-wait-deprecated.diff
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
--- a/mrlogin/mrlogin.c 2016-04-29 19:22:08.000000000 +0200
|
||||||
|
+++ b/mrlogin/mrlogin.c 2019-10-29 02:25:39.095172149 +0100
|
||||||
|
@@ -476,7 +476,7 @@
|
||||||
|
void
|
||||||
|
catch_child(int ignore)
|
||||||
|
{
|
||||||
|
- union wait status;
|
||||||
|
+ int status;
|
||||||
|
int pid;
|
||||||
|
|
||||||
|
(void)ignore;
|
||||||
|
@@ -487,7 +487,7 @@
|
||||||
|
return;
|
||||||
|
/* if the child (reader) dies, just quit */
|
||||||
|
if (pid < 0 || (pid == childpid && !WIFSTOPPED(status)))
|
||||||
|
- done((int)(status.w_termsig | status.w_retcode));
|
||||||
|
+ done((int)(WTERMSIG(status) | WEXITSTATUS(status)));
|
||||||
|
}
|
||||||
|
/* NOTREACHED */
|
||||||
|
}
|
||||||
18
sys-auth/mrsh/metadata.xml
Normal file
18
sys-auth/mrsh/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>lssndrbarbieri@gmail.com</email>
|
||||||
|
<name>Alessandro Barbieri</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">chaos/mrsh</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<longdescription>Mrsh is a set of remote shell programs that use munge authentication
|
||||||
|
rather than reserved ports for security. The code for mrsh is based
|
||||||
|
on the source code for rsh, rshd, rlogin, rlogind, and rcp.</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="pam">build with pam support</flag>
|
||||||
|
<flag name="shadow">build with shadow file support</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
||||||
33
sys-auth/mrsh/mrsh-2.12.ebuild
Normal file
33
sys-auth/mrsh/mrsh-2.12.ebuild
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Mrsh is a set of remote shell programs that use munge authentication."
|
||||||
|
HOMEPAGE="https://github.com/chaos/mrsh"
|
||||||
|
SRC_URI="https://github.com/chaos/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="pam shadow"
|
||||||
|
DEPEND="
|
||||||
|
sys-auth/munge
|
||||||
|
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
shadow? ( virtual/shadow )
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/union-wait-deprecated.diff" )
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--disable-static
|
||||||
|
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||||
|
$(use_with pam)
|
||||||
|
$(use_with shadow)
|
||||||
|
)
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user