diff options
author | Bernhard J. M. Gruen <bernhard.gruen@googlemail.com> | 2018-02-15 13:55:04 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-04 15:05:41 +0000 |
commit | ee6bb98990299ab9c32374b3a53c2d56dfd091ed (patch) | |
tree | 7eedcb7f2363b60a61bae21ec66b3bb9a7cd83f1 /testing/burp | |
parent | 354aaaa961e42e665de21208ce9da8a4d8646055 (diff) | |
download | aports-ee6bb98990299ab9c32374b3a53c2d56dfd091ed.tar.bz2 aports-ee6bb98990299ab9c32374b3a53c2d56dfd091ed.tar.xz |
testing/burp: new aport
http://burp.grke.org
Burp is a network backup and restore program.
check is commented out as it depends on the fork functionality
of check / check-dev which is not compatible with grsec
Diffstat (limited to 'testing/burp')
-rw-r--r-- | testing/burp/APKBUILD | 97 | ||||
-rw-r--r-- | testing/burp/burp.init | 31 |
2 files changed, 128 insertions, 0 deletions
diff --git a/testing/burp/APKBUILD b/testing/burp/APKBUILD new file mode 100644 index 0000000000..f79a331e2b --- /dev/null +++ b/testing/burp/APKBUILD @@ -0,0 +1,97 @@ +# Maintainer: Bernhard J. M. Gruen <bernhard.gruen@googlemail.com> +pkgname=burp +pkgver=2.1.30 +pkgrel=0 +pkgdesc="Burp is a network backup and restore program" +url="http://burp.grke.org" +arch="all" +license="AGPL-3.0-only" +depends="" +depends_dev="" +makedepends=" + uthash-dev + libressl-dev + zlib-dev + librsync-dev + libtool + automake + autoconf + " +checkdepends=" + check-dev + " +install="" +subpackages=" + $pkgname-doc + $pkgname-server + " +#old URL: https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2 +source=" + https://github.com/grke/$pkgname/archive/$pkgver.zip + burp.init + " +builddir="$srcdir/$pkgname-$pkgver" + +# Check is deactivated as it needs --enable-forks in check/check-dev +options="!check" + +build() { + cd "$builddir" + autoreconf -vif + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc/burp \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-acl \ + --disable-xattr + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install-all + rm -rf "$pkgdir"/var + rm -rf "$pkgdir"/etc/burp/autoupgrade + rm -rf "$pkgdir"/etc/burp/clientconfdir + chmod -R go-rwx "$pkgdir"/etc/burp +} + +server() { + pkgdesc="burp is a network backup and restore program - \ + server configuration and helper scripts" + + # bash is needed on the server to run burp_ca, timer and notify scripts + # I am working on a version that does not need bash anymore + depends="bash" + cd "$builddir" + mkdir -p "$subpkgdir"/var/spool/burp + chmod 0755 "$subpkgdir"/var/spool + chmod 0700 "$subpkgdir"/var/spool/burp + mkdir -p "$subpkgdir"/usr/share/burp/scripts + mv "$pkgdir"/usr/share/burp/scripts "$subpkgdir"/usr/share/burp + rm -rf "$pkgdir"/usr/share + + mkdir -p "$subpkgdir"/etc/burp + mv "$pkgdir"/etc/burp/CA.cnf "$subpkgdir"/etc/burp/CA.cnf + mv "$pkgdir"/etc/burp/burp-server.conf \ + "$subpkgdir"/etc/burp/burp-server.conf + + install -Dm755 "$srcdir"/burp.init "$subpkgdir"/etc/init.d/burp + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bedup "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bsigs "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bsparse "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/burp_ca "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/vss_strip "$subpkgdir"/usr/bin +} + +sha512sums="8a6f8a97ee1ccaef68897be1a667b4320767718dcc7697fc16549adbc207d1c36c721df43434df3add65868d0a310cfe379432272514085125887b8257b13f22 2.1.30.zip +b3354c72c3156ce40620c4c8138195182cf431bad67e4aa4a40c1fe3f6fcdc1aff0294f85c892e616dc5e5fd7202a741172b457bef34314f70fbbf2367e35cda burp.init" diff --git a/testing/burp/burp.init b/testing/burp/burp.init new file mode 100644 index 0000000000..3f43d14846 --- /dev/null +++ b/testing/burp/burp.init @@ -0,0 +1,31 @@ +#!/sbin/openrc-run + +BURP_CONFIG="/etc/burp/burp-server.conf" + +description="Burp is a network backup and restore program" + +command="/usr/bin/burp" +command_args="-c ${BURP_CONFIG} -F" +command_background="yes" +pidfile="/run/burp.pid" +start_stop_daemon_arg="--wait 500" + +extra_started_commands="reload mon" +description_reload="Reloads configuration" +description_mon="Displays status monitor" + +depend() { + need localmount + after bootmisc + use net +} + +reload() { + ebegin "Reloading ${SVCNAME} configuration" + start-stop-daemon --exec ${command} --signal HUP + eend $? +} + +mon() { + "${command}" -c "${BURP_CONFIG}" -a S +}
\ No newline at end of file |