-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathPKGBUILD
More file actions
49 lines (42 loc) · 1.18 KB
/
PKGBUILD
File metadata and controls
49 lines (42 loc) · 1.18 KB
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
# Maintainer: Susant Sahani <[email protected]>
pkgname=systemd-netlogd
pkgver=1.4.5
pkgrel=1
pkgdesc='Forward systemd journal entries to remote syslog servers'
arch=('x86_64' 'aarch64')
url='https://github.com/systemd/systemd-netlogd'
license=('LGPL-2.1-or-later')
depends=('systemd' 'openssl')
makedepends=('meson' 'gperf' 'libcap' 'python-sphinx' 'cmocka')
backup=('etc/systemd/netlogd.conf')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
meson setup build \
--prefix=/usr/lib/systemd \
--sysconfdir=/etc/systemd
meson compile -C build
}
check() {
cd "$pkgname-$pkgver"
meson test -C build
}
package() {
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir" meson install -C build
install -Dm644 LICENSE.LGPL2.1 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
post_install() {
getent group systemd-journal >/dev/null 2>&1 || groupadd -r systemd-journal
getent passwd systemd-journal-netlog >/dev/null || \
useradd -r -g systemd-journal -d / -s /usr/bin/nologin \
-c "systemd Network Logging" systemd-journal-netlog
systemctl daemon-reload
}
post_upgrade() {
systemctl daemon-reload
}
post_remove() {
systemctl daemon-reload
}