Initial commit

This commit is contained in:
2026-01-10 22:22:36 +00:00
commit 89d049ba7a
16 changed files with 318 additions and 0 deletions

View File

@@ -0,0 +1 @@
EBUILD sudo-nopasswd-1.0.ebuild 789 BLAKE2B 87e99e2b601960139f7e0e3f518c9903218af968b1f94480565bde51506091feba94e89f2aa77f7f7183089b2dc723e3a687506294cbbd5717879e8b82f1371f SHA512 3cbf2bccf1a6eb3c195cbf2412ae7e1e7f8a727a1681a3a405191ac75234ab900ef37f5d8e1066e4514ca54807e2d15e1c08b7792cca69da5b4fafe0c697b662

View File

@@ -0,0 +1,34 @@
EAPI=8
DESCRIPTION="A tool for managing sudo commands without password prompts"
HOMEPAGE=""
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="app-admin/sudo
sys-process/inotify-tools"
DEPEND="${RDEPEND}"
src_install() {
dobin src/update-sudo-nopasswd
dobin src/watch-sudo-nopasswd
insinto /usr/share/sudo-nopasswd
doins src/sudo_no_passwd_constants.sh
newinitd "${FILESDIR}"/watch-sudo-nopasswd.init watch-sudo-nopasswd
systemd_dounit src/watch-sudo-nopasswd.service
}
pkg_postinst() {
if [ ! -f "${ROOT}/etc/sudo-nopasswd" ]; then
touch "${ROOT}/etc/sudo-nopasswd"
elog "Created empty ${ROOT}/etc/sudo-nopasswd"
fi
elog "To enable the service:"
elog " systemctl enable watch-sudo-nopasswd (systemd)"
elog " rc-update add watch-sudo-nopasswd default (OpenRC)"
}

View File

@@ -0,0 +1 @@
masters = gentoo