From 0c100b7dd2b30e75b799d806df4ef899fd98e1ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Apr 2022 13:07:24 +0100 Subject: gentoo resync : 16.04.2022 --- app-admin/doas/doas-6.8.2.ebuild | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app-admin/doas/doas-6.8.2.ebuild (limited to 'app-admin/doas/doas-6.8.2.ebuild') 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..8e916bc9d889 --- /dev/null +++ b/app-admin/doas/doas-6.8.2.ebuild @@ -0,0 +1,47 @@ +# 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_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 +} -- cgit v1.2.3