Make systemd user configurable and create log directory

This commit is contained in:
2025-01-11 01:18:03 -05:00
parent 2c87a41048
commit 7b58b4a3ed
6 changed files with 20 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ deb:
docker run --rm \
-v .:/src:ro \
-v ./$(BUILD_DIR)/deb:/output \
--user $(shell id -u):$(shell i -g) \
--user $(shell id -u):$(shell id -g) \
$(DEB_IMAGE)
rpm:
@@ -33,7 +33,7 @@ rpm:
docker run --rm \
-v .:/src:ro \
-v ./$(BUILD_DIR)/rpm:/output \
--user $(shell id -u):$(shell i -g) \
--user $(shell id -u):$(shell id -g) \
$(RPM_IMAGE)
tgz:
@@ -61,7 +61,7 @@ install:
# Install manpage
cp manpages/* $(DESTDIR)/usr/share/man/man1/
gzip -9 $(DESTDIR)/usr/share/man/man1/$(PACKAGE_NAME).1
gzip -f -9 $(DESTDIR)/usr/share/man/man1/$(PACKAGE_NAME).1
# Install sample config
cp sample-config/* $(DESTDIR)/etc/$(PACKAGE_NAME)/
@@ -103,7 +103,7 @@ ubuntu-install-test:
# Debian package creation logic
package-deb:
$(MAKE) install DESTDIR=/output
cp -r DEBIAN /output/
cp -r --preserve=mode DEBIAN /output/
dpkg-deb -Zgzip --build /output /output/$(PACKAGE_NAME)_$(VERSION).deb
# RPM package creation logic