pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cloudflare-speed-cli: update to 1.0.7
Module Name: pkgsrc-wip
Committed By: Bartosz Kuzma <bartosz.kuzma%gmail.com@localhost>
Pushed By: bartosz.kuzma
Date: Thu Jul 16 20:50:27 2026 +0200
Changeset: b3043c281b1ae19e1798f14700f80851a1e097d2
Modified Files:
cloudflare-speed-cli/Makefile
cloudflare-speed-cli/distinfo
Removed Files:
cloudflare-speed-cli/patches/patch-src_network.rs
Log Message:
cloudflare-speed-cli: update to 1.0.7
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b3043c281b1ae19e1798f14700f80851a1e097d2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
cloudflare-speed-cli/Makefile | 2 +-
cloudflare-speed-cli/distinfo | 7 +-
cloudflare-speed-cli/patches/patch-src_network.rs | 132 ----------------------
3 files changed, 4 insertions(+), 137 deletions(-)
diffs:
diff --git a/cloudflare-speed-cli/Makefile b/cloudflare-speed-cli/Makefile
index b41b44e9c5..2d0453d4c5 100644
--- a/cloudflare-speed-cli/Makefile
+++ b/cloudflare-speed-cli/Makefile
@@ -1,6 +1,6 @@
# $NetBSD$
-DISTNAME= cloudflare-speed-cli-1.0.6
+DISTNAME= cloudflare-speed-cli-1.0.7
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=kavehtehrani/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/cloudflare-speed-cli/distinfo b/cloudflare-speed-cli/distinfo
index bef23bb25b..cfb41138b8 100644
--- a/cloudflare-speed-cli/distinfo
+++ b/cloudflare-speed-cli/distinfo
@@ -102,9 +102,9 @@ Size (clap_lex-0.7.7.crate) = 13474 bytes
BLAKE2s (clipboard-win-5.4.1.crate) = e22fddd9934903b7b3300b634fc4bed46447ed5bc478bff766f0eef6fe63f33c
SHA512 (clipboard-win-5.4.1.crate) = e37d5b33896936c21d9c049c1f3aba43046c4cc47678c16484154d136aff736decf5ed2f44c431591ebad08b37002626c45613aaffa6adb0af69c6be2f315708
Size (clipboard-win-5.4.1.crate) = 20994 bytes
-BLAKE2s (cloudflare-speed-cli-1.0.6.tar.gz) = 926bd50645cc1abfa714f0586d66b470bfee3b5984748f80642e0056f8da2691
-SHA512 (cloudflare-speed-cli-1.0.6.tar.gz) = b593494bb87e9b0adebfdc8854c69699900dc49451fdcdc600e46d463b6bf44cf43b87a8b7158a5acb97202491faa58c3e2f64b04ac601bc87fd2210d95d735b
-Size (cloudflare-speed-cli-1.0.6.tar.gz) = 699834 bytes
+BLAKE2s (cloudflare-speed-cli-1.0.7.tar.gz) = 340374f2f6da87f20196dd586f33f431987bd86dc86264520033a858187d739f
+SHA512 (cloudflare-speed-cli-1.0.7.tar.gz) = 1b42148d115b3dd87a7f5bffa359eaff824ee5c3d1c98127c947a73fd2b1c453cf24c7d2d2e1e639d61ef87d3d4000cbcfa4d1ddcc5d9710bb40dd794dbb8523
+Size (cloudflare-speed-cli-1.0.7.tar.gz) = 701222 bytes
BLAKE2s (cmake-0.1.57.crate) = cdcbf97fd5e24546681a1f2c904bbd9cdf84caef0c4fdba0303c395e12b16f0b
SHA512 (cmake-0.1.57.crate) = 34ff920c0f866bcc5fa8ba385b1945629c9174b6f3b006ada9f73fef945f67111f17342304ff74f69630bba4ff7450a402e1017a99fabc1296d276df4e4b633b
Size (cmake-0.1.57.crate) = 20376 bytes
@@ -966,4 +966,3 @@ Size (zune-core-0.4.12.crate) = 17355 bytes
BLAKE2s (zune-jpeg-0.4.21.crate) = f3bbaa5d70d1efc8c02a3b5d446e3eeab9896bd3d1e3ba619b1bdb8579929eb6
SHA512 (zune-jpeg-0.4.21.crate) = 838ed690fc2d026f40feaaef9c88d85f9a80b186e95f23e5be01c632816942660a89cb0524f2346902fa92235d5de2228485daa67019fcf06ef60ae147b4073c
Size (zune-jpeg-0.4.21.crate) = 68268 bytes
-SHA1 (patch-src_network.rs) = b4dee790e42fab4cb403b589fcfb6f0c10f3d92e
diff --git a/cloudflare-speed-cli/patches/patch-src_network.rs b/cloudflare-speed-cli/patches/patch-src_network.rs
deleted file mode 100644
index 9815eb4d97..0000000000
--- a/cloudflare-speed-cli/patches/patch-src_network.rs
+++ /dev/null
@@ -1,132 +0,0 @@
-$NetBSD$
-
-NetBSD specific functions
-
---- src/network.rs.orig 2026-06-18 08:00:54.000000000 +0000
-+++ src/network.rs
-@@ -231,6 +231,35 @@ fn parse_default_iface_from_netstat_json
- None
- }
-
-+#[cfg(target_os = "netbsd")]
-+fn get_default_interface(family: Option<IpFamily>) -> Option<String> {
-+ let netstat_args: &[&str] = if family == Some(IpFamily::V6) {
-+ &["-L", "-finet6", "-nr"]
-+ } else {
-+ &["-L", "-finet", "-nr"]
-+ };
-+
-+ if let Ok(output) = Command::new("netstat").args(netstat_args).output() {
-+ if output.status.success() {
-+ if let Ok(output_str) = String::from_utf8(output.stdout) {
-+ for line in output_str.lines() {
-+ let line = line.trim();
-+ if line.starts_with("default") {
-+ if let Some(iface) = line.split_whitespace().last() {
-+ let iface = iface.trim().to_string();
-+ if !iface.is_empty() {
-+ return Some(iface);
-+ }
-+ }
-+ }
-+ }
-+ }
-+ }
-+ }
-+
-+ None
-+}
-+
- #[cfg(target_os = "macos")]
- fn get_default_interface(family: Option<IpFamily>) -> Option<String> {
- // `route -n get -inet6 default` for IPv6; the v4 default otherwise.
-@@ -357,6 +386,24 @@ fn check_if_wireless(iface: &str) -> Opt
- Some(is_wireless)
- }
-
-+#[cfg(target_os = "netbsd")]
-+fn check_if_wireless(iface: &str) -> Option<bool> {
-+ if let Ok(output) = Command::new("ifconfig").arg(iface).output() {
-+ if output.status.success() {
-+ if let Ok(output_str) = String::from_utf8(output.stdout) {
-+ for line in output_str.lines() {
-+ let line = line.trim();
-+ if line.starts_with("ssid ") {
-+ return Some(true);
-+ }
-+ }
-+ }
-+ }
-+ }
-+
-+ Some(false)
-+}
-+
- #[cfg(target_os = "macos")]
- fn check_if_wireless(iface: &str) -> Option<bool> {
- // Parse `networksetup -listallhardwareports` to check if the interface is Wi-Fi
-@@ -477,6 +524,37 @@ fn get_wireless_ssid(iface: &str) -> Opt
- None
- }
-
-+#[cfg(target_os = "netbsd")]
-+fn get_wireless_ssid(iface: &str) -> Option<String> {
-+ if let Ok(output) = Command::new("ifconfig").arg(iface).output() {
-+ if output.status.success() {
-+ if let Ok(output_str) = String::from_utf8(output.stdout) {
-+ for line in output_str.lines() {
-+ let line = line.trim();
-+ if line.starts_with("ssid ") {
-+ let line = match line.find(" nwkey ") {
-+ Some(pos) => &line[..pos],
-+ None => line,
-+ };
-+ let line = match line.find("ssid ") {
-+ Some(pos) => &line[pos + "ssid ".len()..],
-+ None => line,
-+ };
-+
-+ let ssid = line.trim().to_string();
-+ let ssid = ssid.trim_matches('"').to_string();
-+ if !ssid.is_empty() {
-+ return Some(ssid);
-+ }
-+ }
-+ }
-+ }
-+ }
-+ }
-+
-+ None
-+}
-+
- #[cfg(target_os = "macos")]
- fn get_wireless_ssid(iface: &str) -> Option<String> {
- // Try `networksetup -getairportnetwork <iface>` (public API)
-@@ -576,6 +654,26 @@ fn get_interface_mac(iface: &str) -> Opt
- None
- }
-
-+#[cfg(target_os = "netbsd")]
-+fn get_interface_mac(iface: &str) -> Option<String> {
-+ // Use `ifconfig <iface>` and parse the `address` line
-+ if let Ok(output) = Command::new("ifconfig").arg(iface).output() {
-+ if output.status.success() {
-+ if let Ok(output_str) = String::from_utf8(output.stdout) {
-+ for line in output_str.lines() {
-+ let line = line.trim();
-+ if line.starts_with("address: ") {
-+ if let Some(mac) = line.split_whitespace().nth(1) {
-+ return Some(mac.to_string());
-+ }
-+ }
-+ }
-+ }
-+ }
-+ }
-+ None
-+}
-+
- #[cfg(target_os = "windows")]
- fn get_interface_mac(iface: &str) -> Option<String> {
- let output = Command::new("powershell")
Home |
Main Index |
Thread Index |
Old Index