summaryrefslogtreecommitdiff
path: root/community/torsocks
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-03 01:05:38 -0800
committerroot <root@rshg054.dnsready.net>2013-03-03 01:05:38 -0800
commit945c9cd1e94fab87653f84598812dec707843d26 (patch)
treebd1fccd08cd5fff72cdc25cb51382b882b4faa3e /community/torsocks
parent98aa0004e23472ee63753fded33cd55d8b942f36 (diff)
Sun Mar 3 01:04:55 PST 2013
Diffstat (limited to 'community/torsocks')
-rw-r--r--community/torsocks/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/community/torsocks/PKGBUILD b/community/torsocks/PKGBUILD
new file mode 100644
index 000000000..6e6d3484f
--- /dev/null
+++ b/community/torsocks/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Daniel Micay <danielmicay@gmail.com>
+# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com>
+# Contributor: Rorschach <r0rschach@lavabit.com>
+
+pkgname=torsocks
+pkgver=1.3
+pkgrel=3
+pkgdesc='Wrapper to safely torify applications'
+arch=('i686' 'x86_64')
+url='http://code.google.com/p/torsocks'
+license=('GPL2')
+depends=('tor')
+makedepends=('git')
+options=(!libtool)
+backup=("etc/${pkgname}.conf")
+
+__gitroot=https://git.torproject.org/torsocks
+__gitname=torsocks
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$__gitname" ]]; then
+ cd "$__gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$__gitroot" "$__gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$__gitname-build"
+ git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build"
+ cd "$srcdir/$__gitname-build"
+
+ git checkout $pkgver
+
+ ./autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "$srcdir/$__gitname-build"
+ make DESTDIR="$pkgdir/" install
+}