summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 036afa3af3f5df07eb6dc7984c5eeeb1e533fd3e (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
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: robertfoster
pkgname=xplico
pkgver=1.2.2
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc="Internet Traffic Decoder. Network Forensic Analysis Tool (NFAT)"
url="http://www.xplico.org/"
license=('GPL')
depends=(
  apache
  json-c
  lame
  libmaxminddb
  libnet
  libpcap
  mariadb-clients
  ndpi
  net-tools
  perl
  php
  php-apache
  php-mcrypt
  php-sqlite
  python-httplib2
  python-psycopg2
  recode
  sox
  sqlite3
  tcpdump
)
optdepends=('geoip2-database: City database for geoip IP location lookups'
  'ghostpdl: reconstruct document printed with network printer'
  'videosnarf: decode VoIP based on RTP')
source=("https://github.com/xplico/xplico/archive/v.${pkgver}.tar.gz"
  init-detection.patch
  json-c.patch)
install=xplico.install

prepare() {
  cd ${pkgname}-v.${pkgver}
  patch -Np1 -i ../init-detection.patch
  patch -Np1 -i ../json-c.patch
}

build() {
  cd "${pkgname}-v.${pkgver}"
  make -j1
}

package() {
  cd "${pkgname}-v.${pkgver}"
  make DESTDIR="${pkgdir}" install
  ln -s /usr/share/GeoIP/GeoLite2-City.mmdb \
  "${pkgdir}/opt/xplico/GeoLite2-City.mmdb"
}

sha256sums=('9f9ba1ac038eedcb91c13a1879393f511e90a4f749de83ad40c57413369f9056'
            'a365905058d0dd29169011be41bf7fd1eb7f9c775e01788fd3637c803a314088'
            '17e363bfe2d9bf1faec5ccbe6d3c7480e8510c9cb14fd056a117329dff4fa94a')