[arch-commits] Commit in openvpn/repos (8 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Thu May 12 20:24:57 UTC 2016
Date: Thursday, May 12, 2016 @ 22:24:57
Author: bpiotrowski
Revision: 267909
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
openvpn/repos/testing-i686/
openvpn/repos/testing-i686/PKGBUILD
(from rev 267908, openvpn/trunk/PKGBUILD)
openvpn/repos/testing-i686/openvpn.install
(from rev 267908, openvpn/trunk/openvpn.install)
openvpn/repos/testing-i686/openvpn at .service
(from rev 267908, openvpn/trunk/openvpn at .service)
openvpn/repos/testing-x86_64/
openvpn/repos/testing-x86_64/PKGBUILD
(from rev 267908, openvpn/trunk/PKGBUILD)
openvpn/repos/testing-x86_64/openvpn.install
(from rev 267908, openvpn/trunk/openvpn.install)
openvpn/repos/testing-x86_64/openvpn at .service
(from rev 267908, openvpn/trunk/openvpn at .service)
---------------------------------+
testing-i686/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++
testing-i686/openvpn.install | 8 +++++
testing-i686/openvpn at .service | 15 ++++++++++
testing-x86_64/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++
testing-x86_64/openvpn.install | 8 +++++
testing-x86_64/openvpn at .service | 15 ++++++++++
6 files changed, 158 insertions(+)
Copied: openvpn/repos/testing-i686/PKGBUILD (from rev 267908, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.11
+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')
+makedepends=('systemd')
+license=('custom')
+install=openvpn.install
+source=(http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz
+ http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz.asc
+ openvpn at .service)
+sha256sums=('0f5f1ca1dc5743fa166d93dd4ec952f014b5f33bafd88f0ea34b455cae1434a7'
+ 'SKIP'
+ '47a4ee993f8aaa7370e9a84384fcfc993fd76aa4db11c46629b156d0c5fad49a')
+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-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.install (from rev 267908, openvpn/trunk/openvpn.install)
===================================================================
--- testing-i686/openvpn.install (rev 0)
+++ testing-i686/openvpn.install 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ if [ $(vercmp 2.3.2-1 $2) -ge 0 ]; then
+ echo ">>> easy-rsa has moved into its own package. Run:"
+ echo ">>> # pacman -S easy-rsa"
+ fi
+}
Copied: openvpn/repos/testing-i686/openvpn at .service (from rev 267908, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-i686/openvpn at .service (rev 0)
+++ testing-i686/openvpn at .service 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,15 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+PrivateTmp=true
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%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 267908, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.11
+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')
+makedepends=('systemd')
+license=('custom')
+install=openvpn.install
+source=(http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz
+ http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.xz.asc
+ openvpn at .service)
+sha256sums=('0f5f1ca1dc5743fa166d93dd4ec952f014b5f33bafd88f0ea34b455cae1434a7'
+ 'SKIP'
+ '47a4ee993f8aaa7370e9a84384fcfc993fd76aa4db11c46629b156d0c5fad49a')
+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-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.install (from rev 267908, openvpn/trunk/openvpn.install)
===================================================================
--- testing-x86_64/openvpn.install (rev 0)
+++ testing-x86_64/openvpn.install 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ if [ $(vercmp 2.3.2-1 $2) -ge 0 ]; then
+ echo ">>> easy-rsa has moved into its own package. Run:"
+ echo ">>> # pacman -S easy-rsa"
+ fi
+}
Copied: openvpn/repos/testing-x86_64/openvpn at .service (from rev 267908, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-x86_64/openvpn at .service (rev 0)
+++ testing-x86_64/openvpn at .service 2016-05-12 20:24:57 UTC (rev 267909)
@@ -0,0 +1,15 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+PrivateTmp=true
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%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