mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
app-admin/sudo-rs: treeclean, promoted to ::gentoo
Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems>
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
DIST diff-0.1.13.crate 46216 BLAKE2B 27ceeafb7afd45eabbbe22d1f05667f513a6062762e6b77122e267282a8f2a0bf96384989508bf10c9e13af4856bc9f58f09b10055d6fc2c32681e288ffa9f9e SHA512 45e259c9fe7c23bd9e9454891b42d4aef6d681d35ee039d21fdb05ae9ed5856161a40f29889e7880ac2a2daf85f1b7d752d213b4a99a1a74ed2682c18a3ae7fb
|
||||
DIST glob-0.3.2.crate 22359 BLAKE2B 564b72e2738cce5311aee12d8d6147631cb571f7b96d8d3823098d3dd449bcc23ffed5a6584f8979402bef95536b0e73fe9772f273295a0079782b9f7d88d19f SHA512 d15389441e337e3fab9c30102fe7b4b1b3e68d8cbb5d14162d2fd7e7d01a9812b2d6d6d2a24a60116418be41e2075e70becd6994c13b34365d512521e8debb02
|
||||
DIST libc-0.2.174.crate 779933 BLAKE2B 20ffcbbcad6961e732521940f0595039dc0576d85b2d3b2ad3f1decd37571132a4cd7505b2e108078a4379fc4cec46290b5633bcbcc6e7009c3b474c1a852628 SHA512 243f2ffd5741ef859e4dc5b7ee0396071943b1d10429efcaecb322957e256c4be88a7a649029dfd47e6456acc73ee257893fb6c4e8b4d0fe66a12bc5d1c13c73
|
||||
DIST log-0.4.27.crate 48120 BLAKE2B 09a2159032baaff7eede480062da30ffec1c1d4c77e76288467941dc13722ab1566742c1821326ca5f8c2f9f7597099e235213ecbf883fd93daf5ae9ad5ee981 SHA512 8d57219b76c8a25bae193e4d16d4d03bf0b8523e1ed3bdc80a692cabe00fc0359ae9bc3be989f04476ecda7187f27e4ad23fe260a96fcefc819af00fe12a1151
|
||||
DIST pretty_assertions-1.4.1.crate 78952 BLAKE2B 016df9fb2f24304b68a6bf4fc8e144387f07a5a15fc8d92757cffad11b4a00e74559abf597d4ac8619a3dfea705c82df1b8c8620c5f32c61ea8f212fd9cbf9f5 SHA512 474f77c61cc17bbe9914c56b98a80e5918450205827cd059d693c2d603ff61a0897cad25dde645cb495200e61ddc14333d15eb8bf2de090a2eb68deeb9aec8b0
|
||||
DIST sudo-rs-0.2.7.tar.gz 736981 BLAKE2B 35889ffa9840984fdff0c3394d2ce07b4df7fd1fa527dcc25384503a1327e3e967f489c02c2697b125cc799ffe1ed7682adda37e38f6863d2179d84e1ab6367e SHA512 4115436e6e198cb03dc5d9e9c756378bd70a98d3874f3de99ccba994bc0c400e673e3dfbf22cf510a76c1334a52e7859753f960ea1d625201c5538d7982af3a6
|
||||
DIST sudo-rs-0.2.8.tar.gz 751775 BLAKE2B a2717aebd7b6b1442bfa553c2e691c44eef6c89198809eedb162b6ef48e4f73f32201c723996a562e89c5e2e26958e91b76a4f9b481488e57d3a06aa053ea02d SHA512 72c684de238df4121890fe3f024cab484d7a23fdc33feb57c1ce8aa0d6411ca83eacae2740cf2da3ca0d613512e64a2486b96b929f3f13671b386f26f98d19be
|
||||
DIST yansi-1.0.1.crate 75497 BLAKE2B c0d396c93a733ed6ec12aca3385d816f39b1f1fbed75da460f491f0cbfc30ba462842ebd1627fa8e5d2b7c0f37913a23747e5f5e23df1cb7c85d965e6c37159b SHA512 182c8c6c60a30a727d8f8b90bbf0527d91fa8ae9d8eb20e5414614b43ee6dc532f4b19241adbfb9299cb0004b39fe627036269b60b0c3860d9e1ea4413aca541
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>kupravagoodman@proton.me</email>
|
||||
<name>Timur Kuprava</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="su">Installs su</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/trifectatechfoundation/sudo-rs/issues</bugs-to>
|
||||
<remote-id type="github">trifectatechfoundation/sudo-rs</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,95 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.71.1"
|
||||
|
||||
CRATES="
|
||||
diff@0.1.13
|
||||
glob@0.3.2
|
||||
libc@0.2.174
|
||||
log@0.4.27
|
||||
pretty_assertions@1.4.1
|
||||
yansi@1.0.1
|
||||
"
|
||||
|
||||
inherit cargo pam
|
||||
|
||||
DESCRIPTION="A memory safe implementation of sudo and su."
|
||||
HOMEPAGE="https://github.com/trifectatechfoundation/sudo-rs"
|
||||
SRC_URI="https://github.com/trifectatechfoundation/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" || ( Apache-2.0 MIT )"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+pam su"
|
||||
|
||||
DEPEND="
|
||||
pam? ( sys-libs/pam )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
virtual/editor
|
||||
!app-admin/sudo
|
||||
su? (
|
||||
sys-apps/shadow[-su]
|
||||
sys-apps/util-linux[-su]
|
||||
)
|
||||
pam? ( sys-auth/pambase )
|
||||
"
|
||||
|
||||
DOCS=( README.md CHANGELOG.md )
|
||||
|
||||
src_test() {
|
||||
local skip=(
|
||||
# Tests failing due to sandbox violations
|
||||
--skip test_traverse_secure_open_positive
|
||||
--skip permission_test
|
||||
)
|
||||
|
||||
cargo_src_test -- "${skip[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "$(cargo_target_dir)/sudo"
|
||||
dobin "$(cargo_target_dir)/visudo"
|
||||
|
||||
if use su ; then
|
||||
dobin "$(cargo_target_dir)/su"
|
||||
fi
|
||||
|
||||
fowners 0:0 /usr/bin/sudo
|
||||
fperms 4755 /usr/bin/sudo
|
||||
fowners 0:0 /usr/bin/visudo
|
||||
fperms 4755 /usr/bin/visudo
|
||||
|
||||
if use su ; then
|
||||
fowners 0:0 /usr/bin/su
|
||||
fperms 4755 /usr/bin/su
|
||||
fi
|
||||
|
||||
if use su ; then
|
||||
newman docs/man/su.1.man su.1
|
||||
fi
|
||||
|
||||
newman docs/man/sudo.8.man sudo.8
|
||||
newman docs/man/visudo.8.man visudo.8
|
||||
newman docs/man/sudoers.5.man sudoers.5
|
||||
|
||||
if use pam ; then
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
pamd_mimic system-auth sudo-i auth account session
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "*******************"
|
||||
ewarn "Sudo-rs needs the sudoers configuration file."
|
||||
ewarn "The sudoers configuration file will be loaded from /etc/sudoers-rs if that file exists,"
|
||||
ewarn "otherwise the original /etc/sudoers location will be used."
|
||||
}
|
||||
@@ -1,95 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.71.1"
|
||||
|
||||
CRATES="
|
||||
diff@0.1.13
|
||||
glob@0.3.2
|
||||
libc@0.2.174
|
||||
log@0.4.27
|
||||
pretty_assertions@1.4.1
|
||||
yansi@1.0.1
|
||||
"
|
||||
|
||||
inherit cargo pam
|
||||
|
||||
DESCRIPTION="A memory safe implementation of sudo and su."
|
||||
HOMEPAGE="https://github.com/trifectatechfoundation/sudo-rs"
|
||||
SRC_URI="https://github.com/trifectatechfoundation/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" || ( Apache-2.0 MIT )"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+pam su"
|
||||
|
||||
DEPEND="
|
||||
pam? ( sys-libs/pam )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
virtual/editor
|
||||
!app-admin/sudo
|
||||
su? (
|
||||
sys-apps/shadow[-su]
|
||||
sys-apps/util-linux[-su]
|
||||
)
|
||||
pam? ( sys-auth/pambase )
|
||||
"
|
||||
|
||||
DOCS=( README.md CHANGELOG.md )
|
||||
|
||||
src_test() {
|
||||
local skip=(
|
||||
# Tests failing due to sandbox violations
|
||||
--skip test_traverse_secure_open_positive
|
||||
--skip permission_test
|
||||
)
|
||||
|
||||
cargo_src_test -- "${skip[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "$(cargo_target_dir)/sudo"
|
||||
dobin "$(cargo_target_dir)/visudo"
|
||||
|
||||
if use su ; then
|
||||
dobin "$(cargo_target_dir)/su"
|
||||
fi
|
||||
|
||||
fowners 0:0 /usr/bin/sudo
|
||||
fperms 4755 /usr/bin/sudo
|
||||
fowners 0:0 /usr/bin/visudo
|
||||
fperms 4755 /usr/bin/visudo
|
||||
|
||||
if use su ; then
|
||||
fowners 0:0 /usr/bin/su
|
||||
fperms 4755 /usr/bin/su
|
||||
fi
|
||||
|
||||
if use su ; then
|
||||
newman docs/man/su.1.man su.1
|
||||
fi
|
||||
|
||||
newman docs/man/sudo.8.man sudo.8
|
||||
newman docs/man/visudo.8.man visudo.8
|
||||
newman docs/man/sudoers.5.man sudoers.5
|
||||
|
||||
if use pam ; then
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
pamd_mimic system-auth sudo-i auth account session
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "*******************"
|
||||
ewarn "Sudo-rs needs the sudoers configuration file."
|
||||
ewarn "The sudoers configuration file will be loaded from /etc/sudoers-rs if that file exists,"
|
||||
ewarn "otherwise the original /etc/sudoers location will be used."
|
||||
}
|
||||
Reference in New Issue
Block a user