From 0652273fe1bfbeb165715613e00583b96ed07c2d Mon Sep 17 00:00:00 2001 From: dantefromhell <90508808+dantefromhell@users.noreply.github.com> Date: Mon, 8 Nov 2021 22:40:28 +0000 Subject: [PATCH] misc: Add systemd service file to release packages According to [1] "/usr/lib/systemd/system/" is where systemd files from installed packages are stored in Arch Linux Big thanks to @jordansissel for the in-depth explanation of this PRs effects: > This PR replaces --prefix with the fpm dir package type's feature "path mapping" which lets you map a local file to a destination file when creating the package using this syntax: localpath=destinationpath [1] https://wiki.archlinux.org/title/Systemd#Writing_unit_files --- misc/fpm-pack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/fpm-pack.sh b/misc/fpm-pack.sh index 063f7699..04d5bcd3 100755 --- a/misc/fpm-pack.sh +++ b/misc/fpm-pack.sh @@ -119,5 +119,5 @@ fpm \ --package "${DIR}/${VERSION}/${DISTRO}/${OUTPUT}" \ ${CHANGELOG} \ ${DEPS} \ - --prefix "$PREFIX" \ - "$BINARY" + "misc/mgmt.service"="/usr/lib/systemd/system/mgmt.service" \ + "$BINARY"="$PREFIX/mgmt"