summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Chimento2022-02-18 12:58:00 +0200
committerDouglas Chimento2022-02-18 12:58:00 +0200
commita04cfd9969754ad3cd051a6a374388659ff582fc (patch)
tree77fe28868a3f57049e1581cfa0286a0ed00ea697
parent3536046201f64e28823b9998b16bf7611c3d4fdd (diff)
downloadaur-a04cfd9969754ad3cd051a6a374388659ff582fc.tar.gz
backup opt
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD5
-rw-r--r--charge-lnd.service1
3 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5dd8faf7f4cf..2cdac178f479 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = charge-lnd
pkgdesc = charge-lnd is a simple policy based fee manager for LND
pkgver = 0.2.8
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/accumulator/charge-lnd
install = charge-lnd.install
arch = any
@@ -17,7 +17,9 @@ pkgbase = charge-lnd
depends = python-colorama
depends = python-aiorpcx
optdepends = lnd-bin
- source = https://github.com/accumulator/charge-lnd/archive/refs/tags/v0.2.8.tar.gz
+ optdepends = lnd
+ backup = etc/default/charge-lnd
+ source = https://github.com/accumulator//archive/refs/tags/v0.2.8.tar.gz
source = charge-lnd.service
source = charge-lnd@.service
source = charge-lnd.timer
diff --git a/PKGBUILD b/PKGBUILD
index c15091131eb7..13596c4de219 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Douglas Chimento <dchimento@gmail.com>
pkgname=charge-lnd
pkgver=0.2.8
-pkgrel=2
+pkgrel=3
pkgdesc="${pkgname} is a simple policy based fee manager for LND"
url='https://github.com/accumulator/charge-lnd'
depends=('python' 'python-setuptools' 'python-googleapis-common-protos' 'python-grpcio' 'python-protobuf' 'python-six' 'python-termcolor' 'python-colorama' 'python-aiorpcx')
@@ -11,7 +11,8 @@ checkdepends=()
license=('GPL2')
arch=('any')
install=${pkgname}.install
-source=("https://github.com/accumulator/charge-lnd/archive/refs/tags/v${pkgver}.tar.gz" "${pkgname}.service" "${pkgname}@.service" "${pkgname}.timer" "${pkgname}.sysusers" "${pkgname}.env")
+backup=("etc/default/${pkgname}")
+source=("https://github.com/accumulator/${pkgnane}/archive/refs/tags/v${pkgver}.tar.gz" "${pkgname}.service" "${pkgname}@.service" "${pkgname}.timer" "${pkgname}.sysusers" "${pkgname}.env")
sha256sums=('8f6fff0a1ae9b5a20855cdb2dc2aeef3f1f3cb692b6a02684305e02ea3b1cd50' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
build() {
diff --git a/charge-lnd.service b/charge-lnd.service
index 3d319bd0d38d..5a4fdfa90721 100644
--- a/charge-lnd.service
+++ b/charge-lnd.service
@@ -1,6 +1,7 @@
[Unit]
Description=Manage fees on lnd channels
Documentation=https://github.com/accumulator/charge-lnd/blob/master/README.md
+ConditionPathExists=/etc/default/charge-lnd
[Service]
Type=oneshot