FreeBSD Bugzilla – Attachment 169398 Details for
Bug 208861
[maintainer][patch] sysutils/burp: IPv6 can be disabled at compile time, updated rc.d script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
burp.diff (text/plain), 2.53 KB, created by
loic-freebsd
on 2016-04-17 16:53:04 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
loic-freebsd
Created:
2016-04-17 16:53:04 UTC
Size:
2.53 KB
patch
obsolete
>diff -ruN burp.orig/Makefile burp/Makefile >--- burp.orig/Makefile 2016-04-17 09:43:34.033342000 +0000 >+++ burp/Makefile 2016-04-17 16:45:03.832623000 +0000 >@@ -3,6 +3,7 @@ > > PORTNAME= burp > PORTVERSION= 1.4.40 >+PORTREVISION= 1 > CATEGORIES= sysutils > > MAINTAINER= loic-freebsd@loicp.eu >@@ -14,6 +15,9 @@ > BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash > LIB_DEPENDS= librsync.so:net/librsync1 > >+OPTIONS_DEFINE= IPV6 >+OPTIONS_DEFAULT= IPV6 >+ > USE_GITHUB= yes > GH_ACCOUNT= grke > >@@ -26,6 +30,8 @@ > CONFIGURE_ARGS= --sbindir="${PREFIX}/sbin" \ > --sysconfdir=${ETCDIR} \ > >+IPV6_CONFIGURE_ENABLE= ipv6 >+ > CONFIG_FILES= configs/server/burp.conf \ > configs/client/burp.conf \ > configs/certs/CA/CA.cnf >diff -ruN burp.orig/files/burp.in burp/files/burp.in >--- burp.orig/files/burp.in 2016-04-17 09:43:34.035212000 +0000 >+++ burp/files/burp.in 2016-04-17 16:43:47.239124000 +0000 >@@ -1,32 +1,57 @@ > #!/bin/sh > >-# $FreeBSD$ >-# >+# Burp rc.d script, placed in the public domain by Jarkko Kniivilä @ 2014-05-14 >+ > # PROVIDE: burp >-# REQUIRE: LOGIN >+# REQUIRE: DAEMON > # KEYWORD: shutdown > # >-# Add these lines to /etc/rc.conf.local or /etc/rc.conf >-# to enable this service: >+# Add the following lines to /etc/rc.conf to enable Burp: >+# >+# burp_enable="YES" >+# # optional >+# burp_config="%%PREFIX%%/etc/burp/burp-server.conf" > # >-# burp_enable (bool): Set to NO by default. >-# Set it to YES to enable burp. >-# burp_config (path): Set to %%PREFIX%%/etc/burp/burp.cf >-# by default. >+# >+ >+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_config:="%%PREFIX%%/etc/burp/burp-server.conf"} >+ >+burp_flags="-c ${burp_config}" > >-command=%%PREFIX%%/sbin/${name} >-pidfile=/var/run/${name}.server.pid >+command="/usr/local/sbin/${name}" >+command_args="> /dev/null 2>&1" > >-command_args="-c $burp_config" >+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 "$1" >+run_rc_command "$@"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208861
: 169398