summaryrefslogtreecommitdiff
path: root/core/openvpn
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-13 10:18:14 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-13 10:18:14 +0100
commitd27bbcebde95f792e0660af3657878216b2590c3 (patch)
treeebd693dbaeb22eb25643e06b80facc1e0f073e77 /core/openvpn
parent68dc88e3f45d6cb33a56ca10ec02f7e990636d31 (diff)
parent0671250710c3e7312a4693ac45ebbaacf471d1dc (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: core/curl/PKGBUILD core/lvm2/PKGBUILD core/openvpn/PKGBUILD extra/diffstat/PKGBUILD extra/libxcb/PKGBUILD extra/xorg-xkbutils/PKGBUILD extra/xorg-xvinfo/PKGBUILD
Diffstat (limited to 'core/openvpn')
-rw-r--r--core/openvpn/PKGBUILD60
-rw-r--r--core/openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch11
-rw-r--r--core/openvpn/openvpn@.service2
3 files changed, 37 insertions, 36 deletions
diff --git a/core/openvpn/PKGBUILD b/core/openvpn/PKGBUILD
index cad8888fb..75eb0f511 100644
--- a/core/openvpn/PKGBUILD
+++ b/core/openvpn/PKGBUILD
@@ -1,45 +1,46 @@
-# $Id: PKGBUILD 165626 2012-08-27 12:27:33Z dreisner $
+# $Id: PKGBUILD 177954 2013-02-12 12:13:51Z thomas $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=openvpn
-pkgver=2.2.2
-pkgrel=2.1
+pkgver=2.3.0
+pkgrel=2
pkgdesc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
arch=(i686 x86_64 'mips64el')
url="http://openvpn.net/index.php/open-source.html"
depends=('openssl' 'lzo2' 'iproute2')
+makedepends=('systemd')
license=('custom')
backup=(usr/share/openvpn/easy-rsa/vars
- usr/share/openvpn/easy-rsa/openssl-1.0.0.cnf
- etc/conf.d/openvpn-tapdev)
+ usr/share/openvpn/easy-rsa/openssl-1.0.0.cnf)
source=(http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz
http://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz.asc
+ http://build.openvpn.net/downloads/releases/easy-rsa-2.2.0_master.tar.gz
+ http://build.openvpn.net/downloads/releases/easy-rsa-2.2.0_master.tar.gz.asc
openvpn@.service
- openvpn.rc
- openvpn-tapdev.rc
- openvpn-tapdev.conf)
-md5sums=('c5181e27b7945fa6276d21873329c5c7'
- '81ff11ec8cd9fc3c8bc646aae24c4298'
- '44047df812a3fcd57a7e36a61732a9b9'
- 'a3809b9727f0c2af2d0770f5c7442db2'
- 'd2c48e970088d679dd3c2afd914ff731'
- '722f483c9e3ce2ec66d3301aaf7cf3d5')
+ openvpn-2.3.0-fix-systemd-ask-password-path.patch)
+md5sums=('56cffde5d5320e0b1ec364d3e486aca9'
+ '3f67e2fa605800a964dbbcfca644d283'
+ 'fbf818b6e1f212e77b9ce0e6d92584a1'
+ '46df49b85f9850fec287e311279bdbef'
+ '0846aa59d0b123d61030890f9a4135ae'
+ 'e1bd1523e38745e948c710db1a330bb1')
+options=(!libtool)
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -p0 -i $srcdir/openvpn-2.3.0-fix-systemd-ask-password-path.patch
# Build openvpn
CFLAGS="$CFLAGS -DPLUGIN_LIBDIR=\\\"/usr/lib/openvpn\\\"" ./configure \
--prefix=/usr \
--enable-password-save \
--mandir=/usr/share/man \
- --enable-iproute2
+ --enable-iproute2 \
+ --enable-systemd
+ make
+ # Build easy-rsa
+ cd $srcdir/easy-rsa-2.2.0_master
+ ./configure --prefix=/usr --with-easyrsadir=/usr/share/openvpn/easy-rsa
make
-
- # Build plugins
- for plug in auth-pam down-root; do
- cd $srcdir/$pkgname-$pkgver/plugin/$plug
- make
- done
}
package() {
@@ -49,27 +50,16 @@ package() {
install -d -m755 $pkgdir/etc/openvpn
# Install examples
install -d -m755 $pkgdir/usr/share/openvpn
- cp -r sample-config-files $pkgdir/usr/share/openvpn/examples
- find $pkgdir/usr/share/openvpn -type f -exec chmod 644 {} \;
- find $pkgdir/usr/share/openvpn -type d -exec chmod 755 {} \;
+ cp -r sample/sample-config-files $pkgdir/usr/share/openvpn/examples
# Install license
install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
- # Install plugins
- for plug in auth-pam down-root; do
- cd $srcdir/$pkgname-$pkgver/plugin/$plug
- install -D -m755 openvpn-$plug.so $pkgdir/usr/lib/openvpn/openvpn-$plug.so
- cd -
- done
# Install contrib
install -d -m755 $pkgdir/usr/share/openvpn/contrib
cp -r contrib $pkgdir/usr/share/openvpn
# Install easy-rsa
- cd $srcdir/$pkgname-$pkgver
- make -C easy-rsa/2.0 install DESTDIR=$pkgdir PREFIX=usr/share/openvpn/easy-rsa
+ cd $srcdir/easy-rsa-2.2.0_master
+ make install DESTDIR=$pkgdir
rm -f ${pkgdir}/usr/share/openvpn/easy-rsa/openssl-0.9.?.cnf
# Install rc scripts
- install -D -m755 $srcdir/openvpn.rc $pkgdir/etc/rc.d/openvpn
- install -D -m755 $srcdir/openvpn-tapdev.rc $pkgdir/etc/rc.d/openvpn-tapdev
- install -D -m644 $srcdir/openvpn-tapdev.conf $pkgdir/etc/conf.d/openvpn-tapdev
install -D -m644 $srcdir/openvpn@.service $pkgdir/usr/lib/systemd/system/openvpn@.service
}
diff --git a/core/openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch b/core/openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch
new file mode 100644
index 000000000..77291727a
--- /dev/null
+++ b/core/openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch
@@ -0,0 +1,11 @@
+--- src/openvpn/console.c.orig 2013-01-30 09:42:57.480257300 +0100
++++ src/openvpn/console.c 2013-01-30 09:43:07.446179811 +0100
+@@ -162,7 +162,7 @@ get_console_input_systemd (const char *p
+ struct argv argv;
+
+ argv_init (&argv);
+- argv_printf (&argv, "/bin/systemd-ask-password");
++ argv_printf (&argv, "/usr/bin/systemd-ask-password");
+ argv_printf_cat (&argv, "%s", prompt);
+
+ if ((std_out = openvpn_popen (&argv, NULL)) < 0) {
diff --git a/core/openvpn/openvpn@.service b/core/openvpn/openvpn@.service
index c3de3bdf7..0b7232899 100644
--- a/core/openvpn/openvpn@.service
+++ b/core/openvpn/openvpn@.service
@@ -4,7 +4,7 @@ After=network.target
[Service]
Type=forking
-ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --cd /etc/openvpn
+ExecStart=/usr/sbin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i
[Install]
WantedBy=multi-user.target