summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Cai2015-06-11 11:17:35 +0800
committerIvan Cai2015-06-11 11:17:35 +0800
commite0f8bd45674687fc86a0efbf97ef0c6e867755b7 (patch)
tree4c85038823389e3ccf4e614b100d246c6bc58e80
downloadaur-e0f8bd45674687fc86a0efbf97ef0c6e867755b7.tar.gz
Inital import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4f8c40c6a06
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = tinc-pre
+ pkgdesc = VPN (Virtual Private Network) daemon (Pre-release)
+ pkgver = 1.1pre11
+ pkgrel = 2
+ url = http://www.tinc-vpn.org/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = lzo2
+ depends = zlib
+ depends = openssl
+ optdepends = wxpython: gui support
+ provides = tinc-pre
+ conflicts = tinc
+ source = http://www.tinc-vpn.org/packages/tinc-1.1pre11.tar.gz
+ md5sums = e9cc2971927d31e703f0c2b1791a4edf
+
+pkgname = tinc-pre
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..326ec143c43
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+pkgname=tinc-pre
+pkgver=1.1pre11
+pkgrel=2
+pkgdesc="VPN (Virtual Private Network) daemon (Pre-release)"
+arch=(i686 x86_64)
+url="http://www.tinc-vpn.org/"
+license=('GPL')
+depends=('lzo2' 'zlib' 'openssl')
+optdepends=('wxpython: gui support')
+provides=('tinc-pre')
+conflicts=('tinc')
+source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz)
+md5sums=('e9cc2971927d31e703f0c2b1791a4edf')
+
+package() {
+cd "$startdir/src/tinc-$pkgver"
+
+./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+--sbindir=/usr/bin
+make
+make DESTDIR="$pkgdir" install
+
+mkdir -p $pkgdir/etc/tinc/
+tar xzvf doc/sample-config.tar.gz -C $pkgdir/etc/tinc/
+
+sed 's,#!/usr/bin/python,#!/usr/bin/python2,' $pkgdir/usr/bin/tinc-gui >
+$pkgdir/usr/bin/tinc-gui2
+mv $pkgdir/usr/bin/tinc-gui2 $pkgdir/usr/bin/tinc-gui
+chmod +x $pkgdir/usr/bin/tinc-gui
+}
+