updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / htun / PKGBUILD
blob73ba20cafa7c2fd43b67f27f5caccdeee2afec7e
1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=htun
4 pkgver=0.9.6
5 pkgrel=1
6 pkgdesc="Creates a virtual IP network over HTTP by encapsulating IP traffic into valid HTTP requests"
7 arch=('i686' 'x86_64')
8 url="http://linux.softpedia.com/get/System/Networking/HTun-14751.shtml"
9 license=('GPL')
10 backup=('etc/htund.conf')
11 source=("http://www.sourcefiles.org/Networking/Tools/Proxy/$pkgname-$pkgver.tar.gz"
12         'include-and-static-updates.patch'
13         'htund')
14 md5sums=('76226191f9020520fbaa480d1d428c2d'
15          'ad23071a6d2481c3a7d632c3a625f2bb'
16          '113c2a9f2ad15962bc975e35eaaf0ae6')
18 build() {
19  cd "$srcdir/$pkgname-$pkgver/src"
20  patch -d .. -p0 < "$srcdir/include-and-static-updates.patch"
21  make
24 package() {
25  install -Dm 755 "$srcdir/$pkgname-$pkgver/src/htund" "$pkgdir/usr/bin/htund"
26  install -Dm 644 "$srcdir/$pkgname-$pkgver/doc/htund.conf" "$pkgdir/etc/htund.conf"
27  install -Dm 755 "$srcdir/htund" "$pkgdir/etc/rc.d/htund"
29  for file in CHANGELOG FAQ README REPORTING-BUGS TODO; do
30   install -Dm 644 "$srcdir/$pkgname-$pkgver/doc/$file" "$pkgdir/usr/share/$pkgname/$file"
31  done