* [PR PATCH] New package: snowflake-client-2.8.0
@ 2023-12-15 4:28 atweiden
2023-12-15 4:36 ` atweiden
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: atweiden @ 2023-12-15 4:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 668 bytes --]
There is a new pull request by atweiden against master on the void-packages repository
https://github.com/atweiden/void-packages snowflake
https://github.com/void-linux/void-packages/pull/47762
New package: snowflake-client-2.8.0
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
A patch file from https://github.com/void-linux/void-packages/pull/47762.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-snowflake-47762.patch --]
[-- Type: text/x-diff, Size: 3714 bytes --]
From c4b415453ddc85ac6d26be90a2d5b7bb9292a174 Mon Sep 17 00:00:00 2001
From: Andy Weidenbaum <atweiden@ioiojo.com>
Date: Fri, 15 Dec 2023 04:14:45 +0000
Subject: [PATCH] New package: snowflake-client-2.8.0
---
.../snowflake-client/snowflake-server.INSTALL | 6 ++
srcpkgs/snowflake-client/template | 71 +++++++++++++++++++
srcpkgs/snowflake-proxy | 1 +
srcpkgs/snowflake-server | 1 +
4 files changed, 79 insertions(+)
create mode 100755 srcpkgs/snowflake-client/snowflake-server.INSTALL
create mode 100644 srcpkgs/snowflake-client/template
create mode 120000 srcpkgs/snowflake-proxy
create mode 120000 srcpkgs/snowflake-server
diff --git a/srcpkgs/snowflake-client/snowflake-server.INSTALL b/srcpkgs/snowflake-client/snowflake-server.INSTALL
new file mode 100755
index 0000000000000..a92a59a41919d
--- /dev/null
+++ b/srcpkgs/snowflake-client/snowflake-server.INSTALL
@@ -0,0 +1,6 @@
+#!/bin/sh
+case "${ACTION}" in
+post)
+ setcap cap_net_bind_service+ep usr/bin/snowflake-server
+ ;;
+esac
diff --git a/srcpkgs/snowflake-client/template b/srcpkgs/snowflake-client/template
new file mode 100644
index 0000000000000..684d2fc7d16ed
--- /dev/null
+++ b/srcpkgs/snowflake-client/template
@@ -0,0 +1,71 @@
+# Template file for 'snowflake-client'
+pkgname=snowflake-client
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2"
+go_package="${go_import_path}/client ${go_import_path}/proxy
+ ${go_import_path}/server"
+short_desc="Pluggable Transport using WebRTC - Client"
+maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
+license="BSD-3-Clause"
+homepage="https://snowflake.torproject.org"
+changelog="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/raw/main/ChangeLog"
+distfiles="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/archive/v${version}/snowflake-v${version}.tar.bz2"
+checksum=89c52df141ae4430440859a9b6444cd8d4b48f1db5d66cb1b275acfcd93ce864
+
+do_check() {
+ go test ./...
+}
+
+pre_install() {
+ for _bin in client proxy server; do
+ mv "${GOPATH}/bin/${_bin}" "${GOPATH}/bin/snowflake-${_bin}"
+ done
+}
+
+post_install() {
+ local _cmd
+ local _docdir
+
+ _docdir="usr/share/doc/snowflake"
+
+ vlicense LICENSE
+
+ for _doc in README.md \
+ doc/broker-spec.txt \
+ doc/using-the-snowflake-library.md; do
+ vinstall "${_doc}" 644 "${_docdir}"
+ done
+
+ _cmd="client"
+ vman "doc/snowflake-${_cmd}.1"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+ vsconf "${_cmd}/torrc"
+ vsconf "${_cmd}/torrc.localhost"
+
+ _cmd="proxy"
+ vman "doc/snowflake-${_cmd}.1"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+
+ _cmd="server"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+}
+
+snowflake-proxy_package() {
+ short_desc="${short_desc/Client/Proxy}"
+ pkg_install() {
+ vmove usr/bin/snowflake-proxy
+ vmove usr/share/doc/snowflake/proxy
+ vmove usr/share/man/man1/snowflake-proxy.1
+ }
+}
+
+snowflake-server_package() {
+ short_desc="${short_desc/Client/Server}"
+ pkg_install() {
+ vmove usr/bin/snowflake-server
+ vmove usr/share/doc/snowflake/server
+ vsconf server/torrc
+ }
+}
diff --git a/srcpkgs/snowflake-proxy b/srcpkgs/snowflake-proxy
new file mode 120000
index 0000000000000..6bdb1e3a6223a
--- /dev/null
+++ b/srcpkgs/snowflake-proxy
@@ -0,0 +1 @@
+snowflake-client
\ No newline at end of file
diff --git a/srcpkgs/snowflake-server b/srcpkgs/snowflake-server
new file mode 120000
index 0000000000000..6bdb1e3a6223a
--- /dev/null
+++ b/srcpkgs/snowflake-server
@@ -0,0 +1 @@
+snowflake-client
\ No newline at end of file
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: snowflake-client-2.8.0
2023-12-15 4:28 [PR PATCH] New package: snowflake-client-2.8.0 atweiden
@ 2023-12-15 4:36 ` atweiden
2023-12-15 11:04 ` [PR PATCH] [Updated] " atweiden
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: atweiden @ 2023-12-15 4:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
New comment by atweiden on void-packages repository
https://github.com/void-linux/void-packages/pull/47762#issuecomment-1857263563
Comment:
`mv $GOPATH/bin/server $GOPATH/bin/snowflake-server` is failing on cross-compile. I don’t have the ability to cross compile locally, so can’t troubleshoot.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PR PATCH] [Updated] New package: snowflake-client-2.8.0
2023-12-15 4:28 [PR PATCH] New package: snowflake-client-2.8.0 atweiden
2023-12-15 4:36 ` atweiden
@ 2023-12-15 11:04 ` atweiden
2024-03-15 1:45 ` github-actions
2024-03-16 22:07 ` atweiden
3 siblings, 0 replies; 5+ messages in thread
From: atweiden @ 2023-12-15 11:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
There is an updated pull request by atweiden against master on the void-packages repository
https://github.com/atweiden/void-packages snowflake
https://github.com/void-linux/void-packages/pull/47762
New package: snowflake-client-2.8.0
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
A patch file from https://github.com/void-linux/void-packages/pull/47762.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-snowflake-47762.patch --]
[-- Type: text/x-diff, Size: 3745 bytes --]
From 0176995ac19095d74726d1dd3b30f0213df48230 Mon Sep 17 00:00:00 2001
From: Andy Weidenbaum <atweiden@ioiojo.com>
Date: Fri, 15 Dec 2023 04:14:45 +0000
Subject: [PATCH] New package: snowflake-client-2.8.0
---
.../snowflake-client/snowflake-server.INSTALL | 6 ++
srcpkgs/snowflake-client/template | 70 +++++++++++++++++++
srcpkgs/snowflake-proxy | 1 +
srcpkgs/snowflake-server | 1 +
4 files changed, 78 insertions(+)
create mode 100755 srcpkgs/snowflake-client/snowflake-server.INSTALL
create mode 100644 srcpkgs/snowflake-client/template
create mode 120000 srcpkgs/snowflake-proxy
create mode 120000 srcpkgs/snowflake-server
diff --git a/srcpkgs/snowflake-client/snowflake-server.INSTALL b/srcpkgs/snowflake-client/snowflake-server.INSTALL
new file mode 100755
index 0000000000000..a92a59a41919d
--- /dev/null
+++ b/srcpkgs/snowflake-client/snowflake-server.INSTALL
@@ -0,0 +1,6 @@
+#!/bin/sh
+case "${ACTION}" in
+post)
+ setcap cap_net_bind_service+ep usr/bin/snowflake-server
+ ;;
+esac
diff --git a/srcpkgs/snowflake-client/template b/srcpkgs/snowflake-client/template
new file mode 100644
index 0000000000000..6b064e04a5326
--- /dev/null
+++ b/srcpkgs/snowflake-client/template
@@ -0,0 +1,70 @@
+# Template file for 'snowflake-client'
+pkgname=snowflake-client
+version=2.8.0
+revision=1
+build_style=go
+go_import_path="gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2"
+go_package="${go_import_path}/client ${go_import_path}/proxy
+ ${go_import_path}/server"
+short_desc="Pluggable Transport using WebRTC - Client"
+maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
+license="BSD-3-Clause"
+homepage="https://snowflake.torproject.org"
+changelog="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/raw/main/ChangeLog"
+distfiles="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/archive/v${version}/snowflake-v${version}.tar.bz2"
+checksum=89c52df141ae4430440859a9b6444cd8d4b48f1db5d66cb1b275acfcd93ce864
+
+do_check() {
+ go test ./...
+}
+
+pre_install() {
+ find "${GOPATH}/bin" -mindepth 1 -type f ! -name "snowflake*" \
+ | while read -r _b; do mv "${_b}" "${_b%/*}/snowflake-${_b##*/}"; done
+}
+
+post_install() {
+ local _cmd
+ local _docdir
+
+ _docdir="usr/share/doc/snowflake"
+
+ vlicense LICENSE
+
+ for _doc in README.md \
+ doc/broker-spec.txt \
+ doc/using-the-snowflake-library.md; do
+ vinstall "${_doc}" 644 "${_docdir}"
+ done
+
+ _cmd="client"
+ vman "doc/snowflake-${_cmd}.1"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+ vsconf "${_cmd}/torrc"
+ vsconf "${_cmd}/torrc.localhost"
+
+ _cmd="proxy"
+ vman "doc/snowflake-${_cmd}.1"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+
+ _cmd="server"
+ vinstall "${_cmd}/README.md" 644 "${_docdir}/${_cmd}"
+}
+
+snowflake-proxy_package() {
+ short_desc="${short_desc/Client/Proxy}"
+ pkg_install() {
+ vmove usr/bin/snowflake-proxy
+ vmove usr/share/doc/snowflake/proxy
+ vmove usr/share/man/man1/snowflake-proxy.1
+ }
+}
+
+snowflake-server_package() {
+ short_desc="${short_desc/Client/Server}"
+ pkg_install() {
+ vmove usr/bin/snowflake-server
+ vmove usr/share/doc/snowflake/server
+ vsconf server/torrc
+ }
+}
diff --git a/srcpkgs/snowflake-proxy b/srcpkgs/snowflake-proxy
new file mode 120000
index 0000000000000..6bdb1e3a6223a
--- /dev/null
+++ b/srcpkgs/snowflake-proxy
@@ -0,0 +1 @@
+snowflake-client
\ No newline at end of file
diff --git a/srcpkgs/snowflake-server b/srcpkgs/snowflake-server
new file mode 120000
index 0000000000000..6bdb1e3a6223a
--- /dev/null
+++ b/srcpkgs/snowflake-server
@@ -0,0 +1 @@
+snowflake-client
\ No newline at end of file
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: snowflake-client-2.8.0
2023-12-15 4:28 [PR PATCH] New package: snowflake-client-2.8.0 atweiden
2023-12-15 4:36 ` atweiden
2023-12-15 11:04 ` [PR PATCH] [Updated] " atweiden
@ 2024-03-15 1:45 ` github-actions
2024-03-16 22:07 ` atweiden
3 siblings, 0 replies; 5+ messages in thread
From: github-actions @ 2024-03-15 1:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/47762#issuecomment-1998763346
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: snowflake-client-2.8.0
2023-12-15 4:28 [PR PATCH] New package: snowflake-client-2.8.0 atweiden
` (2 preceding siblings ...)
2024-03-15 1:45 ` github-actions
@ 2024-03-16 22:07 ` atweiden
3 siblings, 0 replies; 5+ messages in thread
From: atweiden @ 2024-03-16 22:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
New comment by atweiden on void-packages repository
https://github.com/void-linux/void-packages/pull/47762#issuecomment-2002154181
Comment:
bump
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-16 22:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-15 4:28 [PR PATCH] New package: snowflake-client-2.8.0 atweiden
2023-12-15 4:36 ` atweiden
2023-12-15 11:04 ` [PR PATCH] [Updated] " atweiden
2024-03-15 1:45 ` github-actions
2024-03-16 22:07 ` atweiden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).