summaryrefslogtreecommitdiff
path: root/security/sudo-rs
diff options
context:
space:
mode:
Diffstat (limited to 'security/sudo-rs')
-rw-r--r--security/sudo-rs/Makefile26
-rw-r--r--security/sudo-rs/Makefile.crates6
-rw-r--r--security/sudo-rs/distinfo6
-rw-r--r--security/sudo-rs/pkg-descr2
-rw-r--r--security/sudo-rs/pkg-descr-coexist4
-rw-r--r--security/sudo-rs/pkg-plist2
6 files changed, 26 insertions, 20 deletions
diff --git a/security/sudo-rs/Makefile b/security/sudo-rs/Makefile
index 773a9fe74501..1f27827c26f6 100644
--- a/security/sudo-rs/Makefile
+++ b/security/sudo-rs/Makefile
@@ -1,6 +1,6 @@
PORTNAME= sudo-rs
-PORTVERSION= 0.2.7
DISTVERSIONPREFIX= v
+DISTVERSION= 0.2.8
CATEGORIES= security
MAINTAINER= marc@trifectatech.org
@@ -12,22 +12,15 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-FLAVORS= default coexist
-FLAVOR?= ${FLAVORS:[1]}
-coexist_PKGNAMESUFFIX= -coexist
-coexist_DESCR= pkg-descr-coexist
-
USES= cargo
-
USE_GITHUB= yes
GH_ACCOUNT= trifectatechfoundation
-CARGO_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
+FLAVORS= default coexist
+FLAVOR?= ${FLAVORS:[1]}
+
+coexist_PKGNAMESUFFIX= -coexist
+coexist_DESCR= pkg-descr-coexist
.if !defined(USER) || ${USER} == root
CARGO_TEST= no
@@ -41,10 +34,9 @@ PLIST_SUB+= NO_COEXIST=""
RS_SUFFIX= -rs
PLIST_SUB+= NO_COEXIST="@comment "
.endif
-PLIST_SUB+= RS_SUFFIX=${RS_SUFFIX}
-PORTDOCS= CHANGELOG.md CONTRIBUTING.md COPYRIGHT LICENSE-* README.md \
- SECURITY.md
+PLIST_SUB+= RS_SUFFIX=${RS_SUFFIX}
+PORTDOCS= CHANGELOG.md CONTRIBUTING.md COPYRIGHT LICENSE-* README.md SECURITY.md
OPTIONS_DEFINE= DOCS
@@ -53,6 +45,8 @@ post-install:
${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
diff --git a/security/sudo-rs/Makefile.crates b/security/sudo-rs/Makefile.crates
new file mode 100644
index 000000000000..7f1984c2311d
--- /dev/null
+++ b/security/sudo-rs/Makefile.crates
@@ -0,0 +1,6 @@
+CARGO_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
diff --git a/security/sudo-rs/distinfo b/security/sudo-rs/distinfo
index 8861ccd86ae0..639594b21790 100644
--- a/security/sudo-rs/distinfo
+++ b/security/sudo-rs/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1752137205
+TIMESTAMP = 1754301726
SHA256 (rust/crates/diff-0.1.13.crate) = 56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8
SIZE (rust/crates/diff-0.1.13.crate) = 46216
SHA256 (rust/crates/glob-0.3.2.crate) = a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2
@@ -11,5 +11,5 @@ SHA256 (rust/crates/pretty_assertions-1.4.1.crate) = 3ae130e2f271fbc2ac3a40fb1d0
SIZE (rust/crates/pretty_assertions-1.4.1.crate) = 78952
SHA256 (rust/crates/yansi-1.0.1.crate) = cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049
SIZE (rust/crates/yansi-1.0.1.crate) = 75497
-SHA256 (trifectatechfoundation-sudo-rs-v0.2.7_GH0.tar.gz) = d4e7b49634bf9c8a897a26afe85118ef941ff0914765b8720798821d2fe8c402
-SIZE (trifectatechfoundation-sudo-rs-v0.2.7_GH0.tar.gz) = 736981
+SHA256 (trifectatechfoundation-sudo-rs-v0.2.8_GH0.tar.gz) = 5b3823cc60abc5d90dbf0ae3a37d92445215e2697e6997c56148f5d0ac371ece
+SIZE (trifectatechfoundation-sudo-rs-v0.2.8_GH0.tar.gz) = 751775
diff --git a/security/sudo-rs/pkg-descr b/security/sudo-rs/pkg-descr
index e02b45a024ad..01c68080864e 100644
--- a/security/sudo-rs/pkg-descr
+++ b/security/sudo-rs/pkg-descr
@@ -1,4 +1,4 @@
-Sudo-rs is a memory safe re-implementation of the sudo utility.
+Sudo-rs is a memory-safe re-implementation of the sudo utility.
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is to
diff --git a/security/sudo-rs/pkg-descr-coexist b/security/sudo-rs/pkg-descr-coexist
new file mode 100644
index 000000000000..0187dcb5320c
--- /dev/null
+++ b/security/sudo-rs/pkg-descr-coexist
@@ -0,0 +1,4 @@
+Sudo-rs is a memory-safe re-implementation of the sudo utility.
+
+Use this package to try out sudo-rs safely alongside security/sudo, using the
+commands "sudo-rs" and "visudo-rs".
diff --git a/security/sudo-rs/pkg-plist b/security/sudo-rs/pkg-plist
index e8bdee449e15..389d20676dd9 100644
--- a/security/sudo-rs/pkg-plist
+++ b/security/sudo-rs/pkg-plist
@@ -1,7 +1,9 @@
@(,,4755) bin/sudo%%RS_SUFFIX%%
+bin/sudoedit%%RS_SUFFIX%%
sbin/visudo%%RS_SUFFIX%%
share/man/man5/sudoers%%RS_SUFFIX%%.5.gz
share/man/man8/sudo%%RS_SUFFIX%%.8.gz
+share/man/man8/sudoedit%%RS_SUFFIX%%.8.gz
share/man/man8/visudo%%RS_SUFFIX%%.8.gz
%%NO_COEXIST%%@sample etc/pam.d/sudo.default etc/pam.d/sudo
%%NO_COEXIST%%@sample etc/sudoers.dist etc/sudoers