Files
vikunja/nfpm.yaml
kolaente cbd33ef8cb feat(packages)!: store data in /var/lib/vikunja
The os packages previously stored the sqlite database and all other
runtime data in /opt/vikunja, next to the binary. Fresh installs now
default to /var/lib/vikunja, which is the correct FHS location for
variable state data. The package creates the directory and the service
units use it as their working directory.

BREAKING CHANGE: New installations store their data in /var/lib/vikunja
instead of /opt/vikunja. Existing installations keep their current
config and are unaffected, but setups relying on the old default path
for new machines need to move their data or adjust the config.
2026-08-05 19:22:42 +02:00

51 lines
1.4 KiB
YAML

name: "vikunja"
arch: "<arch>"
platform: "linux"
version: "<version>"
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."
maintainer: "Vikunja Maintainers <maintainers@vikunja.io>"
homepage: "https://vikunja.io"
section: "default"
priority: "extra"
license: "AGPLv3"
depends:
- systemd
rpm:
signature:
key_file: ${NFPM_GPG_KEY_FILE}
# apk and archlinux run `scripts.postinstall` on a fresh install only — nfpm
# maps their upgrade hooks from these packager-specific keys instead. Without
# them, upgrading on Alpine or Arch runs no maintainer script at all.
apk:
scripts:
postupgrade: ./build/after-install-openrc.sh
archlinux:
scripts:
postupgrade: ./build/after-install.sh
overrides:
apk:
depends:
- openrc
scripts:
postinstall: ./build/after-install-openrc.sh
contents:
- src: <binlocation>
dst: /opt/vikunja/vikunja
- src: ./config.yml.sample
dst: /etc/vikunja/config.yml
# noreplace only affects rpm; the other packagers treat it as plain config.
type: "config|noreplace"
- src: /opt/vikunja/vikunja
dst: /usr/local/bin/vikunja
type: "symlink"
- dst: /var/lib/vikunja
type: dir
- src: vikunja.service
dst: /usr/lib/systemd/system/vikunja.service
- src: vikunja.initd
dst: /etc/init.d/vikunja
type: "config"
packager: apk
scripts:
postinstall: ./build/after-install.sh