summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbrent s2016-01-17 06:19:51 -0500
committerbrent s2016-01-17 06:19:51 -0500
commit10bac5e6edad305ad8e53af50dee13ac53cfd3b0 (patch)
tree1306cf331c68a154f6b4e90006e55ffd237de290 /PKGBUILD
parente41b920eeac836e983d9d4e6a257d145dafda790 (diff)
downloadaur-10bac5e6edad305ad8e53af50dee13ac53cfd3b0.tar.gz
updating to 0.12 (per git releases), removing init support, adding systemd support
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD66
1 files changed, 34 insertions, 32 deletions
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"
}