[arch-commits] CVS update of core/support/openvpn (PKGBUILD openvpn.install)

Tom Killian tom at archlinux.org
Sun Nov 4 23:18:34 UTC 2007


    Date: Sunday, November 4, 2007 @ 18:18:34
  Author: tom
    Path: /home/cvs-core/core/support/openvpn

   Added: openvpn.install (1.1)
Modified: PKGBUILD (1.15 -> 1.16)

upgpkg: openvpn 2.0.9-2
added easy-rsa scripts


-----------------+
 PKGBUILD        |   11 ++++++++---
 openvpn.install |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 3 deletions(-)


Index: core/support/openvpn/PKGBUILD
diff -u core/support/openvpn/PKGBUILD:1.15 core/support/openvpn/PKGBUILD:1.16
--- core/support/openvpn/PKGBUILD:1.15	Tue Oct 24 05:09:18 2006
+++ core/support/openvpn/PKGBUILD	Sun Nov  4 18:18:33 2007
@@ -1,14 +1,17 @@
-# $Id: PKGBUILD,v 1.15 2006/10/24 09:09:18 tpowa Exp $
+# $Id: PKGBUILD,v 1.16 2007/11/04 23:18:33 tom Exp $
 # Maintainer: Judd Vinet <jvinet at zeroflux.org>
+
 pkgname=openvpn
 pkgver=2.0.9
-pkgrel=1
+pkgrel=2
 pkgdesc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
 arch=(i686 x86_64)
 url="http://openvpn.sourceforge.net/"
 depends=('openssl' 'lzo2')
+backup=(usr/share/openvpn/easy-rsa/vars usr/share/openvpn/easy-rsa/openssl.cnf)
 source=(http://openvpn.net/release/openvpn-$pkgver.tar.gz)
 md5sums=('60745008b90b7dbe25fe8337c550fec6')
+install=openvpn.install
 
 build() {
   cd $startdir/src/$pkgname-$pkgver
@@ -17,5 +20,7 @@
   make DESTDIR=$startdir/pkg install
   mkdir -p $startdir/pkg/etc/openvpn
   cp -a sample-config-files $startdir/pkg/etc/openvpn/examples
-  chmod 755 $startdir/pkg/etc/openvpn/examples
+  
+  # Install easy-rsa
+  make -C easy-rsa/2.0 install DESTDIR=$startdir/pkg PREFIX=usr/share/openvpn/easy-rsa
 }
Index: core/support/openvpn/openvpn.install
diff -u /dev/null core/support/openvpn/openvpn.install:1.1
--- /dev/null	Sun Nov  4 18:18:34 2007
+++ core/support/openvpn/openvpn.install	Sun Nov  4 18:18:33 2007
@@ -0,0 +1,32 @@
+
+
+post_install() {
+  cat << 'EOM'
+  
+  ==>
+  ==> PLEASE NOTE:
+  ==> Config file examples are provided in /etc/openvpn/examples.
+  ==> 
+  ==> The "easy-rsa" key management scripts are available in
+  ==> /usr/share/openvpn/easy-rsa.
+  ==>
+
+EOM
+}
+
+post_upgrade() {
+  cat << 'EOM'
+  
+  ==>
+  ==> PLEASE NOTE:
+  ==> The openvpn package now includes the "easy-rsa" key
+  ==> management scripts, which are installed in 
+  ==> /use/share/openvpn/easy-rsa.
+  ==>
+
+EOM
+}
+      
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list