Build debian packages #56
5
Makefile
5
Makefile
|
@ -146,6 +146,11 @@ release-os-package:
|
||||||
release-zip:
|
release-zip:
|
||||||
$(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),cd $(file); zip -r ../../zip/$(shell basename $(file)).zip *; cd ../../../; )
|
$(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),cd $(file); zip -r ../../zip/$(shell basename $(file)).zip *; cd ../../../; )
|
||||||
|
|
||||||
|
# Builds a deb package using fpm from a previously created binary (using make build)
|
||||||
|
.PHONY: build-deb
|
||||||
|
build-deb:
|
||||||
|
fpm -s dir -t deb -n vikunja -v $(VERSION) --license GPLv3 --directories /opt/vikunja --after-install ./build/after-install.sh --description 'Vikunja is an open-source todo application, written in Go. It lets you create lists,tasks and share them via teams or directly between users.' -m maintainers@vikunja.io ./$(EXECUTABLE)=/opt/vikunja/vikunja ./templates=/opt/vikunja ./config.yml.sample=/etc/vikunja/config.yml
|
||||||
|
|
||||||
.PHONY: got-swag
|
.PHONY: got-swag
|
||||||
got-swag: do-the-swag
|
got-swag: do-the-swag
|
||||||
@diff=$$(git diff docs/swagger/swagger.json); \
|
@diff=$$(git diff docs/swagger/swagger.json); \
|
||||||
|
|
8
build/after-install.sh
Normal file
8
build/after-install.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
ln -s /opt/vikunja/vikunja /usr/bin/vikunja
|
||||||
|
|
||||||
|
# Fix the config to contain proper values
|
||||||
|
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||||
|
sed -i "s/<jwt-secret>/$NEW_SECRET/g" /etc/vikunja/config.yml
|
||||||
|
sed -i "s/<rootpath>/\/opt\/vikunja\//g" /etc/vikunja/config.yml
|
||||||
|
sed -i "s/Path: \"\.\/vikunja.db\"/Path: \"\\/opt\/vikunja\/vikunja.db\"/g" /etc/vikunja/config.yml
|
|
@ -2,7 +2,7 @@ service:
|
||||||
# This token is used to verify issued JWT tokens.
|
# This token is used to verify issued JWT tokens.
|
||||||
# Default is a random token which will be generated at each startup of vikunja.
|
# Default is a random token which will be generated at each startup of vikunja.
|
||||||
# (This means all already issued tokens will be invalid once you restart vikunja)
|
# (This means all already issued tokens will be invalid once you restart vikunja)
|
||||||
JWTSecret: "cei6gaezoosah2bao3ieZohkae5aicah"
|
JWTSecret: "<jwt-secret>"
|
||||||
# The interface on which to run the webserver
|
# The interface on which to run the webserver
|
||||||
interface: ":3456"
|
interface: ":3456"
|
||||||
# The URL of the frontend, used to send password reset emails.
|
# The URL of the frontend, used to send password reset emails.
|
||||||
|
@ -10,7 +10,7 @@ service:
|
||||||
# The base path on the file system where the binary and assets are.
|
# The base path on the file system where the binary and assets are.
|
||||||
# Vikunja will also look in this path for a config file, so you could provide only this variable to point to a folder
|
# Vikunja will also look in this path for a config file, so you could provide only this variable to point to a folder
|
||||||
# with a config file which will then be used.
|
# with a config file which will then be used.
|
||||||
rootpath: <the path of the executable>
|
rootpath: <rootpath>
|
||||||
# The number of items which gets returned per page
|
# The number of items which gets returned per page
|
||||||
pagecount: 50
|
pagecount: 50
|
||||||
# If set to true, enables a /metrics endpoint for prometheus to collect metrics about the system
|
# If set to true, enables a /metrics endpoint for prometheus to collect metrics about the system
|
||||||
|
|
Loading…
Reference in New Issue
Block a user