app-admin/doas-sudo-shim: new package, add 0.2.0

Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
Theron York
2026-06-17 13:15:10 -05:00
parent e95759984f
commit 45de21d4cf
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST doas-sudo-shim-0.2.0.tar.gz 5442 BLAKE2B 34d69829d3d03fd1c3c4040b4a9d1a5546e8db17ed3cb9caec9c1e218289e38a7b18cc55fe36bdcb1505a511c1d4f94b9c5602516b1006d9a919fe9c7b73d4e4 SHA512 fb646c2bbee1ac31e0bcac58cbcbc14c008c2bd4820a9e06a0316c625c44e64631724c45dfb493e21c9628d9ec2de802fe3ec92f176c86975858aba71cc8e23d

View File

@@ -0,0 +1,27 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="sudo shim that utilizes doas"
HOMEPAGE="https://github.com/jirutka/doas-sudo-shim"
SRC_URI="https://github.com/jirutka/doas-sudo-shim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="app-admin/doas"
src_install() {
dobin sudo
dodoc README.adoc LICENSE
}
pkg_postinst() {
elog "This package installs a 'sudo' script that forwards commands to doas."
elog "It conflicts with app-admin/sudo because both provide /usr/bin/sudo."
elog "To use this shim, either remove app-admin/sudo or mask it."
elog "Make sure your /etc/doas.conf is configured properly."
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Theron York</name>
<email>theron.york@cloudnuke.org</email>
</maintainer>
<upstream>
<remote-id type="github">jirutka/doas-sudo-shim</remote-id>
</upstream>
</pkgmetadata>