summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Görtz2017-10-31 09:11:44 +0100
committerAlexander Görtz2017-10-31 09:17:08 +0100
commit034bf430542362a4296c6056a869e05e4a16b3c0 (patch)
treeb6e1d65e0a52040626005724d92d549ee10851e2
parent337ada6a62f855409d22e3b9ae4d53e758a54f0c (diff)
downloadaur-034bf430542362a4296c6056a869e05e4a16b3c0.tar.gz
Add install file to show a message on update
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD3
-rw-r--r--borgmatic.install13
4 files changed, 18 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c35dd0c53e16..c76df6ac2bdc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = borgmatic
pkgdesc = A wrapper script for Borg backup software that creates and prunes backups
pkgver = 1.1.7
- pkgrel = 2
+ pkgrel = 3
url = https://torsion.org/borgmatic/
+ install = borgmatic.install
arch = any
license = GPL3
makedepends = python-setuptools
diff --git a/.gitignore b/.gitignore
index bc9028b62ecb..793d8b6abe6b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
!.SRCINFO
!.gitignore
!PKGBUILD
+!*.install
diff --git a/PKGBUILD b/PKGBUILD
index ba084575402a..db5c5bfdd4d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname='borgmatic'
pkgver=1.1.7
-pkgrel=2
+pkgrel=3
pkgdesc='A wrapper script for Borg backup software that creates and prunes backups'
arch=('any')
url='https://torsion.org/borgmatic/'
@@ -12,6 +12,7 @@ license=('GPL3')
depends=('borg' 'python-pykwalify' 'python-ruamel-yaml')
makedepends=('python-setuptools' 'python-tox')
provides=('borgmatic')
+install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::https://torsion.org/hg/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('939ae88c8f9d2caf77b29a1bb9a53df52fc274ed6f004793616da0c6dab73eae')
diff --git a/borgmatic.install b/borgmatic.install
new file mode 100644
index 000000000000..dfb5131ee7e0
--- /dev/null
+++ b/borgmatic.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo ">>> WARNING: If you are updateing from a 1.0.x release you should run:"
+ echo ">>> sudo upgrade-borgmatic-config"
+ echo ">>> to convert your config from ini to yaml format."
+ echo ">>> For more information read at: https://torsion.org/borgmatic/"
+}
+
+post_upgrade() {
+ echo ">>> WARNING: If you are updateing from a 1.0.x release you should run:"
+ echo ">>> sudo upgrade-borgmatic-config"
+ echo ">>> to convert your config from ini to yaml format."
+ echo ">>> For more information read at: https://torsion.org/borgmatic/"
+}