[arch-commits] Commit in badvpn/trunk (PKGBUILD badvpn-udpgw.service)

Felix Yan felixonmars at archlinux.org
Tue Jul 10 02:00:06 UTC 2018


    Date: Tuesday, July 10, 2018 @ 02:00:05
  Author: felixonmars
Revision: 355939

upgpkg: badvpn 1.999.130-3

add a service for badvpn-udpgw

Added:
  badvpn/trunk/badvpn-udpgw.service
Modified:
  badvpn/trunk/PKGBUILD

----------------------+
 PKGBUILD             |    7 +++++--
 badvpn-udpgw.service |   10 ++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-10 01:43:24 UTC (rev 355938)
+++ PKGBUILD	2018-07-10 02:00:05 UTC (rev 355939)
@@ -5,7 +5,7 @@
 
 pkgname=badvpn
 pkgver=1.999.130
-pkgrel=2
+pkgrel=3
 pkgdesc="Peer-to-peer VPN system, and NCD, a programming language for network interface configuration"
 arch=('x86_64')
 url="https://github.com/ambrop72/badvpn"
@@ -12,10 +12,12 @@
 license=('GPL')
 depends=('nss' 'openssl' 'iproute2')
 makedepends=('cmake')
-source=("https://github.com/ambrop72/badvpn/archive/$pkgver.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ambrop72/badvpn/archive/$pkgver.tar.gz"
+        'badvpn-udpgw.service'
         'badvpn-ncd.service'
         'badvpn-ncd.conf.d')
 md5sums=('e65d8d298fc82eb9a6c12a9425a97e6d'
+         'c2880cc0dff000d12e65bcd38fc9f02c'
          '35cf690b7cdf90fdb7abf9edcd5e4540'
          '19ea2de11e1623c5e91a363e72c329f1')
 
@@ -29,6 +31,7 @@
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
 
+  install -D -m755 "$srcdir/badvpn-udpgw.service" "$pkgdir/usr/lib/systemd/system/badvpn-udpgw.service"
   install -D -m755 "$srcdir/badvpn-ncd.service" "$pkgdir/usr/lib/systemd/system/badvpn-ncd.service"
   install -D -m0644 "$srcdir/badvpn-ncd.conf.d" "$pkgdir/etc/conf.d/badvpn-ncd"
 }

Added: badvpn-udpgw.service
===================================================================
--- badvpn-udpgw.service	                        (rev 0)
+++ badvpn-udpgw.service	2018-07-10 02:00:05 UTC (rev 355939)
@@ -0,0 +1,10 @@
+[Unit]
+Description=BadVPN UDP Gateway
+After=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/badvpn-udpgw --listen-addr 127.0.0.1:7300
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list