burp 1.4.40

This commit is contained in:
yopito 2015-09-14 01:19:30 +02:00
parent 84039aadda
commit e4c195e14f
5 changed files with 84 additions and 0 deletions

1
srcpkgs/burp-client Symbolic link
View file

@ -0,0 +1 @@
burp-server

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec burp -F -c /etc/burp/burp-server.conf

View file

@ -0,0 +1,13 @@
# "-f" option unsupported by hostname.
# from package VoidLinux/coreutils 8.24_3 - 2015-09.
--- configs/certs/CA/burp_ca
+++ configs/certs/CA/burp_ca
@@ -11,7 +11,7 @@
dir=${etc}/CA
conf=${etc}/CA.cnf
-name=$(hostname -f)
+name=$(hostname)
ca_days=7300
size=2048

View file

@ -0,0 +1,66 @@
# Template file for 'burp-server'
_desc="A network-based backup and restore program"
pkgname=burp-server
version=1.4.40
revision=1
short_desc="${_desc} - Server"
maintainer="Pierre Bourgin <pierre.bourgin@free.fr>"
license="AGPL-3, BSD, GPL-2.1 and LGPL-2.1"
homepage="http://burp.grke.org/"
wrksrc="burp-${version}"
distfiles="https://github.com/grke/burp/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=2e6a9a28453a11f3e36d0beefa185e72e7781a8718b55d3101144c9900752d6f
hostmakedepends="automake libtool perl"
# note: burp provides its internal copy of "uthash-devel"
makedepends="
libressl-devel zlib-devel librsync-devel ncurses-devel
acl-devel yajl-devel"
# unique binary for both client and server: server depends on client package.
depends="burp-client-${version}_${revision}"
build_style=gnu-configure
configure_args="--sysconfdir=/etc/burp
--sbindir=/usr/bin"
conf_files="/etc/burp/burp-server.conf"
post_install() {
vsv ${pkgname}
vdoc "README"
vdoc "UPGRADING"
vlicense "LICENSE"
# /usr/sbin/burp_ca is hardcoded in conf files
sed -e "s,/usr/sbin/burp_ca,/usr/bin/burp_ca,g" \
-i ${DESTDIR}/etc/burp/burp-server.conf
# storage folder
touch -f ${PKGDESTDIR}/var/spool/burp/.empty_on_purpose
}
burp-client_package() {
short_desc="${_desc} - client"
# openssl binary needed by burp_ca script
depends="openssl"
conf_files="/etc/burp/burp.conf"
pkg_install() {
vmove "usr/bin/burp"
vmove "usr/bin/burp_ca"
vmove "usr/share/man/man8/burp.8.gz"
vmove "usr/share/man/man8/burp_ca.8.gz"
vmove "etc/burp/CA-client"
vmove "etc/burp/burp.conf"
vdoc "README"
vlicense "LICENSE"
# /usr/sbin/burp_ca is hardcoded in conf files
sed -e "s,/usr/sbin/burp_ca,/usr/bin/burp_ca,g" \
-i ${PKGDESTDIR}/etc/burp/burp.conf
# burp_ca requires directory CA-client
touch -f ${PKGDESTDIR}/etc/burp/CA-client/.empty_on_purpose
}
}

View file

@ -0,0 +1,2 @@
# ignore v2 version for the moment, not yet stable
ignore="2.*"