[arch-commits] Commit in vpnc/trunk (PKGBUILD)

Dave Reisner dreisner at archlinux.org
Fri Nov 11 19:27:41 EST 2011


    Date: Friday, November 11, 2011 @ 19:27:41
  Author: dreisner
Revision: 142550

upgpkg: vpnc 0.5.3.svn472-1

- new upstream snapshot (add worthless OSX specific commit)
- new "upstream" vpnc-script (fixes FS#26846)
- add mktarball convenience function to PKGBUILD

Modified:
  vpnc/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-11 23:52:56 UTC (rev 142549)
+++ PKGBUILD	2011-11-12 00:27:41 UTC (rev 142550)
@@ -3,7 +3,8 @@
 # Contributor: Thomas Baechler <thomas at archlinux.org>
 
 pkgname=vpnc
-pkgver=0.5.3.svn457
+_vpncver=0.5.3
+pkgver=$_vpncver.svn472
 pkgrel=1
 pkgdesc="VPN client for cisco3000 VPN Concentrators"
 url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
@@ -14,9 +15,23 @@
 source=("ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz"
         'vpnc.conf')
 backup=('etc/vpnc/default.conf')
-md5sums=('033e642e17200a0efc0eda1c1c1886a2'
+md5sums=('51c350341ad4e7f8efbba19810b138a3'
          'a3f4e0cc682f437e310a1c86ae198e45')
 
+mktarball() {
+  svn co http://svn.unix-ag.uni-kl.de/vpnc/trunk
+  pushd trunk
+  _svnrev=$(svn info | awk '/^Revision:/ { print $2 }')
+  popd
+
+  git clone git://git.infradead.org/users/dwmw2/vpnc-scripts.git
+  cp vpnc-scripts/vpnc-script trunk/
+
+  find trunk/ -type d -name .svn -exec rm -rf {} +
+  mv trunk "$pkgname-$_vpncver.svn$_svnrev"
+  tar cJf "$pkgname-$_vpncver.svn$_svnrev"{.tar.xz,}
+}
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"
 



More information about the arch-commits mailing list