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. It also uses VSS (Volume Shadow Copy Service)
to make snapshots when backing up Windows computers.

WWW: http://burp.grke.org/

PR:		204267
Submitted by:	loic-freebsd@loicp.eu
This commit is contained in:
Dmitry Marakasov
2015-12-29 18:06:31 +00:00
parent 12280a64eb
commit ba36dddf05
6 changed files with 107 additions and 0 deletions

View File

@@ -104,6 +104,7 @@
SUBDIR += bsdstats
SUBDIR += btsixad
SUBDIR += bulk_extractor
SUBDIR += burp
SUBDIR += busybox
SUBDIR += byobu
SUBDIR += cbsd

42
sysutils/burp/Makefile Normal file
View File

@@ -0,0 +1,42 @@
# Created by: Loic Pefferkorn <loic-freebsd@loicp.eu>
# $FreeBSD$
PORTNAME= burp
PORTVERSION= 1.4.40
CATEGORIES= sysutils
MAINTAINER= loic-freebsd@loicp.eu
COMMENT= Network backup and restore program
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:${PORTSDIR}/devel/uthash
LIB_DEPENDS= librsync.so:${PORTSDIR}/net/librsync1
USE_GITHUB= yes
GH_ACCOUNT= grke
USE_RC_SUBR= burp
GNU_CONFIGURE= yes
USES= gmake localbase
CONFIGURE_ARGS= --sbindir="${PREFIX}/sbin" \
--sysconfdir=${ETCDIR} \
CONFIG_FILES= configs/server/burp.conf \
configs/client/burp.conf \
configs/certs/CA/CA.cnf
post-patch:
.for f in ${CONFIG_FILES}
@${REINPLACE_CMD} -e 's,/etc/burp,${PREFIX}/etc/burp,g' ${WRKSRC}/${f}
@${REINPLACE_CMD} -e 's,/usr/sbin,${PREFIX}/sbin,g' ${WRKSRC}/${f}
.endfor
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/bedup
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/vss_strip
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/burp
.include <bsd.port.mk>

2
sysutils/burp/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (grke-burp-1.4.40_GH0.tar.gz) = 2e6a9a28453a11f3e36d0beefa185e72e7781a8718b55d3101144c9900752d6f
SIZE (grke-burp-1.4.40_GH0.tar.gz) = 858049

View File

@@ -0,0 +1,32 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: burp
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# burp_enable (bool): Set to NO by default.
# Set it to YES to enable burp.
# burp_config (path): Set to %%PREFIX%%/etc/burp/burp.cf
# by default.
. /etc/rc.subr
name=burp
rcvar=burp_enable
load_rc_config $name
: ${burp_enable:="NO"}
: ${burp_config="%%PREFIX%%/etc/burp/burp-server.conf"}
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.server.pid
command_args="-c $burp_config"
run_rc_command "$1"

6
sysutils/burp/pkg-descr Normal file
View File

@@ -0,0 +1,6 @@
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. It also uses VSS (Volume Shadow Copy Service)
to make snapshots when backing up Windows computers.
WWW: http://burp.grke.org/

24
sysutils/burp/pkg-plist Normal file
View File

@@ -0,0 +1,24 @@
%%ETCDIR%%/autoupgrade/server/win32/script
%%ETCDIR%%/autoupgrade/server/win64/script
%%ETCDIR%%/burp-server.conf
%%ETCDIR%%/burp.conf
%%ETCDIR%%/clientconfdir/incexc/example
%%ETCDIR%%/clientconfdir/testclient
%%ETCDIR%%/notify_script
%%ETCDIR%%/ssl_extra_checks_script
%%ETCDIR%%/summary_script
%%ETCDIR%%/timer_script
%%ETCDIR%%/CA.cnf
man/man8/bedup.8.gz
man/man8/burp.8.gz
man/man8/burp_ca.8.gz
man/man8/vss_strip.8.gz
sbin/bedup
sbin/burp
sbin/burp_ca
sbin/vss_strip
@dir %%ETCDIR%%/CA-client
@dir %%ETCDIR%%/autoupgrade/client
@dir %%ETCDIR%%/autoupgrade/server/win32/1.4.40
@dir %%ETCDIR%%/autoupgrade/server/win64/1.4.40
@dir /var/spool/burp