summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrent s2015-08-24 21:20:08 -0400
committerbrent s2015-08-24 21:20:08 -0400
commit0104010c8b8244dc8e66e2cebbdfaa8f6fa585fa (patch)
tree1dfc16605e1c03ae9f1d2f92043d40c1316f9b85
downloadaur-0104010c8b8244dc8e66e2cebbdfaa8f6fa585fa.tar.gz
initial import from AUR3
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD51
-rwxr-xr-xbbclient36
3 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..34bb118908e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = boxbackup-client
+ pkgdesc = An open source, completely automatic on-line backup system for UNIX.
+ pkgver = 0.11.1
+ pkgrel = 0
+ url = http://boxbackup.org
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = openssl
+ depends = perl
+ depends = zlib
+ backup = etc/boxbackup/bbstored.conf
+ source = http://boxbackup.org/svn/box/packages/boxbackup-0.11.1.tgz
+ source = bbclient
+ md5sums = c4c4786a918a9c026f80833614c40a6b
+ md5sums = 7b8f75b84d277f21923d4e1a6a050105
+
+pkgname = boxbackup-client
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6d41c2188f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Contributor: Andreas Schrafl <aschrafl@jetnet.ch>
+# based on the work of Jaroslav Lichtblau <tu@dragonlord.cz>
+# based on the work of KyAnh, http://kyanh.net/ <xkyanh@gmail.com>
+
+pkgname=boxbackup-client
+pkgver=0.11.1
+pkgrel=0
+pkgdesc="An open source, completely automatic on-line backup system for UNIX."
+arch=('i686' 'x86_64')
+url="http://boxbackup.org"
+license=('BSD')
+depends=('openssl' 'perl' 'zlib')
+backup=('etc/boxbackup/bbstored.conf')
+source=(http://boxbackup.org/svn/box/packages/boxbackup-$pkgver.tgz bbclient)
+
+md5sums=('c4c4786a918a9c026f80833614c40a6b'
+ '7b8f75b84d277f21923d4e1a6a050105')
+
+build() {
+ export MAKEFLAGS="-j1"
+ cd ${srcdir}/boxbackup-${pkgver}
+
+ ./configure
+
+ mkdir -p ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu
+
+ make release/bin/bbackupd/bbackupd
+ make release/bin/bbackupd/bbackupd
+ cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupd/bbackupd ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupd
+
+ make release/bin/bbackupquery/bbackupquery
+ cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupquery/bbackupquery ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupquery
+
+ make release/bin/bbackupctl/bbackupctl
+ cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupctl/bbackupctl ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupctl
+
+ cp ${srcdir}/boxbackup-${pkgver}/bin/bbackupd/bbackupd-config ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupd-config
+
+ for f in \
+ bbackupd \
+ bbackupquery \
+ bbackupctl \
+ bbackupd-config ;\
+ do
+ install -D -m755 \
+ ${srcdir}/boxbackup-$pkgver/parcels/boxbackup-$pkgver-backup-client-linux-gnu/$f \
+ ${pkgdir}/usr/bin/$f
+ done
+
+ install -D -m755 "${srcdir}/bbclient" "${pkgdir}/etc/rc.d/bbclient"
+}
diff --git a/bbclient b/bbclient
new file mode 100755
index 00000000000..5859b9f3505
--- /dev/null
+++ b/bbclient
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/bin/bbackupd`
+case "$1" in
+ start)
+ stat_busy "Starting BoxBackup Server"
+ [ -z "$PID" ] && /usr/bin/bbackupd
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon bbackupd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping BoxBackup Server"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon bbackupd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0