commit:     8792449849c896256446a3cf869b22b9ec58682a
Author:     Thamognya Kodi <contact <AT> thamognya <DOT> com>
AuthorDate: Fri Apr  8 13:51:25 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 06:18:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87924498

app-admin/doas: bump to version 6.8.2

Signed-off-by: Thamognya Kodi <contact <AT> thamognya.com>
Closes: https://github.com/gentoo/gentoo/pull/24956
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-admin/doas/Manifest          |  1 +
 app-admin/doas/doas-6.8.2.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest
index d66ef45cbbce..ac4682ce68e4 100644
--- a/app-admin/doas/Manifest
+++ b/app-admin/doas/Manifest
@@ -1 +1,2 @@
 DIST OpenDoas-6.8.1.tar.gz 32398 BLAKE2B 
cdaa01efaf3d164bcf6993693c86039fa4866dc1ce619731b455985ca1ebb5ebec889b540f4720c590318202de8a4b2fdf5d715f2170346818e706857b5adfa3
 SHA512 
d96fe1cdd70e9211de9996ad05bcf7a127facd02af48f7ab2561869d9d16708f1b61722c6e6b9fe15a62e9ef501e09b1ba444b7b43a066f1895e543ebc9402e7
+DIST OpenDoas-6.8.2.tar.gz 32430 BLAKE2B 
14c418537b17cb82ceb1d789acc74d17364390c04d0a8d81b65de2ce3feca800e48158c6a8ea066176edeea44252f4baa99d1abde0dfbdc548c06f96e6409984
 SHA512 
4a93ff477413c859ba2702e688fa4f83248fff85e61e12336838a1e9aa1a8d9963a9782e4bc5e58e8d04b86c2c8ceb6b235ae9d3b32b3e548a2514a43653137d

diff --git a/app-admin/doas/doas-6.8.2.ebuild b/app-admin/doas/doas-6.8.2.ebuild
new file mode 100644
index 000000000000..6a884b504507
--- /dev/null
+++ b/app-admin/doas/doas-6.8.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PN=OpenDoas
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Run commands as super/another user (alt sudo) (unofficial port 
from OpenBSD)"
+HOMEPAGE="https://github.com/Duncaen/OpenDoas";
+SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="pam persist"
+
+BDEPEND="virtual/yacc"
+RDEPEND="pam? ( sys-libs/pam )
+       !pam? ( virtual/libcrypt:= )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+       sed -i 's/-Werror //' GNUmakefile || die
+}
+
+src_configure() {
+       tc-export CC AR
+
+       ./configure \
+               --prefix="${EPREFIX}"/usr \
+               --sysconfdir="${EPREFIX}"/etc \
+               $(use_with pam) \
+               $(use_with persist timestamp) \
+       || die "Configure failed"
+}
+
+pkg_postinst() {
+       if use persist ; then
+               ewarn "The persist/timestamp feature is disabled by default 
upstream."
+               ewarn "It may not be as secure as on OpenBSD where proper 
kernel support exists."
+       fi
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               elog "By default, doas will deny all actions."
+               elog "You need to create your own custom configuration at 
${EROOT}/etc/doas.conf."
+               elog "See https://wiki.gentoo.org/wiki/Doas for guidance."
+       fi
+}

Reply via email to