FreeBSD Bugzilla – Attachment 181814 Details for
Bug 218678
[new port] net/gobgp: Add a new port GoBGP, which is a BGP routing daemon implemented in golang.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
gobgp.shar
gobgp.shar (text/plain), 14.32 KB, created by
Norikatsu Shigemura
on 2017-04-15 16:19:10 UTC
(
hide
)
Description:
gobgp.shar
Filename:
MIME Type:
Creator:
Norikatsu Shigemura
Created:
2017-04-15 16:19:10 UTC
Size:
14.32 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># gobgp ># gobgp/Makefile ># gobgp/distinfo ># gobgp/pkg-descr ># gobgp/files ># gobgp/files/gobgpd.in ># gobgp/files/patch-server_sockopt__bsd.go ># gobgp/files/patch-server_sockopt__openbsd.go ># >echo c - gobgp >mkdir -p gobgp > /dev/null 2>&1 >echo x - gobgp/Makefile >sed 's/^X//' >gobgp/Makefile << '152f79f4b78a373ba70dee8a821fec38' >X# $FreeBSD$ >X >XPORTNAME= gobgp >XPORTVERSION= 1.18 >XDISTVERSIONPREFIX= v >XCATEGORIES= net >XDIST_SUBDIR= gobgp >X >XMAINTAINER= nork@ninth-nine.com >XCOMMENT= BGP implementation in Go >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSE_GITHUB= yes >XGH_ACCOUNT= osrg:DEFAULT >XGH_TUPLE= Sirupsen:logrus:10f801e:logrus/../src/github.com/Sirupsen/logrus \ >X armon:go-radix:4239b77:radix/../src/github.com/armon/go-radix \ >X eapache:channels:47238d5:channels/../src/github.com/eapache/channels \ >X eapache:queue:44cc805:queue/../src/github.com/eapache/queue \ >X golang:protobuf:c9c7427:protobuf/../src/github.com/golang/protobuf \ >X influxdata:influxdb:b869607:influxdb/../src/github.com/influxdata/influxdb \ >X satori:go.uuid:5bf94b6:uuid/../src/github.com/satori/go.uuid \ >X spf13:cobra:7be4bed:cobra/../src/github.com/spf13/cobra \ >X spf13:pflag:d90f37a:pflag/../src/github.com/spf13/pflag \ >X spf13:viper:84f9480:viper/../src/github.com/spf13/viper \ >X fsnotify:fsnotify:ff7bc41:fsnotify/../src/github.com/fsnotify/fsnotify \ >X hashicorp:hcl:630949a:hcl/../src/github.com/hashicorp/hcl \ >X magiconair:properties:51463bf:properties/../src/github.com/magiconair/properties \ >X mitchellh:mapstructure:5381866:mapstructure/../src/github.com/mitchellh/mapstructure \ >X pelletier:go-toml:f6e7596:toml/../src/github.com/pelletier/go-toml \ >X pelletier:go-buffruneio:c37440a:buffruneio/../src/github.com/pelletier/go-buffruneio \ >X spf13:afero:9be6508:afero/../src/github.com/spf13/afero \ >X spf13:cast:ce135a4:cast/../src/github.com/spf13/cast \ >X spf13:jWalterWeatherman:fa7ca7e:jwalterweatherman/../src/github.com/spf13/jwalterweatherman \ >X golang:net:6c23252:gonet/../src/golang.org/x/net \ >X golang:sys:afadfcc:gosys/../src/golang.org/x/sys \ >X golang:text:fc7fa09:gotext/../src/golang.org/x/text \ >X grpc:grpc-go:14a6be4:grpc/../src/google.golang.org/grpc \ >X go-tomb:tomb:d5d1b58:tombv2/../src/gopkg.in/tomb.v2 \ >X go-yaml:yaml:a3f3340:yamlv2/../src/gopkg.in/yaml.v2 \ >X jessevdk:go-flags:460c7bb:flags/../src/github.com/jessevdk/go-flags \ >X kr:pretty:cfb55aa:pretty/../src/github.com/kr/pretty \ >X kr:text:7cafcd8:krtext/../src/github.com/kr/text >XUSES= go >XGO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >XGO_TARGET= ${GO_PKGNAME}/gobgp \ >X ${GO_PKGNAME}/gobgpd >XPLIST_FILES= bin/gobgp libexec/gobgpd >X >XOPTIONS_DEFINE= BASH ZSH >XOPTIONS_DEFAULT=BASH ZSH >X >XBASH_PLIST_FILES= etc/bash_completion.d/gobgp-completion.bash \ >X etc/bash_completion.d/gobgp-dynamic-completion.bash \ >X etc/bash_completion.d/gobgp-static-completion.bash >XZSH_PLIST_FILES= share/zsh/site-functions/_gobgp >X >XUSE_RC_SUBR= gobgpd >XSUB_FILES= gobgpd >X >Xdo-install: >X ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gobgp ${STAGEDIR}${PREFIX}/bin >X ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gobgpd ${STAGEDIR}${PREFIX}/libexec >X >Xpost-install-BASH-on: >X ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d >X ${INSTALL_DATA} ${GO_WRKSRC}/tools/completion/gobgp*-completion.bash ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ >X >Xpost-install-ZSH-on: >X ${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions >X ${INSTALL_DATA} ${GO_WRKSRC}/tools/completion/zsh/_gobgp ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ >X >X.include <bsd.port.mk> >152f79f4b78a373ba70dee8a821fec38 >echo x - gobgp/distinfo >sed 's/^X//' >gobgp/distinfo << 'd3328815a5a8f7a9471f729c62d08fcc' >XTIMESTAMP = 1492010618 >XSHA256 (gobgp/osrg-gobgp-v1.18_GH0.tar.gz) = 915ec159512bab459ed38250ddb75e152a9474aed12a3e482dc58e286e8443fa >XSIZE (gobgp/osrg-gobgp-v1.18_GH0.tar.gz) = 628952 >XSHA256 (gobgp/Sirupsen-logrus-10f801e_GH0.tar.gz) = 1c5aa2cbf0550c632b386da7393eecd25c4e8d724739274a5246b03b94b7fcea >XSIZE (gobgp/Sirupsen-logrus-10f801e_GH0.tar.gz) = 26730 >XSHA256 (gobgp/armon-go-radix-4239b77_GH0.tar.gz) = 7aca5d599d3014f98c01f9c59f638f031d7c3779a491f861d0fe9d7ac8840e61 >XSIZE (gobgp/armon-go-radix-4239b77_GH0.tar.gz) = 5481 >XSHA256 (gobgp/eapache-channels-47238d5_GH0.tar.gz) = f187e475d4e03e4b454845ea311daeeacc9b42558d5e9b6ea4132cb4c3ac237d >XSIZE (gobgp/eapache-channels-47238d5_GH0.tar.gz) = 11706 >XSHA256 (gobgp/eapache-queue-44cc805_GH0.tar.gz) = 124fe636312c324533005b2b0c1132119243e7f86201d4bc1cbe5503e26f4b29 >XSIZE (gobgp/eapache-queue-44cc805_GH0.tar.gz) = 3502 >XSHA256 (gobgp/golang-protobuf-c9c7427_GH0.tar.gz) = 71a9a376cdfd472f583ec0d1cd8e35baa14c5bb63b7ae4416ba5f378cc73b826 >XSIZE (gobgp/golang-protobuf-c9c7427_GH0.tar.gz) = 245281 >XSHA256 (gobgp/influxdata-influxdb-b869607_GH0.tar.gz) = 192c85fdaa934deaadf421146360a28d96ee06ebe8e0edbf624036c079b145af >XSIZE (gobgp/influxdata-influxdb-b869607_GH0.tar.gz) = 1463789 >XSHA256 (gobgp/satori-go.uuid-5bf94b6_GH0.tar.gz) = eb26d69da0a36d9318183dd4a15b162cf8d6e4493f6c12ae635ba0a072e06da1 >XSIZE (gobgp/satori-go.uuid-5bf94b6_GH0.tar.gz) = 7607 >XSHA256 (gobgp/spf13-cobra-7be4bed_GH0.tar.gz) = 83b28c154174d7a5be079cdf6d44eb22254f3fc349d3eb1febdf00ea4efec5e7 >XSIZE (gobgp/spf13-cobra-7be4bed_GH0.tar.gz) = 73667 >XSHA256 (gobgp/spf13-pflag-d90f37a_GH0.tar.gz) = 5164fba7d4576dbb16e0fcc903335e73b6a797f028b83d4d5a820e9318b0f89e >XSIZE (gobgp/spf13-pflag-d90f37a_GH0.tar.gz) = 39142 >XSHA256 (gobgp/spf13-viper-84f9480_GH0.tar.gz) = e64efd180226739e0497fb4c7e9b2c99eeb78c6ffee15d9ff25eed01c6d2429e >XSIZE (gobgp/spf13-viper-84f9480_GH0.tar.gz) = 30215 >XSHA256 (gobgp/fsnotify-fsnotify-ff7bc41_GH0.tar.gz) = ad07fd1ce892fe2ecde756b79f2eed683d1b9209d31c8b49d792d80325b1a588 >XSIZE (gobgp/fsnotify-fsnotify-ff7bc41_GH0.tar.gz) = 30586 >XSHA256 (gobgp/hashicorp-hcl-630949a_GH0.tar.gz) = 6d9f017b26e71c66130431695329d0047f143ba0bcfb4a3060bf6238e4430902 >XSIZE (gobgp/hashicorp-hcl-630949a_GH0.tar.gz) = 69191 >XSHA256 (gobgp/magiconair-properties-51463bf_GH0.tar.gz) = 31eb9ae5d5f02fa1e6be9a17f79273389ebfa8bb7f8b59c25c65509e7b633ae6 >XSIZE (gobgp/magiconair-properties-51463bf_GH0.tar.gz) = 27518 >XSHA256 (gobgp/mitchellh-mapstructure-5381866_GH0.tar.gz) = 8227bfd05dec57c97218b62ee7e5ca78aa05092ea77863ef7e299e961a0a8b4c >XSIZE (gobgp/mitchellh-mapstructure-5381866_GH0.tar.gz) = 15486 >XSHA256 (gobgp/pelletier-go-toml-f6e7596_GH0.tar.gz) = 192b081ac3469d6a7dabb1c5e71bcbfe424a06629cf274895c6c841949af79ec >XSIZE (gobgp/pelletier-go-toml-f6e7596_GH0.tar.gz) = 40582 >XSHA256 (gobgp/pelletier-go-buffruneio-c37440a_GH0.tar.gz) = d2bdcd763e33d9bdda4058b10dc2b4fc25aeb1b752b7e1bb9b4713dc06e24af4 >XSIZE (gobgp/pelletier-go-buffruneio-c37440a_GH0.tar.gz) = 3027 >XSHA256 (gobgp/spf13-afero-9be6508_GH0.tar.gz) = 6814d3c2e2c55540cbc190def53324924cf44b06ac4ec39b4cb09c3416a5dcb5 >XSIZE (gobgp/spf13-afero-9be6508_GH0.tar.gz) = 40630 >XSHA256 (gobgp/spf13-cast-ce135a4_GH0.tar.gz) = c9d5973187d2094361d2929194823a27c133bcd755f2db1f1080fafde708f464 >XSIZE (gobgp/spf13-cast-ce135a4_GH0.tar.gz) = 9416 >XSHA256 (gobgp/spf13-jWalterWeatherman-fa7ca7e_GH0.tar.gz) = 15828edcc10b670c78a83a2e29ce86961cf3185e8950b5c9cd8cfe6db3c1bb4f >XSIZE (gobgp/spf13-jWalterWeatherman-fa7ca7e_GH0.tar.gz) = 6255 >XSHA256 (gobgp/golang-net-6c23252_GH0.tar.gz) = 349e7e0743b43065d68657a0ef290996aa4aecae3a496bfb717f5ebf5cbb8942 >XSIZE (gobgp/golang-net-6c23252_GH0.tar.gz) = 859543 >XSHA256 (gobgp/golang-sys-afadfcc_GH0.tar.gz) = 09bf820260f59314b37f9ea9fff68f70977aba3e2d509b62b7bddf9a22dccbf7 >XSIZE (gobgp/golang-sys-afadfcc_GH0.tar.gz) = 675225 >XSHA256 (gobgp/golang-text-fc7fa09_GH0.tar.gz) = 6fa6ec90a8fb44debc2acb5b5cdef383cb17479afb817a5b8460a319b5a87214 >XSIZE (gobgp/golang-text-fc7fa09_GH0.tar.gz) = 4552951 >XSHA256 (gobgp/grpc-grpc-go-14a6be4_GH0.tar.gz) = dcddf10b5e3d1bbbd7bcabf022b436f97649fa1ef3f29d742b5a6cba6591a73a >XSIZE (gobgp/grpc-grpc-go-14a6be4_GH0.tar.gz) = 255404 >XSHA256 (gobgp/go-tomb-tomb-d5d1b58_GH0.tar.gz) = 15f81593032433527203ace3277c819f2b4b90fd337ea2193de0c7a515b87f08 >XSIZE (gobgp/go-tomb-tomb-d5d1b58_GH0.tar.gz) = 5513 >XSHA256 (gobgp/go-yaml-yaml-a3f3340_GH0.tar.gz) = e2a3af32b0d55b2426229ea6efca85e4219209225f05fb57af55834a2dee2d1a >XSIZE (gobgp/go-yaml-yaml-a3f3340_GH0.tar.gz) = 60720 >XSHA256 (gobgp/jessevdk-go-flags-460c7bb_GH0.tar.gz) = 434279a5c768a82ff37e40604537d87a057b21aa8ccd55931060cd844aa78401 >XSIZE (gobgp/jessevdk-go-flags-460c7bb_GH0.tar.gz) = 54787 >XSHA256 (gobgp/kr-pretty-cfb55aa_GH0.tar.gz) = 5c8e2093298c7540a2707a34d283ce37f1b288497786d4f5725647a63ab2ac5c >XSIZE (gobgp/kr-pretty-cfb55aa_GH0.tar.gz) = 8499 >XSHA256 (gobgp/kr-text-7cafcd8_GH0.tar.gz) = 218bd56a3927283e4c9232b4ee15e0fcc989ace72a2a0be14863ce3795ad3c90 >XSIZE (gobgp/kr-text-7cafcd8_GH0.tar.gz) = 8584 >d3328815a5a8f7a9471f729c62d08fcc >echo x - gobgp/pkg-descr >sed 's/^X//' >gobgp/pkg-descr << 'fc2150dd34a843eca781506ca555ae15' >XGoBGP: BGP implementation in Go >X >XGoBGP is an open source BGP implementation designed from scratch >Xfor modern environment and implemented in a modern programming >Xlanguage, the Go Programming Language. >X >XWWW: https://github.com/osrg/gobgp >fc2150dd34a843eca781506ca555ae15 >echo c - gobgp/files >mkdir -p gobgp/files > /dev/null 2>&1 >echo x - gobgp/files/gobgpd.in >sed 's/^X//' >gobgp/files/gobgpd.in << '5e23df13362ac6983208cec7f836c08d' >X#!/bin/sh >X# $FreeBSD$ >X >X# PROVIDE: gobgpd >X# REQUIRE: netif routing >X# BEFORE: LOGIN >X# KEYWORD: shutdown >X# >X# Define these gobgpd* variables in one of these files: >X# /etc/rc.conf >X# /etc/rc.conf.local >X# /etc/rc.conf.d/gobgpd >X# >X# DO NOT CHANGE THESE DEFAULT VALUES HERE >X# >X# Add the following lines to /etc/rc.conf to enable gobgpd: >X# >X# gobgpd_enable="YES" >X# gobgpd_config="<default unset>" >X# gobgpd_config_type="<default unset>" >X# gobgpd_flags="<set as needed>" >X# gobgpd_log_level="<set as needed like 'debug'>" >X# gobgpd_stdlog_enable="<default 'NO'>" >X# gobgpd_syslog_host="<set as needed like 'yes'(same as ':') or 'udp:otherhost:514'>" >X# gobgpd_syslog_facility="<set as needed like 'daemon'>" >X# gobgpd_foreground_enable="<default 'NO'>" >X# >X >X. /etc/rc.subr >X >Xname="gobgpd" >Xrcvar="gobgpd_enable" >X >Xload_rc_config $name >X >X: ${gobgpd_enable:=NO} >X: ${gobgpd_stdlog_enable:=NO} >X: ${gobgpd_foreground_enable:=NO} >X >Xpidfile="/var/run/${name}.pid" >Xprocname="%%PREFIX%%/libexec/gobgpd" >Xcommand_args="${gobgpd_flags}${gobgpd_ctype:+ -t ${gobgpd_config_type}}${gobgpd_config:+ -f ${gobgpd_config}}${gobgpd_log_level:+ --log-level=${gobgpd_log_level}}" >X >Xstart_cmd="gobgpd_start" >Xstart_precmd="gobgpd_prestart" >Xreload_cmd="gobgpd_reload" >Xsig_stop="KILL" >X >Xgobgpd_prestart () { >X case "${gobgpd_flags}" in >X -f*|*-f*|--config-file*|*--config-file*) >X err 1 "gobgpd_flags includes the --config-file option, use gobgpd_config instead." >X ;; >X -t*|*-t*|--config-type*|*--config-type*) >X err 1 "gobgpd_flags includes the --config-type option, use gobgpd_config_type instead." >X ;; >X -s*|*-s*|--syslog*) >X err 1 "gobgpd_flags includes the --syslog option, use gobgpd_syslog_host instead." >X ;; >X --syslog-facility*|*--syslog-facility*) >X err 1 "gobgpd_flags includes the --syslog-facility option, use gobgpd_syslog_host instead." >X ;; >X --disable-stdlog*|*--disable-stdlog*) >X err 1 "gobgpd_flags includes the --disable-stdlog option, use gobgpd_stdlog_enable instead." >X ;; >X --log-level*|*--log-level*) >X err 1 "gobgpd_flags includes the --log-level option, use gobgp_log_level instead." >X ;; >X -d*|*-d*|--dry-run*|*--dry-run*) >X err 1 "gobgpd_flags doesn't require --dry-run option." >X ;; >X -h*|*-h*|--help*|*--help*) >X err 1 "gobgpd_flags doesn't require --help option." >X ;; >X esac >X >X case "x${gobgpd_config_type}" in >X x|xtoml|xyaml|xjson) >X ;; >X *) >X err 1 "gobgpd_config_type requires one of 'toml', 'yaml' or 'json'." >X esac >X >X if [ -f ${gobgpd_config} ]; then >X ${procname} --dry-run ${command_args} > /dev/null >X if [ $? -ne 0 ]; then >X err 1 $(${procname} --dry-run --log-plain ${command_args}) >X fi >X fi >X} >X >Xgobgpd_start () { >X if checkyesno gobgpd_foreground_enable; then >X ${procname} ${command_args} $(checkyesno gobgpd_stdlog_enable || echo --disable-stdlog) ${gobgpd_syslog_host:+ --syslog=${gobgpd_syslog_host}}${gobgpd_syslog_facility:+ --syslog-facility=${gobgpd_syslog_facility}} >X else >X echo "Starting ${name}." >X /usr/sbin/daemon -c -p ${pidfile} ${procname} ${command_args} $(checkyesno gobgpd_stdlog_enable || echo --disable-stdlog) ${gobgpd_syslog_host:+ --syslog=${gobgpd_syslog_host}}${gobgpd_syslog_facility:+ --syslog-facility=${gobgpd_syslog_facility}} >X fi >X} >X >Xgobgpd_reload () { >X echo "Graceful Restarting ${name}." >X ${procname} --graceful-restart ${command_args} >X} >X >Xrun_rc_command "$1" >5e23df13362ac6983208cec7f836c08d >echo x - gobgp/files/patch-server_sockopt__bsd.go >sed 's/^X//' >gobgp/files/patch-server_sockopt__bsd.go << '587da43a24cc3eb4ce37b851fe9fef60' >X--- server/sockopt_bsd.go.orig 2017-04-04 13:47:30 UTC >X+++ server/sockopt_bsd.go >X@@ -24,10 +24,6 @@ import ( >X "syscall" >X ) >X >X-const ( >X- TCP_MD5SIG = 0x10 >X-) >X- >X func SetTcpMD5SigSockopts(l *net.TCPListener, address string, key string) error { >X fi, err := l.File() >X defer fi.Close() >X@@ -43,7 +39,7 @@ func SetTcpMD5SigSockopts(l *net.TCPList >X // always enable and assumes that the configuration is done by >X // setkey() >X if err := syscall.SetsockoptInt(int(fi.Fd()), >X- syscall.IPPROTO_TCP, TCP_MD5SIG, 1); err != nil { >X+ syscall.IPPROTO_TCP, syscall.TCP_MD5SIG, 1); err != nil { >X return err >X } >X return nil >587da43a24cc3eb4ce37b851fe9fef60 >echo x - gobgp/files/patch-server_sockopt__openbsd.go >sed 's/^X//' >gobgp/files/patch-server_sockopt__openbsd.go << 'd6b1f156f6cf64e9c48b250a35ea3007' >X--- server/sockopt_openbsd.go.orig 2017-04-04 13:47:30 UTC >X+++ server/sockopt_openbsd.go >X@@ -347,10 +347,6 @@ func saDelete(address string) error { >X return nil >X } >X >X-const ( >X- TCP_MD5SIG = 0x4 >X-) >X- >X func SetTcpMD5SigSockopts(l *net.TCPListener, address string, key string) error { >X fi, err := l.File() >X defer fi.Close() >X@@ -364,7 +360,7 @@ func SetTcpMD5SigSockopts(l *net.TCPList >X } >X >X t := int(1) >X- if e := syscall.SetsockoptInt(int(fi.Fd()), syscall.IPPROTO_TCP, TCP_MD5SIG, t); e != nil { >X+ if e := syscall.SetsockoptInt(int(fi.Fd()), syscall.IPPROTO_TCP, syscall.TCP_MD5SIG, t); e != nil { >X return e >X } >X if len(key) > 0 { >d6b1f156f6cf64e9c48b250a35ea3007 >exit >
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 218678
:
181814
|
190484