From b0ab4982ce6b32a517276378c552ca5b37ff5233 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sun, 6 Nov 2016 01:09:05 -0500 Subject: [PATCH] Add duplicati-latest --- src/duplicati-latest/.SRCINFO | 20 ++++++++++++++++ src/duplicati-latest/.gitignore | 5 ++++ src/duplicati-latest/PKGBUILD | 26 +++++++++++++++++++++ src/duplicati-latest/duplicati.install | 23 ++++++++++++++++++ src/duplicati-latest/duplicati_user.service | 10 ++++++++ 5 files changed, 84 insertions(+) create mode 100644 src/duplicati-latest/.SRCINFO create mode 100644 src/duplicati-latest/.gitignore create mode 100644 src/duplicati-latest/PKGBUILD create mode 100644 src/duplicati-latest/duplicati.install create mode 100644 src/duplicati-latest/duplicati_user.service diff --git a/src/duplicati-latest/.SRCINFO b/src/duplicati-latest/.SRCINFO new file mode 100644 index 0000000..79b7176 --- /dev/null +++ b/src/duplicati-latest/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sat Apr 30 06:12:50 UTC 2016 +pkgbase = duplicati-latest + pkgdesc = Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. Duplicati is open source software, written in mono and available for Windows, Linux, and Mac OS X. + pkgver = 2.0.1.11 + pkgrel = 1 + url = http://www.duplicati.com/ + install = duplicati.install + arch = i686 + arch = x86_64 + license = LGPL + depends = mono + depends = gtk-sharp-2 + source = http://updates.duplicati.com/experimental/duplicati-2.0.1.11_experimental_2016-04-08.zip + source = duplicati_user.service + sha1sums = 08f409819409eb36959bfabc2beb482978e55b04 + sha1sums = cf23e9cdc0f72d1b52288579f169c4476aa26a0f + +pkgname = duplicati-latest + diff --git a/src/duplicati-latest/.gitignore b/src/duplicati-latest/.gitignore new file mode 100644 index 0000000..5ef6d67 --- /dev/null +++ b/src/duplicati-latest/.gitignore @@ -0,0 +1,5 @@ +src +pkg +*.zip +*.tar.xz +*.src.tar.gz diff --git a/src/duplicati-latest/PKGBUILD b/src/duplicati-latest/PKGBUILD new file mode 100644 index 0000000..482c25d --- /dev/null +++ b/src/duplicati-latest/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Danny Su + +pkgname=duplicati-latest +pkgver=2.0.1.31 +pkgrel=1 +pkgdesc='Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. Duplicati is open source software, written in mono and available for Windows, Linux, and Mac OS X.' +arch=('i686' 'x86_64') +url="http://www.duplicati.com/" +install=duplicati.install +license=('LGPL') +depends=('mono' 'gtk-sharp-2') +optdepends=() +source=("https://github.com/duplicati/duplicati/releases/download/v2.0.1.31-2.0.1.31_canary_2016-11-03/duplicati-2.0.1.31_canary_2016-11-03.zip" duplicati_user.service) + +sha1sums=('ddf901c7e94474dd66c8a606cf295f64ca1cbdcb' + 'cf23e9cdc0f72d1b52288579f169c4476aa26a0f') + +package() { + rm "$srcdir/duplicati-2.0.1.31_canary_2016-11-03.zip" + + mkdir -p "$pkgdir/opt/duplicati-latest" + cp -r . "$pkgdir/opt/duplicati-latest" + + # install systemd units + install -Dm644 duplicati_user.service "${pkgdir}"/usr/lib/systemd/user/duplicati_latest.service +} diff --git a/src/duplicati-latest/duplicati.install b/src/duplicati-latest/duplicati.install new file mode 100644 index 0000000..e35e062 --- /dev/null +++ b/src/duplicati-latest/duplicati.install @@ -0,0 +1,23 @@ +post_install() { + + post_upgrade + +} + +post_upgrade() { + +cat << EOF + + UI can be accessed via following URL: http://localhost:8200 + + * Running duplicati user instance (using current user account) + + Execute: + + to reload user systemd modules: systemctl --user daemon-reload + to start duplicati manually: systemctl --user start duplicati_latest + to autostart duplicati on user login: systemctl --user enable duplicati_latest + +EOF + +} diff --git a/src/duplicati-latest/duplicati_user.service b/src/duplicati-latest/duplicati_user.service new file mode 100644 index 0000000..62d9896 --- /dev/null +++ b/src/duplicati-latest/duplicati_user.service @@ -0,0 +1,10 @@ +[Unit] +Description=Duplicati per-user service +After=network.target + +[Service] +ExecStart=/usr/bin/mono /opt/duplicati-latest/Duplicati.Server.exe --webservice-port=8200 +Restart=on-abort + +[Install] +WantedBy=default.target