diff options
author | Thamognya Kodi <contact@thamognya.com> | 2022-04-08 20:51:25 +0700 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-04-15 09:18:48 +0300 |
commit | 8792449849c896256446a3cf869b22b9ec58682a (patch) | |
tree | 797a5918ecb1b6a4a70ccb0fae5caad24633e796 /app-admin/doas | |
parent | media-libs/openexr: bump to 2.5.8 (diff) | |
download | gentoo-8792449849c896256446a3cf869b22b9ec58682a.tar.gz gentoo-8792449849c896256446a3cf869b22b9ec58682a.tar.bz2 gentoo-8792449849c896256446a3cf869b22b9ec58682a.zip |
app-admin/doas: bump to version 6.8.2
Signed-off-by: Thamognya Kodi <contact@thamognya.com>
Closes: https://github.com/gentoo/gentoo/pull/24956
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-admin/doas')
-rw-r--r-- | app-admin/doas/Manifest | 1 | ||||
-rw-r--r-- | app-admin/doas/doas-6.8.2.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
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 +} |