ports/53556: New port: net/zebra-devel: development version of net/zebra
Alexandr Kovalenko
never at nevermind.kiev.ua
Fri Jun 20 15:00:26 UTC 2003
>Number: 53556
>Category: ports
>Synopsis: New port: net/zebra-devel: development version of net/zebra
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 20 08:00:22 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Alexandr Kovalenko
>Release: FreeBSD 4.7-RELEASE-p7 i386
>Organization:
WNet ISP, Kiev, Ukraine, http://wnet.ua/
>Environment:
System: FreeBSD kurush.osdn.org.ua 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #0: Wed Mar 5 02:16:00 EET 2003 root at kurush.osdn.org.ua:/usr/obj/usr/src/sys/kurush i386
Latest ports.
>Description:
Development version from CVS of popular routing software, zebra
>How-To-Repeat:
N/A
>Fix:
# 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:
#
# zebra-devel
# zebra-devel/Makefile
# zebra-devel/distinfo
# zebra-devel/files
# zebra-devel/files/zebractl.sh
# zebra-devel/pkg-descr
# zebra-devel/pkg-plist
# zebra-devel/scripts
# zebra-devel/scripts/configure
#
echo c - zebra-devel
mkdir -p zebra-devel > /dev/null 2>&1
echo x - zebra-devel/Makefile
sed 's/^X//' >zebra-devel/Makefile << 'END-of-zebra-devel/Makefile'
X# New ports collection makefile for: zebra-devel
X# Date created: Fri 20 Jun 2003 15:57:48 EEST
X# Whom: Alexandr Kovalenko <never at nevermind.kiev.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME= zebra
XPORTVERSION= ${ZEBRAVERSION}.${ZEBRADATE}
XPORTREVISION= 0
XCATEGORIES= net ipv6
XMASTER_SITES= ftp://ftp7.ua.freebsd.org/pub/local-distfiles/ \
X http://uafug.org.ua/~never/zebra-devel/
X
XMAINTAINER= never at nevermind.kiev.ua
XCOMMENT= Free RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector)
X
XZEBRAVERSION= 0.94
XZEBRADATE= 20030620
X
XWRKSRC= ${WRKDIR}/${PORTNAME}-${ZEBRAVERSION}
X
XUSE_SUBMAKE= yes
XUSE_BZIP2= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
XSCRIPTS_ENV= WRKDIRPREFIX=${WRKDIRPREFIX}
X
XMAN1= vtysh.1
XMAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
X
X.if defined (WITHOUT_IPV6)
XCONFIGURE_ARGS+=--disable-ipv6
XWITHOUT_OSPF6D= yes
XWITHOUT_RIPNGD= yes
X.endif
X
X.if !defined(WITHOUT_BGPD)
XPLIST_SUB+= BGPD=""
X.else
XCONFIGURE_ARGS+=--disable-bgpd
XPLIST_SUB+= BGPD="@comment "
X.endif
X
X.if !defined(WITHOUT_OSPF6D)
XPLIST_SUB+= OSPF6D=""
X.else
XCONFIGURE_ARGS+=--disable-ospf6d
XPLIST_SUB+= OSPF6D="@comment "
X.endif
X
X.if !defined(WITHOUT_OSPFD)
XPLIST_SUB+= OSPF6D=""
XPLIST_SUB+= OSPFD=""
X.else
XCONFIGURE_ARGS+=--disable-ospfd
XPLIST_SUB+= OSPFD="@comment "
X.endif
X
X.if !defined(WITHOUT_RIPD)
XPLIST_SUB+= RIPD=""
X.else
XCONFIGURE_ARGS+=--disable-ripd
XPLIST_SUB+= RIPD="@comment "
X.endif
X
X.if !defined(WITHOUT_RIPNGD)
XPLIST_SUB+= RIPNGD=""
X.else
XCONFIGURE_ARGS+=--disable-ripngd
XPLIST_SUB+= RIPNGD="@comment "
X.endif
X
X.if !defined(BATCH)
Xpre-configure:
X @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
X
Xpost-clean:
X @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
X
X.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
X.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
X.endif
X.endif
X
Xpost-install:
X @( cd ${WRKSRC}/doc; ${RM} -f zebra*info*; ${MAKE} zebra.info install )
X @${ECHO} "===> installing zebra startup file..."
X @${SED} -e "s=!!PREFIX!!=${PREFIX}=" \
X < ${FILESDIR}/zebractl.sh \
X > ${PREFIX}/sbin/zebractl
X @${CHMOD} 555 ${PREFIX}/sbin/zebractl
X @${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
X @${ECHO} "defaultrouter=\"NO\""
X @${ECHO} "router_enable=\"YES\""
X @${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
X @${ECHO} "router_flags=\"start\""
X @${ECHO} "done."
X
X.include <bsd.port.mk>
END-of-zebra-devel/Makefile
echo x - zebra-devel/distinfo
sed 's/^X//' >zebra-devel/distinfo << 'END-of-zebra-devel/distinfo'
XMD5 (zebra-0.94.20030620.tar.bz2) = 8ee3cc1326b42a6a8600ce8b9dd3f35d
END-of-zebra-devel/distinfo
echo c - zebra-devel/files
mkdir -p zebra-devel/files > /dev/null 2>&1
echo x - zebra-devel/files/zebractl.sh
sed 's/^X//' >zebra-devel/files/zebractl.sh << 'END-of-zebra-devel/files/zebractl.sh'
X#! /bin/sh
X#
X# $FreeBSD: ports/net/zebra/files/zebractl.sh,v 1.8 2002/08/04 20:04:50 sumikawa Exp $
X#
X# zebra start/stop script by "Andreas Klemm <andreas at FreeBSD.ORG>"
X#
X
Xusage()
X{
X echo "$0: usage: $0 [ start | stop | restart ]"
X exit 1
X}
X
Xif [ $# -lt 1 ]; then
X echo "$0: error: one argument needed"; usage
Xelif [ $# -gt 1 ]; then
X echo "$0: error: only one argument needed"; usage
Xfi
X
Xcase $1 in
X start)
X if [ ! -f !!PREFIX!!/etc/zebra/zebra.conf ]; then
X echo "error: zebra.conf config file is mandatory"
X exit 1
X fi
X [ -f !!PREFIX!!/etc/zebra/zebra.conf ] \
X && !!PREFIX!!/sbin/zebra -d && echo -n ' zebra'
X [ -f !!PREFIX!!/etc/zebra/ripd.conf ] \
X && !!PREFIX!!/sbin/ripd -d && echo -n ' ripd'
X [ -f !!PREFIX!!/etc/zebra/ripngd.conf ] \
X && !!PREFIX!!/sbin/ripngd -d && echo -n ' ripngd'
X [ -f !!PREFIX!!/etc/zebra/ospfd.conf ] \
X && !!PREFIX!!/sbin/ospfd -d && echo -n ' ospfd'
X [ -f !!PREFIX!!/etc/zebra/ospf6d.conf ] \
X && !!PREFIX!!/sbin/ospf6d -d && echo -n ' ospf6d'
X [ -f !!PREFIX!!/etc/zebra/bgpd.conf ] \
X && !!PREFIX!!/sbin/bgpd -d && echo -n ' bgpd'
X ;;
X
X stop)
X [ -f !!PREFIX!!/etc/zebra/ripd.conf ] && killall ripd
X [ -f !!PREFIX!!/etc/zebra/ripngd.conf ] && killall ripngd
X [ -f !!PREFIX!!/etc/zebra/ospfd.conf ] && killall ospfd
X [ -f !!PREFIX!!/etc/zebra/ospf6d.conf ] && killall ospf6d
X [ -f !!PREFIX!!/etc/zebra/bgpd.conf ] && killall bgpd
X [ -f !!PREFIX!!/etc/zebra/zebra.conf ] && killall zebra
X ;;
X restart)
X $0 stop
X $0 start
X ;;
X
X *) echo "$0: error: unknown option $1"
X usage
X ;;
Xesac
Xexit 0
END-of-zebra-devel/files/zebractl.sh
echo x - zebra-devel/pkg-descr
sed 's/^X//' >zebra-devel/pkg-descr << 'END-of-zebra-devel/pkg-descr'
XGNU Zebra is a free software (distributed under GNU Generic Public
XLicense) which manages TCP/IP based routing protocols.
X
XIt supports BGP-4 protocol as described in RFC1771 (A Border Gateway
XProtocol 4) and RIPv1, RIPv2 and OSPFv2.
X
XZebra uses multithread technology under multithread supported UNIX
Xkernels. However it can be run under not-multithread supported
XUNIX kernels.
X
XZebra is intended to be used as a Route Server and a Route Reflector.
XZebra is not a toolkit, it provides full routing power under a new
Xarchitecture.
X
XWWW: http://www.zebra.org/
END-of-zebra-devel/pkg-descr
echo x - zebra-devel/pkg-plist
sed 's/^X//' >zebra-devel/pkg-plist << 'END-of-zebra-devel/pkg-plist'
X%%BGPD%%sbin/bgpd
X%%OSPF6D%%sbin/ospf6d
X%%OSPFD%%sbin/ospfd
X%%RIPD%%sbin/ripd
X%%RIPNGD%%sbin/ripngd
Xsbin/zebra
Xsbin/zebractl
X%%BGPD%%etc/zebra/bgpd.conf.sample
X%%BGPD%%etc/zebra/bgpd.conf.sample2
X%%OSPF6D%%etc/zebra/ospf6d.conf.sample
X%%OSPFD%%etc/zebra/ospfd.conf.sample
X%%RIPD%%etc/zebra/ripd.conf.sample
X%%RIPNGD%%etc/zebra/ripngd.conf.sample
Xetc/zebra/zebra.conf.sample
X at unexec install-info --delete %D/info/zebra.info %D/info/dir
Xinfo/zebra.info
Xinfo/zebra.info-1
Xinfo/zebra.info-2
Xinfo/zebra.info-3
Xinfo/zebra.info-4
X at exec install-info %D/info/zebra.info %D/info/dir
X at dirrm etc/zebra
END-of-zebra-devel/pkg-plist
echo c - zebra-devel/scripts
mkdir -p zebra-devel/scripts > /dev/null 2>&1
echo x - zebra-devel/scripts/configure
sed 's/^X//' >zebra-devel/scripts/configure << 'END-of-zebra-devel/scripts/configure'
X#! /bin/sh
X
X# $FreeBSD: ports/net/zebra/scripts/configure,v 1.3 2001/03/22 22:31:17 andreas Exp $
X
X# configure - zebra compile time option configurator
X# by Andreas Klemm <andreas at FreeBSD.org>
X
Xif [ "$BATCH" != "yes" -a "$BATCH" != "YES" ]; then
X
X#
X# configure - zebra compile time options
X#
X
X/usr/bin/dialog --title "Zebra Compile Time Options" --clear \
X --checklist "\n\
XSelect compile time options for zebra port:" -1 -1 8 \
XLIBPAM "enable PAM authentication for vtysh" OFF \
XOSPF_NSSA "turn on undergoing NSSA feature" OFF \
XSNMP "enable SNMP support" OFF \
XTCP-ZEBRA "enable TCP/IP socket connection" OFF \
X2> /tmp/zebra-checklist.$$
X
Xretval=$?
X
Xif [ -s /tmp/zebra-checklist.$$ ]; then
X set `cat /tmp/zebra-checklist.$$`
Xfi
Xrm -f /tmp/zebra-checklist.$$
X
Xcase $retval in
X 0) if [ -z "$*" ]; then
X echo "Nothing selected"
X fi
X ;;
X 1) echo "Cancel pressed."
X exit 1
X ;;
Xesac
X
X/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
Xexec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
X
Xwhile [ "$1" ]; do
X case $1 in
X \"LIBPAM\")
X echo CONFIGURE_ARGS+=--with-libpam
X ;;
X \"OSPF_NSSA\")
X echo CONFIGURE_ARGS+=--enable-nssa
X ;;
X \"SNMP\")
X echo CONFIGURE_ARGS+=--enable-snmp
X ;;
X \"TCP-ZEBRA\")
X echo CONFIGURE_ARGS+=--enable-tcp-zebra
X ;;
X esac
X shift
Xdone
X
Xfi # if $BATCH
END-of-zebra-devel/scripts/configure
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list