Skip to content

Instantly share code, notes, and snippets.

@icaruseffect
Last active August 29, 2015 14:17
Show Gist options
  • Save icaruseffect/4ccede5d30c8d425dacc to your computer and use it in GitHub Desktop.
Save icaruseffect/4ccede5d30c8d425dacc to your computer and use it in GitHub Desktop.
burp-backup-dev
# Maintainer: Rafał Michalski <plum.michalski at gmail dot com>
pkgname="burp-backup-dev"
_pkgname="burp"
pkgver=2.0.16
pkgrel=1
pkgdesc="Burp is a backup and restore program. It uses librsync in order to save on the amount of space that is used by each backup"
arch=("any")
license=("AGPLv3")
depends=('librsync' 'openssl')
makedepends=('uthash')
conflicts=(burp-backup)
provides=(burp-backup)
install=$_pkgname.install
url='http://burp.grke.org/'
source=(
"https://github.com/grke/burp/archive/${pkgver}.zip"
"$_pkgname.install"
)
sha256sums=(
7c27e220fc26d2fd4deb306ea9789cc30814831d11c2c5eb99873fe9139a685d #2.0.16.zip
ce030820046da1372949f9cc5a5123c6dcc1bda73acd18b6c02f96db1402e0c9 #.install
)
prepare() {
cd $srcdir/burp-$pkgver
sed -i 's/\/var\/run/\/run/' Makefile.in
}
build() {
cd $srcdir/burp-$pkgver
./configure --sbindir=/usr/bin || return 1
}
package() {
cd "$srcdir/burp-$pkgver"
make || return 1
make DESTDIR="$pkgdir/" install
# cron.d logrotate
mkdir $pkgdir/etc/cron.d
cp debian/burp.cron.d $pkgdir/etc/cron.d/burp
mkdir $pkgdir/etc/logrotate.d
cp debian/logrotate $pkgdir/etc/logrotate.d/burp
# fix permissions
mkdir -p $pkgdir/var/spool/burp
chmod 755 $pkgdir/var/spool
chmod 0600 $pkgdir/etc/burp/burp.conf
chmod 0600 $pkgdir/etc/burp/burp-server.conf
chmod 0700 $pkgdir/etc/burp/clientconfdir
chmod 0700 $pkgdir/var/spool/burp
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment