Github messages for voidlinux
 help / color / mirror / Atom feed
From: moheb2000 <moheb2000@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: cloudflare-warp-2023.7.40-1
Date: Fri, 04 Aug 2023 19:12:39 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45423@inbox.vuxu.org> (raw)

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

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

https://github.com/moheb2000/void-packages cloudflare-warp
https://github.com/void-linux/void-packages/pull/45423

New package: cloudflare-warp-2023.7.40-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, (x86_64-glibc)



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

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

From e7fae162aab18aba014d73809cb0b0b3f9a3be92 Mon Sep 17 00:00:00 2001
From: Mohammad <moh.ebrahimi2000@gmail.com>
Date: Fri, 4 Aug 2023 20:33:08 +0330
Subject: [PATCH] New package: cloudflare-warp-2023.7.40-1

---
 .../cloudflare-warp/files/README.voidlinux    |  5 +++
 .../files/com.cloudflare.WarpTaskbar.desktop  |  9 ++++
 srcpkgs/cloudflare-warp/files/warp-svc/run    |  3 ++
 srcpkgs/cloudflare-warp/template              | 43 +++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/cloudflare-warp/files/README.voidlinux
 create mode 100644 srcpkgs/cloudflare-warp/files/com.cloudflare.WarpTaskbar.desktop
 create mode 100644 srcpkgs/cloudflare-warp/files/warp-svc/run
 create mode 100644 srcpkgs/cloudflare-warp/template

diff --git a/srcpkgs/cloudflare-warp/files/README.voidlinux b/srcpkgs/cloudflare-warp/files/README.voidlinux
new file mode 100644
index 000000000000..3a3d00afece8
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/README.voidlinux
@@ -0,0 +1,5 @@
+Before using cloudflare-warp on voidlinux, you need to enable warp-svc service:
+```
+ln -s /etc/sv/warp-svc /var/service/
+```
+If you want to see warp taskbar icon, you can add /usr/share/applications/com.cloudflare.WarpTaskbar.desktop to your autostart based on your desktop environment. This file must run by your regular user.
diff --git a/srcpkgs/cloudflare-warp/files/com.cloudflare.WarpTaskbar.desktop b/srcpkgs/cloudflare-warp/files/com.cloudflare.WarpTaskbar.desktop
new file mode 100644
index 000000000000..d4160a8e4323
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/com.cloudflare.WarpTaskbar.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.2
+Name=Cloudflare Zero Trust
+Comment=View the current status of the Zero Trust Tunnel
+Exec=warp-taskbar
+StartupNotify=false
+Keywords=warp teams cloudflare vpn
+Icon=zero-trust
diff --git a/srcpkgs/cloudflare-warp/files/warp-svc/run b/srcpkgs/cloudflare-warp/files/warp-svc/run
new file mode 100644
index 000000000000..6d0c74de5fa8
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/files/warp-svc/run
@@ -0,0 +1,3 @@
+#!/bin/bash
+exec 2>&1
+exec warp-svc
diff --git a/srcpkgs/cloudflare-warp/template b/srcpkgs/cloudflare-warp/template
new file mode 100644
index 000000000000..1e76062c315b
--- /dev/null
+++ b/srcpkgs/cloudflare-warp/template
@@ -0,0 +1,43 @@
+# Template file for 'cloudflare-warp'
+pkgname=cloudflare-warp
+version=2023.7.40
+revision=1
+archs="x86_64"
+create_wrksrc=yes
+short_desc="Cloudflare Warp Client"
+maintainer="Mohammad Ebrahimi <moh.ebrahimi2000@gmail.com>"
+license="custom:Proprietary"
+homepage="https://cloudflarewarp.com"
+distfiles="https://pkg.cloudflareclient.com/pool/bookworm/main/c/cloudflare-warp/cloudflare-warp_${version}-1_amd64.deb"
+checksum=f4e72c556cb45e4f9b85a1aebe275dc1dc6b292a64dddceea1a4b3e35604cb02
+repository="nonfree"
+restricted=yes
+nostrip=yes
+
+post_extract() {
+	$XBPS_FETCH_CMD 'https://www.cloudflare.com/application/terms/' -o cloudflare-terms-of-service.html
+}
+
+do_install() {
+	vbin bin/warp-cli
+	vbin bin/warp-dex
+	vbin bin/warp-diag
+	vbin bin/warp-svc
+	vbin bin/warp-taskbar
+
+	vinstall usr/share/icons/hicolor/scalable/apps/zero-trust-connected.svg 644 \
+	usr/share/icons/hicolor/scalable/apps
+	vinstall usr/share/icons/hicolor/scalable/apps/zero-trust-disconnected.svg 644 \
+	usr/share/icons/hicolor/scalable/apps
+	vinstall usr/share/icons/hicolor/scalable/apps/zero-trust-error.svg 644 \
+	usr/share/icons/hicolor/scalable/apps
+	vinstall usr/share/icons/hicolor/scalable/apps/zero-trust.svg 644 \
+	usr/share/icons/hicolor/scalable/apps
+
+	vinstall ${FILESDIR}/com.cloudflare.WarpTaskbar.desktop 644 usr/share/applications
+
+	vlicense cloudflare-terms-of-service.html
+	vdoc ${FILESDIR}/README.voidlinux
+
+	vsv warp-svc
+}

             reply	other threads:[~2023-08-04 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-04 17:12 moheb2000 [this message]
2023-11-03  1:45 ` github-actions
2023-11-17  1:46 ` [PR PATCH] [Closed]: " github-actions

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-45423@inbox.vuxu.org \
    --to=moheb2000@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).