View | Details | Raw Unified | Return to bug 238288
Collapse All | Expand All

(-)Makefile (-2 / +10 lines)
Lines 8-14 Link Here
8
MAINTAINER=	phascolarctos@protonmail.ch
8
MAINTAINER=	phascolarctos@protonmail.ch
9
COMMENT=	Network backup and restore program
9
COMMENT=	Network backup and restore program
10
10
11
LICENSE=	AGPLv3
11
LICENSE=	AGPLv3 PD
12
LICENSE_COMB=	multi
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
14
BUILD_DEPENDS=	${LOCALBASE}/include/uthash.h:devel/uthash \
15
BUILD_DEPENDS=	${LOCALBASE}/include/uthash.h:devel/uthash \
Lines 17-23 Link Here
17
18
18
USES=		autoreconf gmake libtool ncurses pkgconfig ssl
19
USES=		autoreconf gmake libtool ncurses pkgconfig ssl
19
USE_GITHUB=	yes
20
USE_GITHUB=	yes
20
USE_RC_SUBR=	burp
21
21
22
GH_ACCOUNT=	grke
22
GH_ACCOUNT=	grke
23
23
Lines 29-35 Link Here
29
CONFLICTS_INSTALL?=	burp-devel
29
CONFLICTS_INSTALL?=	burp-devel
30
PORTSCOUT?=		limit:^2\.2\.
30
PORTSCOUT?=		limit:^2\.2\.
31
31
32
PLIST_SUB=	PORTVERSION=${PORTVERSION}
33
32
OPTIONS_DEFINE=		IPV6
34
OPTIONS_DEFINE=		IPV6
33
IPV6_CONFIGURE_ENABLE=	ipv6
35
IPV6_CONFIGURE_ENABLE=	ipv6
34
36
37
post-patch:
38
	${REINPLACE_CMD} "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/freebsd/rc.d/burp
39
40
post-install:
41
	${INSTALL_SCRIPT} ${WRKSRC}/freebsd/rc.d/burp ${STAGEDIR}${PREFIX}/etc/rc.d/burp
42
35
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)files/burp.in (-57 lines)
Lines 1-57 Link Here
1
#!/bin/sh
2
3
# Burp rc.d script, placed in the public domain by Jarkko Kniivilä @ 2014-05-14
4
5
# PROVIDE: burp
6
# REQUIRE: DAEMON
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf to enable Burp:
10
#
11
#  burp_enable="YES"
12
#  # optional
13
#  burp_config="%%PREFIX%%/etc/burp/burp-server.conf"
14
#
15
#
16
17
export PATH="$PATH:/usr/local/bin:/usr/local/sbin"
18
19
. /etc/rc.subr
20
21
name=burp
22
rcvar=burp_enable
23
monitor_cmd="${name}_monitor"
24
summary_cmd="${name}_summary"
25
26
load_rc_config $name
27
28
# Set some defaults
29
: ${burp_enable:="NO"}
30
: ${burp_config:="%%PREFIX%%/etc/burp/burp-server.conf"}
31
32
burp_flags="-c ${burp_config}"
33
34
command="/usr/local/sbin/${name}"
35
command_args="> /dev/null 2>&1"
36
37
pidfile="/var/run/${name}.server.pid"  # this really depends on the config file so make sure they concur
38
required_files="${burp_config}"
39
sig_reload="HUP"
40
extra_commands="reload monitor summary"
41
42
burp_monitor()
43
{
44
    rc_flags="-a s ${rc_flags}"
45
    ${command} ${rc_flags}
46
}
47
48
burp_summary()
49
{
50
    # This allows you to get the output of the '-a S' flag thusly:
51
    # service burp summary -C $my_client
52
53
    rc_flags="-a S ${rc_flags}"
54
    ${command} ${rc_flags} "$@"
55
}
56
57
run_rc_command "$@"
(-)pkg-plist (-1 / +2 lines)
Lines 4-9 Link Here
4
%%ETCDIR%%/burp.conf
4
%%ETCDIR%%/burp.conf
5
%%ETCDIR%%/clientconfdir/incexc/example
5
%%ETCDIR%%/clientconfdir/incexc/example
6
%%ETCDIR%%/clientconfdir/testclient
6
%%ETCDIR%%/clientconfdir/testclient
7
etc/rc.d/burp
7
man/man8/bedup.8.gz
8
man/man8/bedup.8.gz
8
man/man8/bsigs.8.gz
9
man/man8/bsigs.8.gz
9
man/man8/bsparse.8.gz
10
man/man8/bsparse.8.gz
Lines 22-26 Link Here
22
%%DATADIR%%/scripts/timer_script
23
%%DATADIR%%/scripts/timer_script
23
@dir %%ETCDIR%%/CA-client
24
@dir %%ETCDIR%%/CA-client
24
@dir %%ETCDIR%%/autoupgrade/server/win32
25
@dir %%ETCDIR%%/autoupgrade/server/win32
25
@dir %%ETCDIR%%/autoupgrade/server/win64/2.2.18
26
@dir %%ETCDIR%%/autoupgrade/server/win64/%%PORTVERSION%%
26
@dir /var/spool/burp
27
@dir /var/spool/burp

Return to bug 238288