1 |
commit: 1bc1b8dc0675ff0ff0c6d7c5b9576d3f6808bbdd |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 30 21:37:21 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 21:37:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bc1b8dc |
7 |
|
8 |
app-admin/doas: security bump to 6.8.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/767781 |
11 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
app-admin/doas/Manifest | 1 + |
15 |
app-admin/doas/doas-6.8.1.ebuild | 51 ++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 52 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest |
19 |
index 97964019ad2..1aafc353d86 100644 |
20 |
--- a/app-admin/doas/Manifest |
21 |
+++ b/app-admin/doas/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST OpenDoas-6.0.tar.gz 28482 BLAKE2B 8d35a12f18609c9dd7746ff8ce7c39d16d7c5e595a05c0f1b91211d757029ae78311573228178f95ef92624f7a49d6ca1d1d0efd264104d66e1d20a8aa623241 SHA512 2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 |
24 |
DIST OpenDoas-6.6.1.tar.gz 30783 BLAKE2B cf6dabddb9a0ef837355516f7344efca33a639ede126e54466644521b5b1a7073b6cfa96cc8573ef16221a748ae6395f7e4fef4ff912ca7889742fb46d1a4da5 SHA512 390e0e139a2641be22c4493c3ed755d9cb4091f4ab8d590123b7c8c4f2f116cea3b3500926ff191fb98d92192ca9e92118cbcbeb463a7833763e00c65603e678 |
25 |
+DIST OpenDoas-6.8.1.tar.gz 32398 BLAKE2B cdaa01efaf3d164bcf6993693c86039fa4866dc1ce619731b455985ca1ebb5ebec889b540f4720c590318202de8a4b2fdf5d715f2170346818e706857b5adfa3 SHA512 d96fe1cdd70e9211de9996ad05bcf7a127facd02af48f7ab2561869d9d16708f1b61722c6e6b9fe15a62e9ef501e09b1ba444b7b43a066f1895e543ebc9402e7 |
26 |
DIST OpenDoas-6.8.tar.gz 32307 BLAKE2B f199e20ccd33ed215b280f325d10c36f1449a605aa25ca92c39b43e6d9118a2c2b09e351712489028a06e9c2c087593888a93bf0377a15d1b710c9d6f659cf81 SHA512 4a57079bba353247e645bc07a5d4e78fd01471d193e83751fd87b72cffa4e152c0f7ea172563f767a7193b14489f57bc066b4fee50842d30b5b7f7ce918434bb |
27 |
|
28 |
diff --git a/app-admin/doas/doas-6.8.1.ebuild b/app-admin/doas/doas-6.8.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..294eda46cd6 |
31 |
--- /dev/null |
32 |
+++ b/app-admin/doas/doas-6.8.1.ebuild |
33 |
@@ -0,0 +1,51 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit toolchain-funcs |
40 |
+ |
41 |
+MY_PN=OpenDoas |
42 |
+MY_P=${MY_PN}-${PV} |
43 |
+DESCRIPTION="Run commands as super user or another user, alternative to sudo from OpenBSD" |
44 |
+HOMEPAGE="https://github.com/Duncaen/OpenDoas" |
45 |
+SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
46 |
+S="${WORKDIR}"/${MY_P} |
47 |
+ |
48 |
+LICENSE="ISC" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc" |
51 |
+IUSE="pam persist" |
52 |
+ |
53 |
+BDEPEND="virtual/yacc" |
54 |
+RDEPEND="pam? ( sys-libs/pam )" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ sed -i 's/-Werror //' GNUmakefile || die |
60 |
+} |
61 |
+ |
62 |
+src_configure() { |
63 |
+ tc-export CC AR |
64 |
+ |
65 |
+ ./configure \ |
66 |
+ --prefix="${EPREFIX}"/usr \ |
67 |
+ --sysconfdir="${EPREFIX}"/etc \ |
68 |
+ $(use_with pam) \ |
69 |
+ $(use_with persist timestamp) \ |
70 |
+ || die "Configure failed" |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ if use persist ; then |
75 |
+ ewarn "The persist/timestamp feature is disabled by default upstream." |
76 |
+ ewarn "It may not be as secure as on OpenBSD where proper kernel support exists." |
77 |
+ fi |
78 |
+ |
79 |
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then |
80 |
+ elog "By default, doas will deny all actions." |
81 |
+ elog "You need to create your own custom configuration at ${EROOT}/etc/doas.conf." |
82 |
+ elog "See https://wiki.gentoo.org/wiki/Doas for guidance." |
83 |
+ fi |
84 |
+} |