diff options
author | Nils Werner | 2020-05-18 10:02:19 +0200 |
---|---|---|
committer | Nils Werner | 2020-05-18 10:02:36 +0200 |
commit | d8ffba4d3886996839622b4e0a941aaf8d072cea (patch) | |
tree | ff08b102e7e647a9fcb3265caf99c683754f5639 | |
parent | 1c5c3506bf797311df7c304931cc7dbd959f2acb (diff) | |
download | aur-d8ffba4d3886996839622b4e0a941aaf8d072cea.tar.gz |
User systemd units
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | crestic@.service | 3 | ||||
-rw-r--r-- | crestic@.timer | 2 |
4 files changed, 11 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = crestic pkgdesc = Configurable restic wrapper pkgver = 0.4.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/nils-werner/crestic arch = any license = MIT @@ -12,8 +12,8 @@ pkgbase = crestic source = crestic@.service source = crestic@.timer sha256sums = 3bb0bf1c80c774a3b3ba85d018600f61b425510d230353b1d819a20b902c009b - sha256sums = 59e47195ddcddf825cd3a85b2c1b10a2557ba60708adc96c4175b3a8f63fff1c - sha256sums = 3d85d601b61a520cc72936d1314ee3dc1825dd1ed5f669e166099809c91ee0c2 + sha256sums = 48755b767dfcad51dd48a9628e5d7f34133dfa40445488470cf78c203ae714e3 + sha256sums = f9940ec04c29d1373496437758c807f8cb5bc272fa16b0ba6351c7d0ec8cd691 pkgname = crestic @@ -2,7 +2,7 @@ pkgname=crestic pkgver=0.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="Configurable restic wrapper" arch=('any') url="https://github.com/nils-werner/$pkgname" @@ -18,13 +18,16 @@ source=( ) sha256sums=( "3bb0bf1c80c774a3b3ba85d018600f61b425510d230353b1d819a20b902c009b" - "59e47195ddcddf825cd3a85b2c1b10a2557ba60708adc96c4175b3a8f63fff1c" - "3d85d601b61a520cc72936d1314ee3dc1825dd1ed5f669e166099809c91ee0c2" + "48755b767dfcad51dd48a9628e5d7f34133dfa40445488470cf78c203ae714e3" + "f9940ec04c29d1373496437758c807f8cb5bc272fa16b0ba6351c7d0ec8cd691" ) package() { install -Dm 0644 crestic@.service -t "$pkgdir"/usr/lib/systemd/system/ install -Dm 0644 crestic@.timer -t "$pkgdir"/usr/lib/systemd/system/ + mkdir -p "$pkgdir"/usr/lib/systemd/user/ + ln -s ../system/crestic@.service "$pkgdir"/usr/lib/systemd/user/ + ln -s ../system/crestic@.timer "$pkgdir"/usr/lib/systemd/user/ cd "$srcdir/$pkgname-$pkgver" install -Dm 0755 "$pkgname".py "$pkgdir"/usr/bin/"$pkgname" install -Dm 0644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"/ diff --git a/crestic@.service b/crestic@.service index 1b7387bc112f..de0750d2cc1f 100644 --- a/crestic@.service +++ b/crestic@.service @@ -1,6 +1,5 @@ [Unit] -Description=crestic backup %I +Description=crestic %I backup [Service] -Environment="CRESTIC_CONFIG_FILE=/etc/crestic/crestic.cfg" ExecStart=/usr/bin/crestic %I backup diff --git a/crestic@.timer b/crestic@.timer index 4d8e8a97e940..309aca6b7fad 100644 --- a/crestic@.timer +++ b/crestic@.timer @@ -1,5 +1,5 @@ [Unit] -Description=Daily crestic backup %I +Description=Daily crestic %I backup [Timer] OnCalendar=daily |