[arch-commits] Commit in openvpn/repos (8 files)
Sébastien Luttringer
seblu at archlinux.org
Mon Sep 14 12:24:27 UTC 2015
Date: Monday, September 14, 2015 @ 14:24:27
Author: seblu
Revision: 246029
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
openvpn/repos/testing-i686/
openvpn/repos/testing-i686/PKGBUILD
(from rev 246028, openvpn/trunk/PKGBUILD)
openvpn/repos/testing-i686/openvpn.install
(from rev 246028, openvpn/trunk/openvpn.install)
openvpn/repos/testing-i686/openvpn at .service
(from rev 246028, openvpn/trunk/openvpn at .service)
openvpn/repos/testing-x86_64/
openvpn/repos/testing-x86_64/PKGBUILD
(from rev 246028, openvpn/trunk/PKGBUILD)
openvpn/repos/testing-x86_64/openvpn.install
(from rev 246028, openvpn/trunk/openvpn.install)
openvpn/repos/testing-x86_64/openvpn at .service
(from rev 246028, openvpn/trunk/openvpn at .service)
---------------------------------+
testing-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++
testing-i686/openvpn.install | 8 ++++++
testing-i686/openvpn at .service | 10 +++++++
testing-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++
testing-x86_64/openvpn.install | 8 ++++++
testing-x86_64/openvpn at .service | 10 +++++++
6 files changed, 136 insertions(+)
Copied: openvpn/repos/testing-i686/PKGBUILD (from rev 246028, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2015-09-14 12:24:27 UTC (rev 246029)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.8
+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.gz
+ http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz.asc
+ openvpn at .service)
+sha256sums=('532435eff61c14b44a583f27b72f93e7864e96c95fe51134ec0ad4b1b1107c51'
+ 'SKIP'
+ '860976d954bd1db95861b95f0ef42e4e80618aa23a9f2aed26d17ee3d09110df')
+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
+ 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 246028, openvpn/trunk/openvpn.install)
===================================================================
--- testing-i686/openvpn.install (rev 0)
+++ testing-i686/openvpn.install 2015-09-14 12:24:27 UTC (rev 246029)
@@ -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 246028, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-i686/openvpn at .service (rev 0)
+++ testing-i686/openvpn at .service 2015-09-14 12:24:27 UTC (rev 246029)
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid
+PIDFile=/run/openvpn@%i.pid
+
+[Install]
+WantedBy=multi-user.target
Copied: openvpn/repos/testing-x86_64/PKGBUILD (from rev 246028, openvpn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2015-09-14 12:24:27 UTC (rev 246029)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.8
+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.gz
+ http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz.asc
+ openvpn at .service)
+sha256sums=('532435eff61c14b44a583f27b72f93e7864e96c95fe51134ec0ad4b1b1107c51'
+ 'SKIP'
+ '860976d954bd1db95861b95f0ef42e4e80618aa23a9f2aed26d17ee3d09110df')
+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
+ 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 246028, openvpn/trunk/openvpn.install)
===================================================================
--- testing-x86_64/openvpn.install (rev 0)
+++ testing-x86_64/openvpn.install 2015-09-14 12:24:27 UTC (rev 246029)
@@ -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 246028, openvpn/trunk/openvpn at .service)
===================================================================
--- testing-x86_64/openvpn at .service (rev 0)
+++ testing-x86_64/openvpn at .service 2015-09-14 12:24:27 UTC (rev 246029)
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid
+PIDFile=/run/openvpn@%i.pid
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list