summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Alex2016-05-27 13:00:37 +1000
committerBen Alex2016-05-27 13:00:37 +1000
commit031f18da32b6ef3e9222c4748fc4e67c209ac49e (patch)
treeab51ca743f48c90c34a1058d435d5fc827bae64f
downloadaur-031f18da32b6ef3e9222c4748fc4e67c209ac49e.tar.gz
Initial commit.
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD26
-rw-r--r--elephantdrive.service14
-rw-r--r--readme.txt12
5 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..acefc415978
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Fri May 27 02:56:23 UTC 2016
+pkgbase = elephantdrive
+ pkgdesc = Service for the Elephant Drive encrypted cloud backup service
+ pkgver = 3.0.20
+ pkgrel = 1
+ url = http://www.elephantdrive.com
+ arch = x86_64
+ arch = i686
+ license = custom
+ backup = etc/elephantdrive.config
+ source = elephantdrive.service
+ source = http://distribution.vaultservices.net/edNative/master3.0.20/linux/Linux_Elephantdrive_x86_64_3.0.20.tar.gz
+ md5sums = 09a3214b733fe5313b4424926fb3ffa8
+ md5sums = 0442944159c554f5d6264a82e746655b
+
+pkgname = elephantdrive
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..2da5f04d0de
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.xz
+*.gz
+pkg
+src
+*.tgz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d75b934c43f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Contributor: Ben Alex <ben.alex@acegi.com.au>
+# Maintainer: Ben Alex <ben.alex@acegi.com.au>
+
+pkgname=elephantdrive
+pkgver=3.0.20
+pkgrel=1
+pkgdesc='Service for the Elephant Drive encrypted cloud backup service'
+arch=('x86_64' 'i686')
+url="http://www.elephantdrive.com"
+license=('custom')
+backup=('etc/elephantdrive.config')
+
+source=('elephantdrive.service'
+ "http://distribution.vaultservices.net/edNative/master${pkgver}/linux/Linux_Elephantdrive_${arch}_${pkgver}.tar.gz")
+md5sums=('09a3214b733fe5313b4424926fb3ffa8'
+ '0442944159c554f5d6264a82e746655b')
+
+package() {
+ mkdir ${srcdir}/extract
+ ${srcdir}/elephantdrive.bin --nox11 --target ${srcdir}/extract --noexec
+ mkdir -p ${pkgdir}/usr/lib/elephantdrive/
+ install -m644 ${srcdir}/extract/var/lib/elephantdrive/* ${pkgdir}/usr/lib/elephantdrive/
+ install -Dm755 ${srcdir}/extract/elephantdrive ${pkgdir}/usr/bin/elephantdrive
+ install -Dm600 ${srcdir}/extract/elephantdrive.config ${pkgdir}/etc/elephantdrive.config
+ install -Dm644 ${srcdir}/elephantdrive.service ${pkgdir}/usr/lib/systemd/system/elephantdrive.service
+}
diff --git a/elephantdrive.service b/elephantdrive.service
new file mode 100644
index 00000000000..db557d33261
--- /dev/null
+++ b/elephantdrive.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=ElephantDrive
+After=network.target
+
+[Service]
+Type=forking
+User=root
+Group=root
+KillMode=control-group
+ExecStart=/usr/bin/elephantdrive -D -c /etc
+ExecStop=/usr/bin/elephantdrive -K
+
+[Install]
+WantedBy=multi-user.target
diff --git a/readme.txt b/readme.txt
new file mode 100644
index 00000000000..87c28c01ae9
--- /dev/null
+++ b/readme.txt
@@ -0,0 +1,12 @@
+To build, test and upload new package:
+
+rm -rf pkg src *.xz && makepkg -f
+sudo pacman -U *.xz
+sudo mg /etc/elephantdrive.config # need an ED account
+sudo systemctl start elephantdrive.service
+sudo systemctl status elephantdrive.service
+cat /var/log/elephantdrive.log
+sudo systemctl stop elephantdrive.service
+mksrcinfo
+git add
+git push