Index: Makefile =================================================================== --- Makefile (revision 503252) +++ Makefile (working copy) @@ -8,7 +8,8 @@ MAINTAINER= phascolarctos@protonmail.ch COMMENT= Network backup and restore program -LICENSE= AGPLv3 +LICENSE= AGPLv3 PD +LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash \ @@ -17,7 +18,6 @@ USES= autoreconf gmake libtool ncurses pkgconfig ssl USE_GITHUB= yes -USE_RC_SUBR= burp GH_ACCOUNT= grke @@ -29,7 +29,15 @@ CONFLICTS_INSTALL?= burp-devel PORTSCOUT?= limit:^2\.2\. +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 + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/freebsd/rc.d/burp ${STAGEDIR}${PREFIX}/etc/rc.d/burp + .include Index: files/burp.in =================================================================== --- files/burp.in (revision 503252) +++ files/burp.in (nonexistent) @@ -1,57 +0,0 @@ -#!/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:/usr/local/bin:/usr/local/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="/usr/local/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 "$@" Property changes on: files/burp.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: pkg-plist =================================================================== --- pkg-plist (revision 503252) +++ pkg-plist (working copy) @@ -4,6 +4,7 @@ %%ETCDIR%%/burp.conf %%ETCDIR%%/clientconfdir/incexc/example %%ETCDIR%%/clientconfdir/testclient +etc/rc.d/burp man/man8/bedup.8.gz man/man8/bsigs.8.gz man/man8/bsparse.8.gz @@ -22,5 +23,5 @@ %%DATADIR%%/scripts/timer_script @dir %%ETCDIR%%/CA-client @dir %%ETCDIR%%/autoupgrade/server/win32 -@dir %%ETCDIR%%/autoupgrade/server/win64/2.2.18 +@dir %%ETCDIR%%/autoupgrade/server/win64/%%PORTVERSION%% @dir /var/spool/burp