summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorLorenzo Salvadore <salvadore@FreeBSD.org>2020-05-04 19:21:55 +0000
committerLorenzo Salvadore <salvadore@FreeBSD.org>2020-05-04 19:21:55 +0000
commit4cb6e9e49be59ff187c8affd4c8fe8b24bf29b12 (patch)
treeecdd87123f9d0187487a65b4e11a15af6ea222f4 /sysutils
parentMFH: r533597 (diff)
MFH: r530237
sysutils/burp-devel: Update to 2.3.24 - Protocol 2: warn and skip on verify/restore of unsupported file types. - Resurrect, improve and use sysutils/burp/files/burp.in instead of the rc script from distfile, both for sysutils/burp (master port) and for sysutils/burp-devel (slave port): this is necessary because, while sysutils/burp's distfile still distributes the script, sysutils/burp-devel's distfile does not anymore starting with version 2.3.24. I also made a few modifications to the file so that it behaves well with non standard PREFIX values. - Fix bug #246062. Reviewed by: 0mp, gerald, dbaio, adamw Approved by: tcberner (co-mentor) Differential Revision: https://reviews.freebsd.org/D24104 PR: 246062 Reported by: tictactux@gmail.com Approved by: ports-secteam (joneum), gerald (mentor)
Notes
Notes: svn path=/branches/2020Q2/; revision=533970
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/burp-devel/Makefile2
-rw-r--r--sysutils/burp-devel/distinfo6
-rw-r--r--sysutils/burp/Makefile18
-rw-r--r--sysutils/burp/files/burp.in57
-rw-r--r--sysutils/burp/pkg-plist9
5 files changed, 77 insertions, 15 deletions
diff --git a/sysutils/burp-devel/Makefile b/sysutils/burp-devel/Makefile
index 81692c7ddb70..45c43a924a03 100644
--- a/sysutils/burp-devel/Makefile
+++ b/sysutils/burp-devel/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-PORTVERSION= 2.3.22
+PORTVERSION= 2.3.24
PORTREVISION= 0 #this is a slave port that needs PORTREVISION to be tracked separately
PKGNAMESUFFIX= -devel
diff --git a/sysutils/burp-devel/distinfo b/sysutils/burp-devel/distinfo
index 1a46d7135bac..84abb6a0968b 100644
--- a/sysutils/burp-devel/distinfo
+++ b/sysutils/burp-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1580671041
-SHA256 (grke-burp-2.3.22_GH0.tar.gz) = e8f1c3c2432916bfec631e452c09ef48b13ec77fe715300638e474b6e49d455b
-SIZE (grke-burp-2.3.22_GH0.tar.gz) = 628380
+TIMESTAMP = 1583262411
+SHA256 (grke-burp-2.3.24_GH0.tar.gz) = 0d95e8e46bad01164c31cbb0ac173a2d668ef4e56530b19c8e0801ab13f0924b
+SIZE (grke-burp-2.3.24_GH0.tar.gz) = 615113
diff --git a/sysutils/burp/Makefile b/sysutils/burp/Makefile
index 678cbfa66fc3..e2bbb7112374 100644
--- a/sysutils/burp/Makefile
+++ b/sysutils/burp/Makefile
@@ -3,8 +3,9 @@
PORTNAME= burp
PORTVERSION?= 2.2.18
-PORTREVISION?= 2 #whenever PORTREVISION is increased, it must be increased for
- #the slave port sysutils/burp-devel too
+# whenever PORTREVISION is increased,
+# sysutils/burp-devel's PKGVERSION must also increase
+PORTREVISION?= 3
CATEGORIES= sysutils
MAINTAINER= salvadore@FreeBSD.org
@@ -20,8 +21,8 @@ LIB_DEPENDS= librsync.so:net/librsync2
RUN_DEPENDS= bash:shells/bash
USES= autoreconf gmake libtool ncurses pkgconfig ssl
+USE_RC_SUBR= burp
USE_GITHUB= yes
-
GH_ACCOUNT= grke
GNU_CONFIGURE= yes
@@ -37,10 +38,15 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= IPV6
IPV6_CONFIGURE_ENABLE= ipv6
-post-patch:
- ${REINPLACE_CMD} "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/freebsd/rc.d/burp
+CONFIG_FILES= CA.cnf \
+ burp-server.conf \
+ burp.conf \
+ clientconfdir/testclient
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/freebsd/rc.d/burp ${STAGEDIR}${PREFIX}/etc/rc.d/burp
+.for FILE in ${CONFIG_FILES}
+ ${MV} ${STAGEDIR}${ETCDIR}/${FILE} \
+ ${STAGEDIR}${ETCDIR}/${FILE}.sample
+.endfor
.include <bsd.port.mk>
diff --git a/sysutils/burp/files/burp.in b/sysutils/burp/files/burp.in
new file mode 100644
index 000000000000..0b1503213ab1
--- /dev/null
+++ b/sysutils/burp/files/burp.in
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Burp rc.d script, placed in the public domain by Jarkko Kniivilä @ 2014-05-14
+
+# PROVIDE: burp
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable Burp:
+#
+# burp_enable="YES"
+# # optional
+# burp_config="%%PREFIX%%/etc/burp/burp-server.conf"
+#
+#
+
+export PATH="$PATH:%%PREFIX%%/bin:%%PREFIX%%/sbin"
+
+. /etc/rc.subr
+
+name=burp
+rcvar=burp_enable
+monitor_cmd="${name}_monitor"
+summary_cmd="${name}_summary"
+
+load_rc_config $name
+
+# Set some defaults
+: ${burp_enable:="NO"}
+: ${burp_config:="%%PREFIX%%/etc/burp/burp-server.conf"}
+
+burp_flags="-c ${burp_config}"
+
+command="%%PREFIX%%/sbin/${name}"
+command_args="> /dev/null 2>&1"
+
+pidfile="/var/run/${name}.server.pid" # this really depends on the config file so make sure they concur
+required_files="${burp_config}"
+sig_reload="HUP"
+extra_commands="reload monitor summary"
+
+burp_monitor()
+{
+ rc_flags="-a s ${rc_flags}"
+ ${command} ${rc_flags}
+}
+
+burp_summary()
+{
+ # This allows you to get the output of the '-a S' flag thusly:
+ # service burp summary -C $my_client
+
+ rc_flags="-a S ${rc_flags}"
+ ${command} ${rc_flags} "$@"
+}
+
+run_rc_command "$@"
diff --git a/sysutils/burp/pkg-plist b/sysutils/burp/pkg-plist
index bd5b3fd05bbc..a4513bca59fa 100644
--- a/sysutils/burp/pkg-plist
+++ b/sysutils/burp/pkg-plist
@@ -1,10 +1,9 @@
bin/vss_strip
-%%ETCDIR%%/CA.cnf
-%%ETCDIR%%/burp-server.conf
-%%ETCDIR%%/burp.conf
+@sample %%ETCDIR%%/CA.cnf.sample
+@sample %%ETCDIR%%/burp-server.conf.sample
+@sample %%ETCDIR%%/burp.conf.sample
%%ETCDIR%%/clientconfdir/incexc/example
-%%ETCDIR%%/clientconfdir/testclient
-etc/rc.d/burp
+@sample %%ETCDIR%%/clientconfdir/testclient.sample
man/man8/bedup.8.gz
man/man8/bsigs.8.gz
man/man8/bsparse.8.gz