Github messages for voidlinux
 help / color / mirror / Atom feed
From: atweiden <atweiden@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: snowflake-client-2.8.0
Date: Fri, 15 Dec 2023 05:28:22 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47762@inbox.vuxu.org> (raw)

[-- 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

             reply	other threads:[~2023-12-15  4:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-15  4:28 atweiden [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47762@inbox.vuxu.org \
    --to=atweiden@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).