Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: cloudflare-warp-2023.1.133_1
@ 2023-01-31 21:02 2trvl
  2023-01-31 21:53 ` [PR PATCH] [Updated] " 2trvl
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: 2trvl @ 2023-01-31 21:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

There is a new pull request by 2trvl against master on the void-packages repository

https://github.com/2trvl/void-packages master
https://github.com/void-linux/void-packages/pull/42005

New package: cloudflare-warp-2023.1.133_1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/42005.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-42005.patch --]
[-- Type: text/x-diff, Size: 2931 bytes --]

From 6653d5d612ea4cdaf74484487f4d6c5ea41c023e Mon Sep 17 00:00:00 2001
From: 2trvl <38960745+2trvl@users.noreply.github.com>
Date: Tue, 31 Jan 2023 23:55:00 +0300
Subject: [PATCH] add cloudflare-warp

---
 .../files/cloudflare-warp/conf                |  5 ++++
 .../files/cloudflare-warp/log/run             | 12 ++++++++
 .../cloudflare-warp/files/cloudflare-warp/run |  3 ++
 srcpkgs/cloudflare-warp/template              | 29 +++++++++++++++++++
 4 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/cloudflare-warp/files/cloudflare-warp/conf
 create mode 100755 srcpkgs/cloudflare-warp/files/cloudflare-warp/log/run
 create mode 100755 srcpkgs/cloudflare-warp/files/cloudflare-warp/run
 create mode 100644 srcpkgs/cloudflare-warp/template

diff --git a/srcpkgs/cloudflare-warp/files/cloudflare-warp/conf b/srcpkgs/cloudflare-warp/files/cloudflare-warp/conf
new file mode 100644
index 000000000000..2cf4286aae64
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/cloudflare-warp/conf
@@ -0,0 +1,5 @@
+# Setting this to 1 enables logging, any other value - disables
+LOGGING_ENABLE=0
+
+# The directory will be created for you, if logging is enabled
+LOG_DIR="/var/log/warp"
diff --git a/srcpkgs/cloudflare-warp/files/cloudflare-warp/log/run b/srcpkgs/cloudflare-warp/files/cloudflare-warp/log/run
new file mode 100755
index 000000000000..f4f472e74410
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/cloudflare-warp/log/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+[ -r ../conf ] && . ../conf
+
+if [ "$LOGGING_ENABLE" -eq 1 ]; then
+    if [ ! -d "$LOG_DIR" ]; then
+        mkdir -p "$LOG_DIR"
+    fi
+    exec svlogd -tt "$LOG_DIR"
+else
+    exec chpst -1
+fi
diff --git a/srcpkgs/cloudflare-warp/files/cloudflare-warp/run b/srcpkgs/cloudflare-warp/files/cloudflare-warp/run
new file mode 100755
index 000000000000..b53dfd210b33
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/cloudflare-warp/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec warp-svc 2>&1
diff --git a/srcpkgs/cloudflare-warp/template b/srcpkgs/cloudflare-warp/template
new file mode 100644
index 000000000000..fc23ed297c4e
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/template
@@ -0,0 +1,29 @@
+# Template file for 'cloudflare-warp'
+pkgname=cloudflare-warp
+version=2023.1.133
+revision=1
+archs="i686 x86_64"
+short_desc="Cloudflare Warp Client"
+maintainer="Andrew Shteren <dank.txt@gmail.com>"
+license="custom"
+homepage="https://1.1.1.1/"
+repository="nonfree"
+restricted="yes"
+nostrip="yes"
+
+debpkgid="cloudflare_warp_2023_1_133_1_amd64_734c1ff709.deb"
+distfiles="https://pkg.cloudflareclient.com/uploads/${debpkgid}"
+checksum="628d499db5e2f6f6d8600926c24e12ec9659138e52578a78741e7946dfb0f8b0"
+
+do_extract() {
+    ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${debpkgid}
+    bsdtar xzpvf data.tar.gz
+}
+
+do_install() {
+    vbin bin/warp-svc
+    vbin bin/warp-taskbar
+    vbin bin/warp-diag
+    vbin bin/warp-cli
+    vsv cloudflare-warp
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-15 13:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 21:02 [PR PATCH] New package: cloudflare-warp-2023.1.133_1 2trvl
2023-01-31 21:53 ` [PR PATCH] [Updated] " 2trvl
2023-02-01 14:02 ` 2trvl
2023-02-01 14:16 ` 2trvl
2023-02-01 14:23 ` 2trvl
2023-02-01 14:35 ` 2trvl
2023-02-21 13:22 ` 2trvl
2023-05-02 17:44 ` [PR PATCH] [Updated] " 2trvl
2023-05-02 19:13 ` [PR REVIEW] New package: cloudflare-warp-2023.3.398 Duncaen
2023-05-02 19:13 ` Duncaen
2023-05-02 19:13 ` Duncaen
2023-08-01  1:56 ` github-actions
2023-08-15 12:35 ` 2trvl
2023-08-15 12:35 ` 2trvl
2023-08-15 13:00 ` 2trvl
2023-08-15 13:00 ` [PR PATCH] [Closed]: " 2trvl

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).