Created
July 3, 2016 11:19
-
-
Save Benzhaomin/c87509a8e62712efa3226833dbf9b637 to your computer and use it in GitHub Desktop.
PKGBUILD for backupninja, with borg support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_pkgname=backupninja | |
pkgname=$_pkgname-git | |
pkgver=1.0.2 | |
pkgrel=3 | |
pkgdesc="A centralized way to configure and schedule many different backup utilities" | |
arch=('any') | |
url="https://labs.riseup.net/code/projects/backupninja" | |
license=('GPL') | |
depends=('bash') | |
makedepends=('git') | |
optdepends=('dialog: to use ninjahelper' | |
'rdiff-backup: rdiff backups' | |
'gzip: compress backups' | |
'hwinfo: getting hardware information' | |
'mariadb-clients: mysql backups' | |
'rsync: secure and reliable remote syncronisation tool' | |
'borg: borg backups' | |
'duplicity: duplicity backups') | |
source=('git+https://github.com/benzhaomin/backupninja.git#branch=borg_support') | |
md5sums=('SKIP') | |
backup=('etc/backupninja.conf') | |
build() { | |
cd "$srcdir/$_pkgname" | |
./autogen.sh | |
./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --mandir=/usr/share/man | |
make | |
} | |
package() { | |
cd "$srcdir/$_pkgname" | |
make DESTDIR="$pkgdir" install | |
chmod a-x $pkgdir/usr/lib/$_pkgname/parseini | |
chmod a-x $pkgdir/usr/lib/$_pkgname/vserver | |
mkdir -p "$pkgdir/usr/share/doc/$_pkgname/examples" | |
install -Dm644 $pkgdir/usr/share/$_pkgname/example.* $pkgdir/usr/share/doc/$_pkgname/examples | |
rm $pkgdir/usr/share/$_pkgname/example.* | |
mkdir -p "$pkgdir/usr/var/log/" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment