mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
eb879d43cf
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
17 lines
605 B
Bash
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
|