diff options
author | Sam James <sam@gentoo.org> | 2021-01-27 00:17:29 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-27 00:21:20 +0000 |
commit | abfd55a8aba47e286d254d62967b9539a4668107 (patch) | |
tree | 04d257dd7f3714e939b2ac6ba9ff00f21e7a7047 /app-admin | |
parent | mail-client/thunderbird-bin: bump to v78.7.0 (diff) | |
download | gentoo-abfd55a8aba47e286d254d62967b9539a4668107.tar.gz gentoo-abfd55a8aba47e286d254d62967b9539a4668107.tar.bz2 gentoo-abfd55a8aba47e286d254d62967b9539a4668107.zip |
app-admin/doas: bump to 6.8
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/doas/Manifest | 1 | ||||
-rw-r--r-- | app-admin/doas/doas-6.8.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest index 25136c7167cc..97964019ad28 100644 --- a/app-admin/doas/Manifest +++ b/app-admin/doas/Manifest @@ -1,2 +1,3 @@ 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.tar.gz 32307 BLAKE2B f199e20ccd33ed215b280f325d10c36f1449a605aa25ca92c39b43e6d9118a2c2b09e351712489028a06e9c2c087593888a93bf0377a15d1b710c9d6f659cf81 SHA512 4a57079bba353247e645bc07a5d4e78fd01471d193e83751fd87b72cffa4e152c0f7ea172563f767a7193b14489f57bc066b4fee50842d30b5b7f7ce918434bb diff --git a/app-admin/doas/doas-6.8.ebuild b/app-admin/doas/doas-6.8.ebuild new file mode 100644 index 000000000000..8c044a4d3c2c --- /dev/null +++ b/app-admin/doas/doas-6.8.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" +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 +} |