summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d060d256b5d92912b19781058bb401339ee2ba2e (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This file is part of BlackArch Linux ( http://blackarch.org ).
# See COPYING for license details.

# TODO: check license
pkgname='honeyd'
pkgver='1.6.7'
pkgrel=8
pkgdesc='A small daemon that creates virtual hosts on a network.'
url='https://github.com/DataSoft/Honeyd/'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
license=('GPL')
depends=('libdnet' 'libevent' 'libedit' 'libpcap' 'pcre' 'zlib' 'tcl' 'python2')
options=('!makeflags')
source=("https://github.com/DataSoft/Honeyd/archive/honeyd-${pkgver}.tar.gz"
        'python.patch')
sha1sums=('a036409d59e92c0903b41ba4e8392aed499f6867'
          '85a76a6b8e05f22a243f62774343ed0a08ceb157')

build() {
  cd "$srcdir/Honeyd-honeyd-$pkgver"

  ./autogen.sh

  ./configure --prefix=/usr

  #patch -p1 -i ../python.patch

  make

  sed -i 's/python/python2/' Makefile
}

package() {
  cd "$srcdir/Honeyd-honeyd-$pkgver"

  mkdir -p "$pkgdir/usr/share/honeyd"

  make prefix="$pkgdir/usr" install

  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
}