diff options
author | acm <acm@FreeBSD.org> | 2018-11-21 05:49:17 +0800 |
---|---|---|
committer | acm <acm@FreeBSD.org> | 2018-11-21 05:49:17 +0800 |
commit | bf53aebbea83e6ff8ec5e41722646a71d05fc17e (patch) | |
tree | d9a64ea1889ce2012de97e221f84ebce71316954 | |
parent | b1fdcaea58abe9c1ef3d84f99f7cdf49dabf906b (diff) | |
download | freebsd-ports-gnome-bf53aebbea83e6ff8ec5e41722646a71d05fc17e.tar.gz freebsd-ports-gnome-bf53aebbea83e6ff8ec5e41722646a71d05fc17e.tar.zst freebsd-ports-gnome-bf53aebbea83e6ff8ec5e41722646a71d05fc17e.zip |
- Update to 17.2.7
- Add bareos-dir reload into rc script
- Fix default configuration path
- Some another modifications
PR: 231551 221593 230123
Submitted by: rand __at__ iteris.com, hsn __at__ sendmail.cz
-rw-r--r-- | sysutils/bareos-client-static/Makefile | 1 | ||||
-rw-r--r-- | sysutils/bareos-client/Makefile | 1 | ||||
-rw-r--r-- | sysutils/bareos-docs/distinfo | 6 | ||||
-rw-r--r-- | sysutils/bareos-server/Makefile | 11 | ||||
-rw-r--r-- | sysutils/bareos-server/distinfo | 6 | ||||
-rw-r--r-- | sysutils/bareos-server/files/bareos-dir.in | 20 | ||||
-rw-r--r-- | sysutils/bareos-server/files/bareos-fd.in | 2 | ||||
-rw-r--r-- | sysutils/bareos-server/files/bareos-sd.in | 2 | ||||
-rw-r--r-- | sysutils/bareos-traymonitor/Makefile | 1 |
9 files changed, 32 insertions, 18 deletions
diff --git a/sysutils/bareos-client-static/Makefile b/sysutils/bareos-client-static/Makefile index ab1967762b36..4d16a398afcc 100644 --- a/sysutils/bareos-client-static/Makefile +++ b/sysutils/bareos-client-static/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PORTNAME= bareos -PORTREVISION= 1 PKGNAMESUFFIX= -client-static COMMENT= Backup archiving recovery open sourced (static client) diff --git a/sysutils/bareos-client/Makefile b/sysutils/bareos-client/Makefile index cff41eaa0ee1..dc76ee31d2f1 100644 --- a/sysutils/bareos-client/Makefile +++ b/sysutils/bareos-client/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PORTNAME= bareos -PORTREVISION= 1 PKGNAMESUFFIX= -client COMMENT= Backup archiving recovery open sourced (client) diff --git a/sysutils/bareos-docs/distinfo b/sysutils/bareos-docs/distinfo index ed9beb84f954..29518cad1d8b 100644 --- a/sysutils/bareos-docs/distinfo +++ b/sysutils/bareos-docs/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1526747394 -SHA256 (bareos-manual-main-reference.pdf) = 417d19e150a1f5f0852b3c98c96b9678b63493bd9a5d75c0895a3f072f4b314f -SIZE (bareos-manual-main-reference.pdf) = 4138277 +TIMESTAMP = 1542749547 +SHA256 (bareos-manual-main-reference.pdf) = 5e23682cae0fa2d3f8d5c6f67d2bc340f5a60b22c48e12b027554ca2df73902a +SIZE (bareos-manual-main-reference.pdf) = 3937438 diff --git a/sysutils/bareos-server/Makefile b/sysutils/bareos-server/Makefile index 57152b0d8d99..6b3ba5311777 100644 --- a/sysutils/bareos-server/Makefile +++ b/sysutils/bareos-server/Makefile @@ -2,8 +2,8 @@ PORTNAME= bareos DISTVERSIONPREFIX= Release/ -DISTVERSION= 17.2.5 -PORTREVISION?= 1 +DISTVERSION= 17.2.7 +PORTREVISION?= 0 CATEGORIES?= sysutils PKGNAMEPREFIX?= # PKGNAMESUFFIX?= -server @@ -14,15 +14,14 @@ COMMENT?= Backup archiving recovery open sourced (server) LICENSE= AGPLv3 LGPL3 LICENSE_COMB= multi -USE_GITHUB= yes - -USES+= libtool:keepla pkgconfig readline:port shebangfix - CONFLICTS?= bacula*-server-* bareos16-server-* LIB_DEPENDS+= liblzo2.so:archivers/lzo2 \ libjansson.so:devel/jansson +USES+= libtool:keepla pkgconfig readline:port shebangfix +USE_GITHUB= yes + USERS= bareos GROUPS= ${USERS} diff --git a/sysutils/bareos-server/distinfo b/sysutils/bareos-server/distinfo index 996ada41d2d9..8186063097ce 100644 --- a/sysutils/bareos-server/distinfo +++ b/sysutils/bareos-server/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1524284411 -SHA256 (bareos-bareos-Release-17.2.5_GH0.tar.gz) = 720bcfbbb26d2e773088b3044b728b48fea2340b3fb0f622a0e07a88bec35bac -SIZE (bareos-bareos-Release-17.2.5_GH0.tar.gz) = 4181384 +TIMESTAMP = 1535610174 +SHA256 (bareos-bareos-Release-17.2.7_GH0.tar.gz) = 99a5f907e3422532c783ee254dcf5c737d2b1b53522c00924d3e1009289d2fd2 +SIZE (bareos-bareos-Release-17.2.7_GH0.tar.gz) = 4184028 diff --git a/sysutils/bareos-server/files/bareos-dir.in b/sysutils/bareos-server/files/bareos-dir.in index 38a209345d4e..1d92025ae9a1 100644 --- a/sysutils/bareos-server/files/bareos-dir.in +++ b/sysutils/bareos-server/files/bareos-dir.in @@ -24,16 +24,34 @@ load_rc_config $name : ${bareos_dir_enable="NO"} : ${bareos_dir_flags="-u bareos -g bareos -v"} -: ${bareos_dir_config="%%PREFIX%%/etc/bareos/bareos-dir.conf"} +: ${bareos_dir_config="%%PREFIX%%/etc/bareos/"} : ${bareos_dir_pidfile="/var/run/bareos/bareos-dir.9101.pid"} command=%%PREFIX%%/sbin/bareos-dir command_args="-c ${bareos_dir_config}" pidfile="${bareos_dir_pidfile}" +bconsole_command=/usr/local/bin/bconsole start_precmd="bareos_start_precmd" +restart_precmd="bareos_dir_configtest" +reload_precmd="bareos_dir_configtest" +reload_cmd="bareos_dir_reload" +configtest_cmd="bareos_dir_configtest" bareos_start_precmd() { [ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*} + bareos_dir_configtest } +bareos_dir_configtest() { + echo "Performing sanity check on ${bareos_dir_config} configuration:" + eval ${command} -t +} + +bareos_dir_reload() { + echo "Performing a graceful reload" + # bconsole always exits with 0, so we can't check the return status for success. + echo "reload" | ${bconsole_command} +} + +extra_commands="reload configtest" run_rc_command "$1" diff --git a/sysutils/bareos-server/files/bareos-fd.in b/sysutils/bareos-server/files/bareos-fd.in index f979cbf2dac1..2a45ee7dfb47 100644 --- a/sysutils/bareos-server/files/bareos-fd.in +++ b/sysutils/bareos-server/files/bareos-fd.in @@ -24,7 +24,7 @@ load_rc_config $name : ${bareos_fd_enable="NO"} : ${bareos_fd_flags="-u root -g wheel -v"} -: ${bareos_fd_config="%%PREFIX%%/etc/bareos/bareos-fd.conf"} +: ${bareos_fd_config="%%PREFIX%%/etc/bareos/"} : ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"} command=%%PREFIX%%/sbin/bareos-fd diff --git a/sysutils/bareos-server/files/bareos-sd.in b/sysutils/bareos-server/files/bareos-sd.in index 4793e46fc6f4..9c9df6de204b 100644 --- a/sysutils/bareos-server/files/bareos-sd.in +++ b/sysutils/bareos-server/files/bareos-sd.in @@ -24,7 +24,7 @@ load_rc_config $name : ${bareos_sd_enable="NO"} : ${bareos_sd_flags="-u bareos -g bareos -v"} -: ${bareos_sd_config="%%PREFIX%%/etc/bareos/bareos-sd.conf"} +: ${bareos_sd_config="%%PREFIX%%/etc/bareos/"} : ${bareos_sd_pidfile="/var/run/bareos/bareos-sd.9103.pid"} command=%%PREFIX%%/sbin/bareos-sd diff --git a/sysutils/bareos-traymonitor/Makefile b/sysutils/bareos-traymonitor/Makefile index c8bd2369acee..25df72767303 100644 --- a/sysutils/bareos-traymonitor/Makefile +++ b/sysutils/bareos-traymonitor/Makefile @@ -3,7 +3,6 @@ PORTNAME= bareos PKGNAMESUFFIX= -traymonitor -PORTREVISION= 1 COMMENT= Backup archiving recovery open sourced (traymonitor) |