updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / tor-alpha / PKGBUILD
blob2f421b56a2e270cec95f80fa21c7f9d59bab49fc
1 # Contributor: post <postwannabe@gmail.com>
2 pkgname=tor-alpha
3 pkgver=0.2.0.19
4 pkgrel=1
5 pkgdesc="An anonymizing overlay network for TCP"
6 arch=(i686 x86_64)
7 url="http://tor.eff.org"
8 license="GPL"
9 provides=(tor)
10 conflicts=(tor)
11 install=tor.install
12 depends=('openssl' 'zlib' 'libevent>=1.3d')
13 source=("http://www.torproject.org/dist/tor-$pkgver-alpha.tar.gz" "tor.conf" "tor.rc")
15 build() {
16   cd $startdir/src/tor-$pkgver-alpha
17   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
18   make || return 1
20         mkdir -p $startdir/pkg/var/lib
21         install -o43 -g43 -d -m0700 $startdir/pkg/var/lib/tor
22         install -D -m644 $startdir/src/tor.conf $startdir/pkg/etc/tor/torrc
23         install -D -m755 $startdir/src/tor.rc $startdir/pkg/etc/rc.d/tor
24         
25   make DESTDIR=$startdir/pkg install
26   mv $startdir/pkg/etc/tor/torrc.sample $startdir/pkg/etc/tor/torrc-dist
28 # vim: ft=sh sw=2 ts=2
29 md5sums=('c3f84e1ad09888ab1900873ec08f6282'
30          '56c75d4e8a66f34167d31e38c43793dd'
31                                  '4e39d56f462fc9f59e91715ac1b994c0')