summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d983265ab2d2e5181286ad765e7489cd22d576da (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
# Maintainer: Thomas Andrejak <thomas.andrejak@gmail.com>

pkgname=prelude-manager
pkgver=5.2.0
pkgrel=1
pkgdesc="Bus communication for all Prelude modules"
arch=('i686' 'x86_64')
url="https://www.prelude-siem.org"
license=('GPLv2')
makedepends=('gtk-doc')
# libmaxminddb-git and not libmaxminddb because libmaxminddb do not provide ".pc" file
depends=('tcp_wrappers' 'libmaxminddb' 'libprelude' 'libpreludedb')
source=("https://www.prelude-siem.org/pkg/src/5.2.0/$pkgname-$pkgver.tar.gz"
        "prelude-manager.run"
	"prelude-manager.service")
install="$pkgname.install"
backup=('etc/prelude-manager/prelude-manager.conf')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  CPP="cpp -P" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  rm -rf "$pkgdir/var/run"
  install -D -m 0644 "$srcdir/$pkgname.run" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
  install -D -m 0644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}

md5sums=('adfbb45ce1607ccf5607a9bd2f9aa800' '8e2009544ddf286eab60e6b322d89c1e' 'c93f36811d69bbd35fcbb7af580dc5f2')