pkg: add backup() for config file

This commit is contained in:
Paul Stemmet 2022-12-10 21:38:50 +00:00
parent 28732aea3d
commit 4f6a3d27df
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = kdnotify-git pkgbase = kdnotify-git
pkgdesc = A keepalived FIFO notification handler pkgdesc = A keepalived FIFO notification handler
pkgver = 1.0.6 pkgver = 1.0.6
pkgrel = 1 pkgrel = 2
url = https://git.st8l.com/luxolus/kdnotify url = https://git.st8l.com/luxolus/kdnotify
arch = any arch = any
license = MPL2 license = MPL2
@ -9,7 +9,8 @@ pkgbase = kdnotify-git
makedepends = go makedepends = go
depends = glibc depends = glibc
provides = kdnotify=1.0.6 provides = kdnotify=1.0.6
source = kdnotify-git-1.0.6-1.tar.gz::https://git.st8l.com/luxolus/kdnotify/archive/v1.0.6.tar.gz backup = etc/kdnotify/config.yaml
source = kdnotify-git-1.0.6-2.tar.gz::https://git.st8l.com/luxolus/kdnotify/archive/v1.0.6.tar.gz
sha512sums = f15d78b06c19a505230d7be1677aebd7a96f766fa9f3bc68f93e4d3d5296395254e84b82ee31bdc5c0c79e0f9ece81ad2e715f06d42a3f53c7239ff9ec50bf2b sha512sums = f15d78b06c19a505230d7be1677aebd7a96f766fa9f3bc68f93e4d3d5296395254e84b82ee31bdc5c0c79e0f9ece81ad2e715f06d42a3f53c7239ff9ec50bf2b
pkgname = kdnotify-git pkgname = kdnotify-git

View File

@ -7,7 +7,7 @@
pkgname='kdnotify-git' pkgname='kdnotify-git'
pkgdesc='A keepalived FIFO notification handler' pkgdesc='A keepalived FIFO notification handler'
pkgver=1.0.6 pkgver=1.0.6
pkgrel=1 pkgrel=2
arch=('any') arch=('any')
license=('MPL2') license=('MPL2')
url='https://git.st8l.com/luxolus/kdnotify' url='https://git.st8l.com/luxolus/kdnotify'
@ -18,6 +18,7 @@ sha512sums=('f15d78b06c19a505230d7be1677aebd7a96f766fa9f3bc68f93e4d3d5296395254e
makedepends=('glibc' 'go') makedepends=('glibc' 'go')
depends=('glibc') depends=('glibc')
provides=("kdnotify=${pkgver}") provides=("kdnotify=${pkgver}")
backup=('etc/kdnotify/config.yaml')
prepare() { prepare() {
cd "${srcdir}/kdnotify" cd "${srcdir}/kdnotify"