summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse2016-12-16 14:12:52 +0100
committerChristian Hesse2016-12-16 14:12:52 +0100
commit63ca41477cf841a5fd982d4f94b72b0f8deadf49 (patch)
tree80064663b2a6da680c2d876437b2dbbb14697d77
parent7bec92f1a79de95a3405c5cfb5f93592dbb9e8a2 (diff)
downloadaur-63ca41477cf841a5fd982d4f94b72b0f8deadf49.tar.gz
commit openvpn-git 2.4.rc2.r0.ga5ae0138-1
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD17
2 files changed, 13 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c4df80e2325..be70cfec0f1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Dec 7 13:38:44 UTC 2016
+# Fri Dec 16 13:12:52 UTC 2016
pkgbase = openvpn-git
pkgdesc = An easy-to-use, robust and highly configurable VPN (Virtual Private Network) - git checkout
- pkgver = 2.4.rc1.r4.g212ef1a
+ pkgver = 2.4.rc2.r0.ga5ae0138
pkgrel = 1
url = http://openvpn.net/index.php/open-source.html
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 67c6a290666..a5933f99c4a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=openvpn-git
-pkgver=2.4.rc1.r4.g212ef1a
+pkgver=2.4.rc2.r0.ga5ae0138
pkgrel=1
pkgdesc='An easy-to-use, robust and highly configurable VPN (Virtual Private Network) - git checkout'
arch=(i686 x86_64)
@@ -38,14 +38,15 @@ prepare() {
# plugin path
patch -Np1 < "${srcdir}"/0001-plugin.patch
+
+ # regenerate configure script
+ autoreconf -vi
}
build() {
cd openvpn/
- autoreconf -vi
- CFLAGS="${CFLAGS} -DPLUGIN_LIBDIR=\\\"/usr/lib/openvpn/plugins\\\"" \
- ./configure \
+ ./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-iproute2 \
@@ -80,8 +81,12 @@ package() {
ln -sf /usr/share/doc/"${pkgname}"/{COPYING,COPYRIGHT.GPL} "${pkgdir}"/usr/share/licenses/openvpn
# Install contrib
- install -d -m0755 "${pkgdir}"/usr/share/openvpn/contrib
- cp -r contrib "${pkgdir}"/usr/share/openvpn
+ for FILE in $(find contrib -type f); do
+ case "$(file --brief --mime-type "${FILE}")" in
+ "text/x-shellscript") install -D -m0755 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
+ *) install -D -m0644 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
+ esac
+ done
# Install systemd services
install -d -m0755 "${pkgdir}"/usr/lib/systemd/system/