Make systemd user configurable and create log directory
This commit is contained in:
8
Makefile
8
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user