From 15ed599559b43ecd9942f3f4b97c072d5c97a025 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 18 Aug 2024 20:18:56 +0200 Subject: webiot: Add systemd unit and system user --- webiot/PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'webiot/PKGBUILD') diff --git a/webiot/PKGBUILD b/webiot/PKGBUILD index 09bf190..f34abaf 100644 --- a/webiot/PKGBUILD +++ b/webiot/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: xengineering pkgname=webiot pkgver=0.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="Lightweight IoT web server" arch=('x86_64' 'aarch64') url="https://xengineering.eu/git/webiot" @@ -32,7 +32,9 @@ build() { } package() { - cd "${srcdir}/${pkgname}" - install -D -m 755 "${srcdir}/${pkgname}/build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" - install -D -m 644 "${srcdir}/${pkgname}/config/default.json" "${pkgdir}/etc/${pkgname}/config.json" + cd "${srcdir}" + install -D -m 755 "${pkgname}/build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -D -m 644 "${pkgname}/config/default.json" "${pkgdir}/etc/${pkgname}/config.json" + install -D -m 644 "../${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" + install -D -m 644 "../sysuser.conf" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" } -- cgit v1.2.3-70-g09d2