diff options
author | Sam James <sam@gentoo.org> | 2021-01-30 21:37:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-30 21:37:21 +0000 |
commit | 1bc1b8dc0675ff0ff0c6d7c5b9576d3f6808bbdd (patch) | |
tree | aa9c978a0117fd2bc505d71397a211cc3c49cab7 /app-admin/doas | |
parent | media-libs/gd: bump to 2.3.1 (diff) | |
download | gentoo-1bc1b8dc0675ff0ff0c6d7c5b9576d3f6808bbdd.tar.gz gentoo-1bc1b8dc0675ff0ff0c6d7c5b9576d3f6808bbdd.tar.bz2 gentoo-1bc1b8dc0675ff0ff0c6d7c5b9576d3f6808bbdd.zip |
app-admin/doas: security bump to 6.8.1
Bug: https://bugs.gentoo.org/767781
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@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.1.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest index 97964019ad28..1aafc353d867 100644 --- a/app-admin/doas/Manifest +++ b/app-admin/doas/Manifest @@ -1,3 +1,4 @@ DIST OpenDoas-6.0.tar.gz 28482 BLAKE2B 8d35a12f18609c9dd7746ff8ce7c39d16d7c5e595a05c0f1b91211d757029ae78311573228178f95ef92624f7a49d6ca1d1d0efd264104d66e1d20a8aa623241 SHA512 2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 DIST OpenDoas-6.6.1.tar.gz 30783 BLAKE2B cf6dabddb9a0ef837355516f7344efca33a639ede126e54466644521b5b1a7073b6cfa96cc8573ef16221a748ae6395f7e4fef4ff912ca7889742fb46d1a4da5 SHA512 390e0e139a2641be22c4493c3ed755d9cb4091f4ab8d590123b7c8c4f2f116cea3b3500926ff191fb98d92192ca9e92118cbcbeb463a7833763e00c65603e678 +DIST OpenDoas-6.8.1.tar.gz 32398 BLAKE2B cdaa01efaf3d164bcf6993693c86039fa4866dc1ce619731b455985ca1ebb5ebec889b540f4720c590318202de8a4b2fdf5d715f2170346818e706857b5adfa3 SHA512 d96fe1cdd70e9211de9996ad05bcf7a127facd02af48f7ab2561869d9d16708f1b61722c6e6b9fe15a62e9ef501e09b1ba444b7b43a066f1895e543ebc9402e7 DIST OpenDoas-6.8.tar.gz 32307 BLAKE2B f199e20ccd33ed215b280f325d10c36f1449a605aa25ca92c39b43e6d9118a2c2b09e351712489028a06e9c2c087593888a93bf0377a15d1b710c9d6f659cf81 SHA512 4a57079bba353247e645bc07a5d4e78fd01471d193e83751fd87b72cffa4e152c0f7ea172563f767a7193b14489f57bc066b4fee50842d30b5b7f7ce918434bb diff --git a/app-admin/doas/doas-6.8.1.ebuild b/app-admin/doas/doas-6.8.1.ebuild new file mode 100644 index 000000000000..294eda46cd60 --- /dev/null +++ b/app-admin/doas/doas-6.8.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_PN=OpenDoas +MY_P=${MY_PN}-${PV} +DESCRIPTION="Run commands as super user or another user, alternative to sudo 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 ~ppc ~sparc" +IUSE="pam persist" + +BDEPEND="virtual/yacc" +RDEPEND="pam? ( sys-libs/pam )" +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 +} |