Included a diff for bringing sysutils/burp to the latest version. Changelog can be found at http://burp.grke.org/changelog.html
I removed 2 patches as the issues have been solved upstream. Output 'make test': 100%: Checks: 348, Failures: 0, Errors: 0 I only did some very, very light testing. Only thing that I'm sure about is that it doesn't blow up. While here clean up Makefile a bit (follow Makefile.template) Comments? diff --git Makefile Makefile index c7292cb155d..fa696cdbeed 100644 --- Makefile +++ Makefile @@ -1,27 +1,31 @@ -# $OpenBSD: Makefile,v 1.3 2018/02/09 10:41:45 nigel Exp $ +# $OpenBSD: Makefile,v 1.2 2018/01/11 19:27:10 rpe Exp $ COMMENT = BackUp and Restore Program -DISTNAME = burp-2.0.54 -REVISION = 1 + +DISTNAME = burp-2.1.28 CATEGORIES = sysutils + HOMEPAGE = http://burp.grke.org/ # AGPLv3 PERMIT_PACKAGE_CDROM = Yes +WANTLIB = b2 c crypto curses m rsync ssl z + MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=burp/} -EXTRACT_SUFX = .tar.bz2 -CONFIGURE_STYLE = gnu -INSTALL_TARGET = install-all +EXTRACT_SUFX = .tar.bz2 # check is used for tests but detected at configure time BUILD_DEPENDS = devel/uthash \ devel/check LIB_DEPENDS = net/librsync RUN_DEPENDS = shells/bash -WANTLIB += b2 c crypto m curses rsync ssl z + +CONFIGURE_STYLE = gnu + +INSTALL_TARGET = install-all SUBST_VARS += TRUEPREFIX post-patch: diff --git distinfo distinfo index 8261a2d01ba..b1d87766a7f 100644 --- distinfo +++ distinfo @@ -1,2 +1,2 @@ -SHA256 (burp-2.0.54.tar.bz2) = rhBHBYbx/uRVbqrls8UreM/A6sQQn0uCU8VJ5/8ADYY= -SIZE (burp-2.0.54.tar.bz2) = 754566 +SHA256 (burp-2.1.28.tar.bz2) = xiX+2anZEfJQB8sBidlB778WRJzwLoWZ1vUGkBqezX0= +SIZE (burp-2.1.28.tar.bz2) = 781414 diff --git patches/patch-Makefile_in patches/patch-Makefile_in index 045e0419c45..28b2ca2754b 100644 --- patches/patch-Makefile_in +++ patches/patch-Makefile_in @@ -3,7 +3,7 @@ $OpenBSD: patch-Makefile_in,v 1.1.1.1 2017/11/03 11:31:01 landry Exp $ Index: Makefile.in --- Makefile.in.orig +++ Makefile.in -@@ -625,7 +625,7 @@ sbindir = @sbindir@ +@@ -639,7 +639,7 @@ sbindir = @sbindir@ scriptdir = @scriptdir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ diff --git patches/patch-configs_client_burp_conf_in patches/patch-configs_client_burp_conf_in index 4b0fe24292f..c2dfe4b2d65 100644 --- patches/patch-configs_client_burp_conf_in +++ patches/patch-configs_client_burp_conf_in @@ -3,11 +3,11 @@ $OpenBSD: patch-configs_client_burp_conf_in,v 1.1.1.1 2017/11/03 11:31:01 landry Index: configs/client/burp.conf.in --- configs/client/burp.conf.in.orig +++ configs/client/burp.conf.in -@@ -11,7 +11,7 @@ cname = testclient +@@ -13,7 +13,7 @@ cname = testclient # with a pseudo mirrored storage on the server and optional rsync). 2 forces # protocol2 mode (inline deduplication with variable length blocks). # protocol = 0 --pidfile = @runstatedir@/burp.client.pid +-pidfile = @runstatedir@/@n...@.client.pid +pidfile = @runstatedir@/burp/client.pid syslog = 0 stdout = 1 diff --git patches/patch-configs_server_burp_conf_in patches/patch-configs_server_burp_conf_in index e40588384a1..ce2e8694375 100644 --- patches/patch-configs_server_burp_conf_in +++ patches/patch-configs_server_burp_conf_in @@ -3,16 +3,16 @@ $OpenBSD: patch-configs_server_burp_conf_in,v 1.1.1.1 2017/11/03 11:31:01 landry Index: configs/server/burp.conf.in --- configs/server/burp.conf.in.orig +++ configs/server/burp.conf.in -@@ -22,7 +22,7 @@ clientconfdir = @sysconfdir@/clientconfdir +@@ -32,7 +32,7 @@ clientconfdir = @sysconfdir@/clientconfdir # Like many other settings, this can be set per client in the clientconfdir # files. # protocol = 0 --pidfile = @runstatedir@/burp.server.pid +-pidfile = @runstatedir@/@n...@.server.pid +pidfile = @runstatedir@/burp/server.pid hardlinked_archive = 0 working_dir_recovery_method = delete - max_children = 5 -@@ -68,8 +68,9 @@ keep = 7 + umask = 0022 +@@ -76,8 +76,9 @@ keep = 7 # keep = 6 # Run as different user/group. diff --git patches/patch-configs_server_timer_script patches/patch-configs_server_timer_script deleted file mode 100644 index 1b1d569ea9f..00000000000 --- patches/patch-configs_server_timer_script +++ /dev/null @@ -1,42 +0,0 @@ -$OpenBSD: patch-configs_server_timer_script,v 1.1.1.1 2017/11/03 11:31:01 landry Exp $ - -https://github.com/grke/burp/issues/627 - -Index: configs/server/timer_script ---- configs/server/timer_script.orig -+++ configs/server/timer_script -@@ -77,29 +77,12 @@ get_intervals() - - read junk ts < "$timestamp" - -- if ! secs=$(LANG=C LC_TIME=C date +%s -d "$ts") \ -- || ! now=$(LANG=C LC_TIME=C date +"%Y-%m-%d %H:%M:%S") \ -- || ! nowsecs=$(LANG=C LC_TIME=C date +%s -d "$now") -- then -- echo "$0: Date command returned error for $client." -- return 0 -- fi -- -+ mts=$(echo $ts | sed -e 's/-//g; s/ //; s/://; s/:/./') -+ secs=$(LANG=C LC_TIME=C date -j "$mts" +%s) -+ now=$(LANG=C LC_TIME=C date +"%Y-%m-%d %H:%M:%S") -+ nowsecs=$(LANG=C LC_TIME=C date +%s) - min_timesecs=$((secs+intervalsecs)) -- -- # GNU coreutils 'date' command should accept the following (even -- # slightly old versions). -- if ! min_time=$(LANG=C LC_TIME=C date -d "Jan 1, 1970 00:00:00 +0000 + $min_timesecs seconds" +"%Y-%m-%d %H:%M:%S") -- then -- # FreeBSD 'date' will return an error with the above, so try -- # a version that FreeBSD 'date' should be happy with. -- if ! min_time=$(LANG=C LC_TIME=C date -r $min_timesecs +"%Y-%m-%d %H:%M:%S") -- then -- echo "$0: Date command returned error for $client." -- return 0 -- fi -- fi -- -+ min_time=$(LANG=C LC_TIME=C date -r $min_timesecs +"%Y-%m-%d %H:%M:%S") - echo "Last backup: $ts" - echo "Next after : $min_time (interval $interval)" - diff --git patches/patch-src_client_monitor_status_client_ncurses_c patches/patch-src_client_monitor_status_client_ncurses_c deleted file mode 100644 index d23ac878275..00000000000 --- patches/patch-src_client_monitor_status_client_ncurses_c +++ /dev/null @@ -1,23 +0,0 @@ -$OpenBSD: patch-src_client_monitor_status_client_ncurses_c,v 1.1.1.1 2017/11/03 11:31:01 landry Exp $ - -https://github.com/grke/burp/issues/626 - -Index: src/client/monitor/status_client_ncurses.c ---- src/client/monitor/status_client_ncurses.c.orig -+++ src/client/monitor/status_client_ncurses.c -@@ -1453,14 +1453,7 @@ static pid_t fork_monitor(int *csin, int *csout, struc - char procpath[32]; - char buf[PATH_MAX]; - -- snprintf(procpath, sizeof(procpath), "/proc/%d/exe", getpid()); -- if(!readlink_w(procpath, buf, sizeof(buf))) -- args[a++]=(char *)buf; -- else if(is_reg_lstat(prog_long)>0) -- args[a++]=(char *)prog_long; -- else -- args[a++]=(char *)"/usr/sbin/burp"; -- -+ args[a++]=(char *)"${TRUEPREFIX}/sbin/burp"; - args[a++]=(char *)"-c"; - args[a++]=get_string(confs[OPT_CONFFILE]); - args[a++]=(char *)"-a"; diff --git pkg/PLIST pkg/PLIST index 767d2faa6e1..31fedd9eb09 100644 --- pkg/PLIST +++ pkg/PLIST @@ -4,11 +4,13 @@ @bin bin/vss_strip @man man/man8/bedup.8 @man man/man8/bsigs.8 +@man man/man8/bsparse.8 @man man/man8/burp.8 @man man/man8/burp_ca.8 @man man/man8/vss_strip.8 sbin/bedup sbin/bsigs +sbin/bsparse @bin sbin/burp sbin/burp_ca share/burp/