Date: Wednesday, April 9, 2014 @ 22:20:57
  Author: thomas
Revision: 210093

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

Added:
  openvpn/repos/testing-i686/
  openvpn/repos/testing-i686/PKGBUILD
    (from rev 210092, openvpn/trunk/PKGBUILD)
  openvpn/repos/testing-i686/openvpn.install
    (from rev 210092, openvpn/trunk/openvpn.install)
  openvpn/repos/testing-i686/openvpn@.service
    (from rev 210092, openvpn/trunk/openvpn@.service)
  openvpn/repos/testing-x86_64/
  openvpn/repos/testing-x86_64/PKGBUILD
    (from rev 210092, openvpn/trunk/PKGBUILD)
  openvpn/repos/testing-x86_64/openvpn.install
    (from rev 210092, openvpn/trunk/openvpn.install)
  openvpn/repos/testing-x86_64/openvpn@.service
    (from rev 210092, openvpn/trunk/openvpn@.service)

---------------------------------+
 testing-i686/PKGBUILD           |   49 ++++++++++++++++++++++++++++++++++++++
 testing-i686/openvpn.install    |    8 ++++++
 testing-i686/openvpn@.service   |    9 ++++++
 testing-x86_64/PKGBUILD         |   49 ++++++++++++++++++++++++++++++++++++++
 testing-x86_64/openvpn.install  |    8 ++++++
 testing-x86_64/openvpn@.service |    9 ++++++
 6 files changed, 132 insertions(+)

Copied: openvpn/repos/testing-i686/PKGBUILD (from rev 210092, 
openvpn/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2014-04-09 20:20:57 UTC (rev 210093)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Thomas Bächler <tho...@archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.3
+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' 'lzo2' 'iproute2')
+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@.service)
+md5sums=('5c66ea3143ac884a3075521bd74ede06'
+         'SKIP'
+         '71fab8d1c2aa3a1f2609e259eaaf88b3')
+
+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@.service 
"${pkgdir}"/usr/lib/systemd/system/openvpn@.service
+}

Copied: openvpn/repos/testing-i686/openvpn.install (from rev 210092, 
openvpn/trunk/openvpn.install)
===================================================================
--- testing-i686/openvpn.install                                (rev 0)
+++ testing-i686/openvpn.install        2014-04-09 20:20:57 UTC (rev 210093)
@@ -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@.service (from rev 210092, 
openvpn/trunk/openvpn@.service)
===================================================================
--- testing-i686/openvpn@.service                               (rev 0)
+++ testing-i686/openvpn@.service       2014-04-09 20:20:57 UTC (rev 210093)
@@ -0,0 +1,9 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf 
--daemon openvpn@%i
+
+[Install]
+WantedBy=multi-user.target

Copied: openvpn/repos/testing-x86_64/PKGBUILD (from rev 210092, 
openvpn/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2014-04-09 20:20:57 UTC (rev 210093)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Thomas Bächler <tho...@archlinux.org>
+
+pkgname=openvpn
+pkgver=2.3.3
+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' 'lzo2' 'iproute2')
+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@.service)
+md5sums=('5c66ea3143ac884a3075521bd74ede06'
+         'SKIP'
+         '71fab8d1c2aa3a1f2609e259eaaf88b3')
+
+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@.service 
"${pkgdir}"/usr/lib/systemd/system/openvpn@.service
+}

Copied: openvpn/repos/testing-x86_64/openvpn.install (from rev 210092, 
openvpn/trunk/openvpn.install)
===================================================================
--- testing-x86_64/openvpn.install                              (rev 0)
+++ testing-x86_64/openvpn.install      2014-04-09 20:20:57 UTC (rev 210093)
@@ -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@.service (from rev 210092, 
openvpn/trunk/openvpn@.service)
===================================================================
--- testing-x86_64/openvpn@.service                             (rev 0)
+++ testing-x86_64/openvpn@.service     2014-04-09 20:20:57 UTC (rev 210093)
@@ -0,0 +1,9 @@
+[Unit]
+Description=OpenVPN connection to %i
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf 
--daemon openvpn@%i
+
+[Install]
+WantedBy=multi-user.target

Reply via email to