[arch-commits] Commit in badvpn/repos (5 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:39:26 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:39:25
  Author: felixonmars
Revision: 658553

archrelease: copy trunk to community-staging-x86_64

Added:
  badvpn/repos/community-staging-x86_64/
  badvpn/repos/community-staging-x86_64/PKGBUILD
    (from rev 658550, badvpn/trunk/PKGBUILD)
  badvpn/repos/community-staging-x86_64/badvpn-ncd.conf.d
    (from rev 658550, badvpn/trunk/badvpn-ncd.conf.d)
  badvpn/repos/community-staging-x86_64/badvpn-ncd.service
    (from rev 658550, badvpn/trunk/badvpn-ncd.service)
  badvpn/repos/community-staging-x86_64/badvpn-udpgw.service
    (from rev 658550, badvpn/trunk/badvpn-udpgw.service)

----------------------+
 PKGBUILD             |   36 ++++++++++++++++++++++++++++++++++++
 badvpn-ncd.conf.d    |    2 ++
 badvpn-ncd.service   |   12 ++++++++++++
 badvpn-udpgw.service |   10 ++++++++++
 4 files changed, 60 insertions(+)

Copied: badvpn/repos/community-staging-x86_64/PKGBUILD (from rev 658550, badvpn/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:39:25 UTC (rev 658553)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: zml <zach at zachsthings dot com>
+# Contributor: Ambroz Bizjak <ambrop7 at gmail dot com>
+
+pkgname=badvpn
+pkgver=1.999.130
+pkgrel=5
+pkgdesc="Peer-to-peer VPN system, and NCD, a programming language for network interface configuration"
+arch=('x86_64')
+url="https://github.com/ambrop72/badvpn"
+license=('GPL')
+depends=('nss' 'openssl' 'iproute2')
+makedepends=('cmake')
+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')
+
+build() {
+  cd $pkgname-$pkgver
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir"/badvpn-udpgw.service "$pkgdir"/usr/lib/systemd/system/badvpn-udpgw.service
+  install -Dm644 "$srcdir"/badvpn-ncd.service "$pkgdir"/usr/lib/systemd/system/badvpn-ncd.service
+  install -Dm644 "$srcdir"/badvpn-ncd.conf.d "$pkgdir"/etc/conf.d/badvpn-ncd
+}

Copied: badvpn/repos/community-staging-x86_64/badvpn-ncd.conf.d (from rev 658550, badvpn/trunk/badvpn-ncd.conf.d)
===================================================================
--- community-staging-x86_64/badvpn-ncd.conf.d	                        (rev 0)
+++ community-staging-x86_64/badvpn-ncd.conf.d	2020-07-07 13:39:25 UTC (rev 658553)
@@ -0,0 +1,2 @@
+NCD_CONFIG="/etc/ncd.conf"
+NCD_ARGS=""

Copied: badvpn/repos/community-staging-x86_64/badvpn-ncd.service (from rev 658550, badvpn/trunk/badvpn-ncd.service)
===================================================================
--- community-staging-x86_64/badvpn-ncd.service	                        (rev 0)
+++ community-staging-x86_64/badvpn-ncd.service	2020-07-07 13:39:25 UTC (rev 658553)
@@ -0,0 +1,12 @@
+[Unit]
+Description=BadVPN Network Configuration Daemon
+After=syslog.target
+
+[Service]
+Type=simple
+Environment="NCD_CONFIG=/etc/ncd.conf"
+EnvironmentFile=-/etc/conf.d/badvpn-ncd
+ExecStart=/usr/bin/badvpn-ncd $NCD_ARGS --config-file $NCD_CONFIG
+
+[Install]
+WantedBy=network.target

Copied: badvpn/repos/community-staging-x86_64/badvpn-udpgw.service (from rev 658550, badvpn/trunk/badvpn-udpgw.service)
===================================================================
--- community-staging-x86_64/badvpn-udpgw.service	                        (rev 0)
+++ community-staging-x86_64/badvpn-udpgw.service	2020-07-07 13:39:25 UTC (rev 658553)
@@ -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