1 |
commit: 40ac03c6a01b8cfac6c5a5335fcc6786dfd22a3a |
2 |
Author: Felix Janda <felix.janda <AT> posteo <DOT> de> |
3 |
AuthorDate: Fri Oct 14 23:18:23 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 15 15:11:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40ac03c6 |
7 |
|
8 |
app-admin/doas: new package. |
9 |
|
10 |
doas allows to run programs as another user, and is a lightweight |
11 |
alternative to sys-apps/sudo. |
12 |
|
13 |
Gentoo-Bug: https://bugs.gentoo.org/597010 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/2560 |
15 |
|
16 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
17 |
|
18 |
app-admin/doas/Manifest | 1 + |
19 |
app-admin/doas/doas-6.0.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++ |
20 |
app-admin/doas/metadata.xml | 15 +++++++++++++++ |
21 |
3 files changed, 56 insertions(+) |
22 |
|
23 |
diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000..2c56823 |
26 |
--- /dev/null |
27 |
+++ b/app-admin/doas/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST OpenDoas-6.0.tar.gz 28482 SHA256 59b5ce734591e0e5142f9cb27aaa56a4d5ce470d1f7ad85e9679cd91d2dd2058 SHA512 2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 WHIRLPOOL 037154c8aa81dd33a253a7d8837183d9cd4652ad1a333c1a8771a31cb31fc4721fdcdfc29c786c4bb9f011a61ef978b8e04e75336ea4628673405a68b3a2b839 |
30 |
|
31 |
diff --git a/app-admin/doas/doas-6.0.ebuild b/app-admin/doas/doas-6.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000..5469c66 |
34 |
--- /dev/null |
35 |
+++ b/app-admin/doas/doas-6.0.ebuild |
36 |
@@ -0,0 +1,40 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+inherit toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="Run commands as super user or another user, alternative to sudo from OpenBSD" |
46 |
+ |
47 |
+MY_PN=OpenDoas |
48 |
+MY_P=${MY_PN}-${PV} |
49 |
+HOMEPAGE="https://github.com/Duncaen/OpenDoas" |
50 |
+SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
51 |
+S="${WORKDIR}"/${MY_P} |
52 |
+ |
53 |
+LICENSE="ISC" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~arm" |
56 |
+IUSE="pam" |
57 |
+ |
58 |
+RDEPEND="pam? ( virtual/pam )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ virtual/yacc" |
61 |
+ |
62 |
+src_prepare() |
63 |
+{ |
64 |
+ default |
65 |
+ sed -i 's/-Werror //' Makefile || die |
66 |
+} |
67 |
+ |
68 |
+src_configure() |
69 |
+{ |
70 |
+ tc-export CC AR |
71 |
+ ./configure \ |
72 |
+ --prefix="${EPREFIX}"/usr \ |
73 |
+ --sysconfdir="${EPREFIX}"/etc \ |
74 |
+ $(use_with pam) \ |
75 |
+ || die |
76 |
+} |
77 |
|
78 |
diff --git a/app-admin/doas/metadata.xml b/app-admin/doas/metadata.xml |
79 |
new file mode 100644 |
80 |
index 00000000..90a63f8 |
81 |
--- /dev/null |
82 |
+++ b/app-admin/doas/metadata.xml |
83 |
@@ -0,0 +1,15 @@ |
84 |
+<?xml version="1.0" encoding="UTF-8"?> |
85 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
86 |
+<pkgmetadata> |
87 |
+<maintainer type="person"> |
88 |
+ <email>felix.janda@××××××.de</email> |
89 |
+ <name>Felix Janda</name> |
90 |
+</maintainer> |
91 |
+<maintainer type="project"> |
92 |
+ <email>proxy-maint@g.o</email> |
93 |
+ <name>Proxy Maintainers</name> |
94 |
+</maintainer> |
95 |
+<upstream> |
96 |
+ <remote-id type="github">Duncaen/OpenDoas</remote-id> |
97 |
+</upstream> |
98 |
+</pkgmetadata> |