Bert Peters pushed to branch main at Arch Linux / Packaging / Packages / sudo-rs
Commits:
011e2a27 by Bert Peters at 2025-03-24T20:00:29+01:00
upgpkg: 0.2.4-5: correct pam name
Also document reliance on sudo config files. Fixes #1
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- − sudo-i.pam
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = sudo-rs
pkgdesc = A memory safe implementation of sudo and su.
pkgver = 0.2.4
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/trifectatechfoundation/sudo-rs
arch = x86_64
license = Apache-2.0 AND MIT
@@ -11,10 +11,8 @@ pkgbase = sudo-rs
depends = gcc-libs
depends = glibc
depends = pam
- backup = etc/pam.d/sudo-i
+ optdepends = sudo: default configuration files
source =
sudo-rs-0.2.4.tar.gz::https://github.com/trifectatechfoundation/sudo-rs/archive/refs/tags/v0.2.4.tar.gz
- source = sudo-i.pam
sha256sums =
c2c1f4c8087134a90df47a8bee76746c4ab24dd7d12f3b26a74d1560ea3ee68c
- sha256sums =
d1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2
pkgname = sudo-rs
=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
# Maintainer: Bert Peters <[email protected]>
pkgname=sudo-rs
pkgver=0.2.4
-pkgrel=4
+pkgrel=5
pkgdesc="A memory safe implementation of sudo and su."
arch=('x86_64')
url="https://github.com/trifectatechfoundation/sudo-rs"
@@ -19,15 +19,13 @@ checkdepends=(
# Not really needed directly, but the tests assume it exists
procps-ng
)
-backup=(
- etc/pam.d/sudo-i
+optdepends=(
+ "sudo: default configuration files"
)
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
- "sudo-i.pam"
)
-sha256sums=('c2c1f4c8087134a90df47a8bee76746c4ab24dd7d12f3b26a74d1560ea3ee68c'
- 'd1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2')
+sha256sums=('c2c1f4c8087134a90df47a8bee76746c4ab24dd7d12f3b26a74d1560ea3ee68c')
prepare() {
cd "$pkgname-$pkgver"
@@ -38,7 +36,7 @@ build() {
local man_file out_dir target_file section
cd "$pkgname-$pkgver"
- cargo build --features pam-login --release --frozen
+ cargo build --release --frozen
# upstream uses a docker container to build man pages, this is roughly what
# it tries to do.
@@ -60,7 +58,7 @@ build() {
check() {
cd "$pkgname-$pkgver"
# https://github.com/trifectatechfoundation/sudo-rs/issues/708
- cargo test --features pam-login --frozen -- --exact \
+ cargo test --frozen -- --exact \
--skip system::interface::test::test_unix_group \
--skip system::interface::test::test_unix_user
}
@@ -74,10 +72,6 @@ package() {
install -vDm4755 target/release/su "$pkgdir/usr/bin/su-rs"
install -vDm0755 target/release/visudo "$pkgdir/usr/bin/visudo-rs"
- # install custom sudo-i file, otherwise sudo -i won't work
- # this doesn't conflict with sudo as it doesn't have it
- install -vDm644 "$srcdir/sudo-i.pam" "$pkgdir/etc/pam.d/sudo-i"
-
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-*
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" CHANGELOG.md README.md
SECURITY.md
=====================================
sudo-i.pam deleted
=====================================
@@ -1,4 +0,0 @@
-#%PAM-1.0
-auth include system-auth
-account include system-auth
-session include system-auth
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo-rs/-/commit/011e2a27b2df66a2da00bde3d8214421b298bd48
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo-rs/-/commit/011e2a27b2df66a2da00bde3d8214421b298bd48
You're receiving this email because of your account on gitlab.archlinux.org.