summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD66
-rwxr-xr-xbbclient36
-rw-r--r--bbclient.service12
4 files changed, 53 insertions, 73 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a8da9d04031..1e6bffa500e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sun Jan 17 11:19:51 UTC 2016
pkgbase = boxbackup-client
pkgdesc = An open source, completely automatic on-line backup system for UNIX.
- pkgver = 0.11.1
+ pkgver = 0.12
pkgrel = 1
url = http://boxbackup.org
arch = i686
@@ -10,10 +12,10 @@ pkgbase = boxbackup-client
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
+ source = https://github.com/boxbackup/boxbackup/archive/0.12.tar.gz
+ source = bbclient.service
+ md5sums = 268bec094ab71d491de497e766c45c87
+ md5sums = 3ccf31e2cc3027b9243cd8d790ad3170
pkgname = boxbackup-client
diff --git a/PKGBUILD b/PKGBUILD
index 952235ff517..531f95c171a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
-# Contributor: Andreas Schrafl <aschrafl@jetnet.ch>
+# Maintainer: brent s. <bts[at]square-r00t[dot]net>
+# Past 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
+pkgver=0.12
pkgrel=1
pkgdesc="An open source, completely automatic on-line backup system for UNIX."
arch=('i686' 'x86_64')
@@ -11,41 +12,42 @@ 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)
+source=(https://github.com/boxbackup/boxbackup/archive/${pkgver}.tar.gz bbclient.service)
-md5sums=('c4c4786a918a9c026f80833614c40a6b'
- '7b8f75b84d277f21923d4e1a6a050105')
+md5sums=('268bec094ab71d491de497e766c45c87'
+ '3ccf31e2cc3027b9243cd8d790ad3170')
-package() {
+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
+ cd boxbackup-${pkgver}
- make release/bin/bbackupquery/bbackupquery
- cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupquery/bbackupquery ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupquery
+ ./bootstrap
+ ./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin
- 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
+ make
+}
- 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
+package() {
- install -D -m755 "${srcdir}/bbclient" "${pkgdir}/etc/rc.d/bbclient"
+ ## their script kind of sucks. so let's do this manually.
+ cd ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-0.12-backup-client-linux-gnu/
+ #export DESTDIR=${pkgdir}/${pkgname}
+ #make install-backup-client
+
+ install -D bbackupd ${pkgdir}/usr/bin/bbackupd
+ install -D bbackupquery ${pkgdir}/usr/bin/bbackupquery
+ install -D bbackupctl ${pkgdir}/usr/bin/bbackupctl
+ install -D bbackupd-config ${pkgdir}/usr/bin/bbackupd-config
+ install -D docs/bbackupd.html ${pkgdir}/usr/share/doc/${pkgname}/bbackupd.html
+ install -D docs/bbackupquery.html ${pkgdir}/usr/share/doc/${pkgname}/bbackupquery.html
+ install -D docs/bbackupctl.html ${pkgdir}/usr/share/doc/${pkgname}/bbackupctl.html
+ install -D docs/bbackupd-config.html ${pkgdir}/usr/share/doc/${pkgname}/bbackupd-config.html
+ install -D docs/bbackupd.conf.html ${pkgdir}/usr/share/doc/${pkgname}/bbackupd.conf.html
+ install -D bbackupd.8.gz ${pkgdir}/usr/man/man8/bbackupd.8.gz
+ install -D bbackupquery.8.gz ${pkgdir}/usr/man/man8/bbackupquery.8.gz
+ install -D bbackupctl.8.gz ${pkgdir}/usr/man/man8/bbackupctl.8.gz
+ install -D bbackupd-config.8.gz ${pkgdir}/usr/man/man8/bbackupd-config.8.gz
+ install -D bbackupd.conf.5.gz ${pkgdir}/usr/man/man5/bbackupd.conf.5.gz
+
+ install -D -m644 "${srcdir}/bbclient.service" "${pkgdir}/usr/lib/systemd/system/bbclient.service"
}
diff --git a/bbclient b/bbclient
deleted file mode 100755
index 5859b9f3505..00000000000
--- a/bbclient
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/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
diff --git a/bbclient.service b/bbclient.service
new file mode 100644
index 00000000000..9115ede9cbe
--- /dev/null
+++ b/bbclient.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Box Backup Client
+Wants=network.target
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/bbackupd -F -c /etc/boxclient/bbackupd.conf
+KillMode=process
+Restart=always
+
+[Install]
+WantedBy=multi-user.target