diff --git a/security/sudo-rs/Makefile b/security/sudo-rs/Makefile index d05af02c33a9..1f180ba453b5 100644 --- a/security/sudo-rs/Makefile +++ b/security/sudo-rs/Makefile @@ -1,70 +1,69 @@ PORTNAME= sudo-rs DISTVERSIONPREFIX= v -DISTVERSION= 0.2.13 -PORTREVISION= 1 +DISTVERSION= 0.2.14 CATEGORIES= security MAINTAINER= marc@trifectatech.org COMMENT= Allow others to run commands as root WWW= https://trifectatech.org/initiatives/privilege-boundary/ LICENSE= APACHE20 MIT LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT USES= cargo USE_GITHUB= yes GH_ACCOUNT= trifectatechfoundation FLAVORS= default coexist FLAVOR?= ${FLAVORS:[1]} coexist_PKGNAMESUFFIX= -coexist coexist_DESCR= pkg-descr-coexist .if !defined(USER) || ${USER} == root CARGO_TEST= no .endif .if ${FLAVOR} == default CONFLICTS_INSTALL= sudo RS_SUFFIX= PLIST_SUB+= NO_COEXIST="" .else RS_SUFFIX= -rs PLIST_SUB+= NO_COEXIST="@comment " .endif SUB_FILES= sudoers PLIST_SUB+= RS_SUFFIX=${RS_SUFFIX} PORTDOCS= CHANGELOG.md CONTRIBUTING.md COPYRIGHT LICENSE-* README.md SECURITY.md OPTIONS_DEFINE= DOCS post-install: ${MV} ${STAGEDIR}${PREFIX}/bin/visudo ${STAGEDIR}${PREFIX}/sbin/visudo${RS_SUFFIX} ${INSTALL_MAN} ${WRKSRC}/docs/man/sudo.8.man ${STAGEDIR}${PREFIX}/share/man/man8/sudo${RS_SUFFIX}.8 ${INSTALL_MAN} ${WRKSRC}/docs/man/visudo.8.man ${STAGEDIR}${PREFIX}/share/man/man8/visudo${RS_SUFFIX}.8 ${INSTALL_MAN} ${WRKSRC}/docs/man/sudoers.5.man ${STAGEDIR}${PREFIX}/share/man/man5/sudoers${RS_SUFFIX}.5 ${LN} -s sudo${RS_SUFFIX} ${STAGEDIR}${PREFIX}/bin/sudoedit${RS_SUFFIX} ${LN} -s sudo${RS_SUFFIX}.8 ${STAGEDIR}${PREFIX}/share/man/man8/sudoedit${RS_SUFFIX}.8 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/sudoers.d ${MKDIR} ${STAGEDIR}${PREFIX}/etc/pam.d ${MKDIR} ${STAGEDIR}/var/run/sudo ${MKDIR} ${STAGEDIR}/var/db/sudo # we are not going to try to replace 'su', since that is part of FreeBSD itself ${RM} ${STAGEDIR}${PREFIX}/bin/su .if ${FLAVOR} == default ${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/sudo.default ${INSTALL_DATA} ${WRKDIR}/sudoers ${STAGEDIR}${PREFIX}/etc/sudoers.dist .else ${MV} ${STAGEDIR}${PREFIX}/bin/sudo ${STAGEDIR}${PREFIX}/bin/sudo${RS_SUFFIX} .endif post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include diff --git a/security/sudo-rs/Makefile.crates b/security/sudo-rs/Makefile.crates index c594955d597a..8bd7d8d54c41 100644 --- a/security/sudo-rs/Makefile.crates +++ b/security/sudo-rs/Makefile.crates @@ -1,2 +1,2 @@ CARGO_CRATES= glob-0.3.3 \ - libc-0.2.183 + libc-0.2.186 diff --git a/security/sudo-rs/distinfo b/security/sudo-rs/distinfo index ccaec81c37d2..d64e66ef9c27 100644 --- a/security/sudo-rs/distinfo +++ b/security/sudo-rs/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1773238460 +TIMESTAMP = 1782324440 SHA256 (rust/crates/glob-0.3.3.crate) = 0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280 SIZE (rust/crates/glob-0.3.3.crate) = 22861 -SHA256 (rust/crates/libc-0.2.183.crate) = b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d -SIZE (rust/crates/libc-0.2.183.crate) = 816918 -SHA256 (trifectatechfoundation-sudo-rs-v0.2.13_GH0.tar.gz) = 79becefc504d14ffccc7cab18d42f8d892e78b2d13d9c5bb887c5f02a2721eaf -SIZE (trifectatechfoundation-sudo-rs-v0.2.13_GH0.tar.gz) = 1202390 +SHA256 (rust/crates/libc-0.2.186.crate) = 68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66 +SIZE (rust/crates/libc-0.2.186.crate) = 821883 +SHA256 (trifectatechfoundation-sudo-rs-v0.2.14_GH0.tar.gz) = 54216f894622b2c31c657843cfd943e4a468bdf518b8ecdbcb81cbcfd4195729 +SIZE (trifectatechfoundation-sudo-rs-v0.2.14_GH0.tar.gz) = 1227904 diff --git a/security/sudo-rs/files/patch-src_pam_rpassword.rs b/security/sudo-rs/files/patch-src_pam_rpassword.rs deleted file mode 100644 index fd5dd22cf132..000000000000 --- a/security/sudo-rs/files/patch-src_pam_rpassword.rs +++ /dev/null @@ -1,14 +0,0 @@ -Based upon https://github.com/trifectatechfoundation/sudo-rs/commit/d43ff79df262568d8977771f03977d5965bf8474 - ---- - ---- src/pam/rpassword.rs.orig 2026-03-11 14:23:39 UTC -+++ src/pam/rpassword.rs -@@ -263,6 +263,7 @@ fn read_unbuffered( - if read_byte == b'\t' && feedback.visible_len.take().is_some() { - feedback.clear(); - let _ = feedback.sink.write(b"(no echo)"); -+ continue; - } - } -