[arch-commits] Commit in openvpn/repos (6 files)

Christian Hesse eworm at archlinux.org
Wed Aug 24 06:42:44 UTC 2016


    Date: Wednesday, August 24, 2016 @ 06:42:43
  Author: eworm
Revision: 274622

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  openvpn/repos/testing-i686/
  openvpn/repos/testing-i686/PKGBUILD
    (from rev 274621, openvpn/trunk/PKGBUILD)
  openvpn/repos/testing-i686/openvpn at .service
    (from rev 274621, openvpn/trunk/openvpn at .service)
  openvpn/repos/testing-x86_64/
  openvpn/repos/testing-x86_64/PKGBUILD
    (from rev 274621, openvpn/trunk/PKGBUILD)
  openvpn/repos/testing-x86_64/openvpn at .service
    (from rev 274621, openvpn/trunk/openvpn at .service)

---------------------------------+
 testing-i686/PKGBUILD           |   56 ++++++++++++++++++++++++++++++++++++++
 testing-i686/openvpn at .service   |   17 +++++++++++
 testing-x86_64/PKGBUILD         |   56 ++++++++++++++++++++++++++++++++++++++
 testing-x86_64/openvpn at .service |   17 +++++++++++
 4 files changed, 146 insertions(+)

Copied: openvpn/repos/testing-i686/PKGBUILD (from rev 274621, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-08-24 06:42:43 UTC (rev 274622)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.12
+pkgrel=1
+pkgdesc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
+arch=(i686 x86_64)
+url="http://openvpn.net/index.php/open-source.html"
+depends=('openssl' 'lzo' 'iproute2' 'libsystemd' 'pkcs11-helper')
+optdepends=('easy-rsa: easy CA and certificate handling')
+makedepends=('systemd')
+license=('custom')
+source=(http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz{,.asc}
+        openvpn at .service)
+sha256sums=('13b963414e2430215981868c77b9795d93653ee535a2d73576f7bb2c28200abc'
+            'SKIP'
+            '28840ef1e4c7c80da1d9de3224fad8e8540e0cf58326d65227cf3ce7ab867990')
+validpgpkeys=('03300E11FED16F59715F9996C29D97ED198D22A3')  # Samuli Seppänen
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  CFLAGS="$CFLAGS -DPLUGIN_LIBDIR=\\\"/usr/lib/openvpn\\\"" ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --enable-password-save \
+    --mandir=/usr/share/man \
+    --enable-iproute2 \
+    --enable-systemd \
+    --enable-pkcs11 \
+    --enable-x509-alt-username
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  # Install openvpn
+  make DESTDIR="${pkgdir}" install
+  install -d -m755 "${pkgdir}"/etc/openvpn
+
+  # Install examples
+  install -d -m755 "${pkgdir}"/usr/share/openvpn
+  cp -r sample/sample-config-files "${pkgdir}"/usr/share/openvpn/examples
+
+  # Install license
+  install -d -m755 "${pkgdir}"/usr/share/licenses/${pkgname}/
+  ln -sf /usr/share/doc/${pkgname}/{COPYING,COPYRIGHT.GPL} "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+  # Install contrib
+  install -d -m755 "${pkgdir}"/usr/share/openvpn/contrib
+  cp -r contrib "${pkgdir}"/usr/share/openvpn
+
+  # Install systemd service
+  install -D -m644 "${srcdir}"/openvpn at .service "${pkgdir}"/usr/lib/systemd/system/openvpn at .service
+}

Copied: openvpn/repos/testing-i686/openvpn at .service (from rev 274621, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-i686/openvpn at .service	                        (rev 0)
+++ testing-i686/openvpn at .service	2016-08-24 06:42:43 UTC (rev 274622)
@@ -0,0 +1,17 @@
+[Unit]
+Description=OpenVPN connection to %I
+After=syslog.target network.target network-online.target
+Documentation=man:openvpn(8)
+
+[Service]
+PrivateTmp=true
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config %i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid --status-version 2
+PIDFile=/run/openvpn@%i.pid
+CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH
+LimitNPROC=10
+DeviceAllow=/dev/null rw
+DeviceAllow=/dev/net/tun rw
+
+[Install]
+WantedBy=multi-user.target

Copied: openvpn/repos/testing-x86_64/PKGBUILD (from rev 274621, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-08-24 06:42:43 UTC (rev 274622)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.12
+pkgrel=1
+pkgdesc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
+arch=(i686 x86_64)
+url="http://openvpn.net/index.php/open-source.html"
+depends=('openssl' 'lzo' 'iproute2' 'libsystemd' 'pkcs11-helper')
+optdepends=('easy-rsa: easy CA and certificate handling')
+makedepends=('systemd')
+license=('custom')
+source=(http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz{,.asc}
+        openvpn at .service)
+sha256sums=('13b963414e2430215981868c77b9795d93653ee535a2d73576f7bb2c28200abc'
+            'SKIP'
+            '28840ef1e4c7c80da1d9de3224fad8e8540e0cf58326d65227cf3ce7ab867990')
+validpgpkeys=('03300E11FED16F59715F9996C29D97ED198D22A3')  # Samuli Seppänen
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  CFLAGS="$CFLAGS -DPLUGIN_LIBDIR=\\\"/usr/lib/openvpn\\\"" ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --enable-password-save \
+    --mandir=/usr/share/man \
+    --enable-iproute2 \
+    --enable-systemd \
+    --enable-pkcs11 \
+    --enable-x509-alt-username
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  # Install openvpn
+  make DESTDIR="${pkgdir}" install
+  install -d -m755 "${pkgdir}"/etc/openvpn
+
+  # Install examples
+  install -d -m755 "${pkgdir}"/usr/share/openvpn
+  cp -r sample/sample-config-files "${pkgdir}"/usr/share/openvpn/examples
+
+  # Install license
+  install -d -m755 "${pkgdir}"/usr/share/licenses/${pkgname}/
+  ln -sf /usr/share/doc/${pkgname}/{COPYING,COPYRIGHT.GPL} "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+  # Install contrib
+  install -d -m755 "${pkgdir}"/usr/share/openvpn/contrib
+  cp -r contrib "${pkgdir}"/usr/share/openvpn
+
+  # Install systemd service
+  install -D -m644 "${srcdir}"/openvpn at .service "${pkgdir}"/usr/lib/systemd/system/openvpn at .service
+}

Copied: openvpn/repos/testing-x86_64/openvpn at .service (from rev 274621, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-x86_64/openvpn at .service	                        (rev 0)
+++ testing-x86_64/openvpn at .service	2016-08-24 06:42:43 UTC (rev 274622)
@@ -0,0 +1,17 @@
+[Unit]
+Description=OpenVPN connection to %I
+After=syslog.target network.target network-online.target
+Documentation=man:openvpn(8)
+
+[Service]
+PrivateTmp=true
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config %i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid --status-version 2
+PIDFile=/run/openvpn@%i.pid
+CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH
+LimitNPROC=10
+DeviceAllow=/dev/null rw
+DeviceAllow=/dev/net/tun rw
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list