summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 578cfd6b86ce9bb94139bd5c2f6cefc08e637a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Anthony C <kurodroid.1@gmail.com>
# Contributor: Michael P <ptchinster@archlinux.us>

pkgname=honeyd
pkgver=1.5c
pkgrel=5
pkgdesc="A small daemon that creates virtual hosts on a network."
depends=('libdnet' ' libevent' 'libdnsres' 'libpcap' 'pcre' 'zlib')
source=(http://www.honeyd.org/uploads/$pkgname-$pkgver.tar.gz)
md5sums=('9887b44333e380a2205f64fa245cb727')
arch=(i686 x86_64 arm)
url="http://www.honeyd.org"
license=("GPL")

build()
{
	cd $srcdir/$pkgname-$pkgver
  
	mkdir -p $pkgdir/usr/share/honeyd

	./configure --prefix=/usr
	make || return 1
	make prefix=$pkgdir/usr install
  
	# Fix permissions on webserver dirs
	for dir in webserver webserver/htdocs webserver/htdocs/graphs \
	webserver/htdocs/images webserver/htdocs/styles webserver/htdocs/templates \
	webserver/htdocs/templates/inc
		do chmod 755 $pkgdir/usr/share/honeyd/$dir
	done
}