1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net/exabgp/files/exabgp.sh.in
Ryan Steinmetz eb879d43cf New port: net/exabgp
A BGP route injector which can inject routes with arbitrary next-hops into
your network (source some ipv4/ipv6 routes using both IPv4 and IPv6 TCP
connections), mitigate DDOS using flowspec, or pass the route it receive
in textual form to third party application.

WWW: https://code.google.com/p/exabgp/

Feature safe:	yes
2012-11-13 02:42:48 +00:00

17 lines
605 B
Bash

#!/bin/sh
export PYTHONPATH=%%PYTHON_LIBDIR%%:%%PYTHON_SITELIBDIR%%/exabgp
INTERPRETER=%%PYTHON_CMD%%
APPLICATIONS=`$INTERPRETER -c "import sys,os; print ' '.join(os.path.join(_,'exabgp','application.py') for _ in sys.path if os.path.isfile('/'.join((_,'exabgp/application.py'))))"`
APPLICATION=`echo $APPLICATIONS | awk '{ print $1; }'`
if [ $# -eq 0 ]; then
$INTERPRETER -m exabgp.debug $APPLICATION -c %%PREFIX%%/etc/exabgp --help
echo "===> To start exabgp, you should use:"
echo "===> service exabgp start"
else
exec $INTERPRETER -m exabgp.debug $APPLICATION -c %%PREFIX%%/etc/exabgp $*
fi