aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/archlinux/PKGBUILD
blob: c09c6264940e32e5ba444d86c05f3e495be235d5 (plain) (blame)
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
# Maintainer: Yun-Chih Chen <yunchih@csie.ntu.edu.tw>
pkgname=nfcollect
pkgver=0.2
pkgrel=2
pkgdesc='Collect NFLOG log entries and commit them to stable storage in binary (compressed) format'
arch=(x86_64)
url='https://github.com/yunchih/nfcollect'
license=(MIT)
makedepends=(automake autoconf clang make)
depends=(libnetfilter_log sqlite zstd)
source=(https://github.com/yunchih/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}-${pkgrel}.tar.gz)
sha1sums=('530cfcab1718cb21bb61ad94c6b8d27ac5d582d6')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  true
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 "service/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
  install -Dm644 "service/default" "${pkgdir}/etc/default/${pkgname}"
}