Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] openvpn: Added a service for running as a client
Date: Mon, 30 Dec 2019 23:52:14 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17906@inbox.vuxu.org> (raw)

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

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

https://github.com/AN3223/void-packages openvpn_service
https://github.com/void-linux/void-packages/pull/17906

openvpn: Added a service for running as a client
Systemd service for reference: https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/openvpn-client%40.service.in

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

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

From ad2c218f496522a00bb98bfdc58e12bcc0823f7e Mon Sep 17 00:00:00 2001
From: AN3223 <ethanr2048@gmail.com>
Date: Mon, 30 Dec 2019 16:17:49 -0600
Subject: [PATCH] openvpn: Added a service for running as a client

---
 srcpkgs/openvpn/files/openvpn-client/log/run | 4 ++++
 srcpkgs/openvpn/files/openvpn-client/run     | 5 +++++
 srcpkgs/openvpn/template                     | 4 +++-
 3 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100755 srcpkgs/openvpn/files/openvpn-client/log/run
 create mode 100755 srcpkgs/openvpn/files/openvpn-client/run

diff --git a/srcpkgs/openvpn/files/openvpn-client/log/run b/srcpkgs/openvpn/files/openvpn-client/log/run
new file mode 100755
index 00000000000..34c7fb185d4
--- /dev/null
+++ b/srcpkgs/openvpn/files/openvpn-client/log/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+exec logger -t openvpn -p daemon.notice
+
diff --git a/srcpkgs/openvpn/files/openvpn-client/run b/srcpkgs/openvpn/files/openvpn-client/run
new file mode 100755
index 00000000000..94ca10f10b3
--- /dev/null
+++ b/srcpkgs/openvpn/files/openvpn-client/run
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+[ -r ./conf ] && . ./conf
+exec openvpn ${OPTS:---nobind --suppress-timestamps --config /etc/openvpn/client/client.conf} 2>&1
+
diff --git a/srcpkgs/openvpn/template b/srcpkgs/openvpn/template
index 042c8cf2886..c85f3b769e5 100644
--- a/srcpkgs/openvpn/template
+++ b/srcpkgs/openvpn/template
@@ -1,7 +1,7 @@
 # Template file for 'openvpn'
 pkgname=openvpn
 version=2.4.8
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--enable-pkcs11 --enable-iproute2 --disable-systemd"
 hostmakedepends="iproute2 pkg-config"
@@ -20,4 +20,6 @@ post_install() {
 	cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}
 
 	rm -rf ${DESTDIR}/usr/include
+
+	vsv openvpn-client
 }

             reply	other threads:[~2019-12-30 22:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 22:52 voidlinux-github [this message]
2019-12-31 14:33 ` [PR PATCH] [Closed]: " voidlinux-github
2019-12-31 14:33 ` voidlinux-github

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-17906@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).