mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# $Id: PKGBUILD 52410 2009-09-19 05:06:59Z allan $
|
|
# Maintainer:
|
|
# Contributor: simo <simo@archlinux.org>
|
|
|
|
pkgname=tor
|
|
pkgver=0.2.1.19
|
|
pkgrel=2
|
|
pkgdesc="TOR Client"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.torproject.org/"
|
|
license=('custom')
|
|
depends=('openssl' 'libevent')
|
|
backup=('etc/tor/torrc etc/tor/torrc-dist etc/tor/tor-tsocks.conf')
|
|
install=tor.install
|
|
source=(http://www.torproject.org/dist/tor-${pkgver}.tar.gz
|
|
tor.conf
|
|
tor.rc)
|
|
md5sums=('2c0ca9bf5d0cfb771f4d6bec9c4360ca'
|
|
'56c75d4e8a66f34167d31e38c43793dd'
|
|
'4e39d56f462fc9f59e91715ac1b994c0')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
|
|
make || return 1
|
|
|
|
install -d $pkgdir/var/lib || return 1
|
|
install -o43 -g43 -d -m0755 $startdir/pkg/var/lib/tor || return 1
|
|
|
|
make DESTDIR=$pkgdir install || return 1
|
|
mv $pkgdir/etc/tor/torrc.sample $pkgdir/etc/tor/torrc-dist || return 1
|
|
|
|
install -D -m644 $srcdir/tor.conf $pkgdir/etc/tor/torrc || return 1
|
|
install -D -m755 $srcdir/tor.rc $pkgdir/etc/rc.d/tor || return 1
|
|
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/tor/LICENSE
|
|
}
|