ports/99859: New port submission: xorp

Benjamin Black ben at layer8.net
Thu Jul 6 22:10:16 UTC 2006


>Number:         99859
>Category:       ports
>Synopsis:       New port submission: xorp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 06 22:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Benjamin Black
>Release:        4.11
>Organization:
>Environment:
FreeBSD elf.layer8.net 4.11-STABLE FreeBSD 4.11-STABLE #0: Mon Jun 12 09:45:06 PDT 2006     ben at elf.layer8.net:/usr/src/sys/compile/ELF_PROD_4_11_20060612  i386

>Description:
# 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:
#
#       xorp
#       xorp/distinfo
#       xorp/files
#       xorp/files/patch-configure
#       xorp/files/patch-configure-in
#       xorp/files/patch-mibs-configure
#       xorp/files/xorp.in
#       xorp/Makefile
#       xorp/pkg-deinstall
#       xorp/pkg-descr
#       xorp/pkg-plist
#
echo c - xorp
mkdir -p xorp > /dev/null 2>&1
echo x - xorp/distinfo
sed 's/^X//' >xorp/distinfo << 'END-of-xorp/distinfo'
XMD5 (xorp-1.2.tar.gz) = 077cf64839fa0a177e6b6e6393f1c660
XSHA256 (xorp-1.2.tar.gz) = 7e727c3500a6a74ff00114431ef556b2312e3e7e81b1a52c61a7e46093fd3999
XSIZE (xorp-1.2.tar.gz) = 8765558
END-of-xorp/distinfo
echo c - xorp/files
mkdir -p xorp/files > /dev/null 2>&1
echo x - xorp/files/patch-configure
sed 's/^X//' >xorp/files/patch-configure << 'END-of-xorp/files/patch-configure'
X--- configure.orig     Tue Jul  4 22:25:12 2006
X+++ configure  Tue Jul  4 22:25:58 2006
X@@ -15438,8 +15438,6 @@
X 
X 
X case "${host_os}" in
X-    *bsd*)  FLOWER_MALLOC=flower_malloc ;;
X-    linux*) FLOWER_MALLOC=flower_malloc ;;
X     *) ;;
X esac
X 
X@@ -16135,7 +16133,7 @@
X 
X 
X 
X-ac_config_files="$ac_config_files Makefile MakefileRootCheck bgp/Makefile bgp/harness/Makefile bgp/tools/Makefile cli/Makefile cli/tools/Makefile contrib/Makefile docs/Makefile docs/bgp/Makefile docs/design_arch/Makefile docs/fea/Makefile docs/libxipc/Makefile docs/libxorp/Makefile docs/mfea/Makefile docs/mld6igmp/Makefile docs/multicast/Makefile docs/pim/Makefile docs/pim_testsuite/Makefile docs/rib/Makefile docs/rtrmgr/Makefile docs/slides/Makefile docs/slides/status_2004_02/Makefile docs/snmp/Makefile docs/test_harness/Makefile docs/user_manual/Makefile docs/xorpdev_101/Makefile etc/Makefile etc/templates/Makefile fea/Makefile fea/MakefileRootCheck fea/tools/Makefile fib2mrib/Makefile libcomm/Makefile libfeaclient/Makefile libproto/Makefile libxipc/Makefile libxorp/Makefile mld6igmp/Makefile mrt/Makefile ospf/Makefile ospf/tools/Makefile pim/Makefile policy/Makefile policy/backend/Makefile policy/common/Makefile policy/test/Makefile rib/Makefile rib/tools/Makefile rip/Ma
 kefile rip/tools/Makefile rtrmgr/Makefile static_routes/Makefile utils/Makefile utils/flower_malloc/Makefile xrl/Makefile xrl/interfaces/Makefile xrl/targets/Makefile xrl/tests/Makefile"
X+ac_config_files="$ac_config_files Makefile MakefileRootCheck bgp/Makefile bgp/harness/Makefile bgp/tools/Makefile cli/Makefile cli/tools/Makefile contrib/Makefile docs/Makefile docs/bgp/Makefile docs/design_arch/Makefile docs/fea/Makefile docs/libxipc/Makefile docs/libxorp/Makefile docs/mfea/Makefile docs/mld6igmp/Makefile docs/multicast/Makefile docs/pim/Makefile docs/pim_testsuite/Makefile docs/rib/Makefile docs/rtrmgr/Makefile docs/slides/Makefile docs/slides/status_2004_02/Makefile docs/snmp/Makefile docs/test_harness/Makefile docs/user_manual/Makefile docs/xorpdev_101/Makefile etc/Makefile etc/templates/Makefile fea/Makefile fea/MakefileRootCheck fea/tools/Makefile fib2mrib/Makefile libcomm/Makefile libfeaclient/Makefile libproto/Makefile libxipc/Makefile libxorp/Makefile mld6igmp/Makefile mrt/Makefile ospf/Makefile ospf/tools/Makefile pim/Makefile policy/Makefile policy/backend/Makefile policy/common/Makefile policy/test/Makefile rib/Makefile rib/tools/Makefile rip/Ma
 kefile rip/tools/Makefile rtrmgr/Makefile static_routes/Makefile utils/Makefile xrl/Makefile xrl/interfaces/Makefile xrl/targets/Makefile xrl/tests/Makefile"
X ac_config_commands="$ac_config_commands default"
X cat >confcache <<\_ACEOF
X # This file is a shell script that caches the results of configure
X@@ -16673,7 +16671,6 @@
X   "rtrmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rtrmgr/Makefile" ;;
X   "static_routes/Makefile" ) CONFIG_FILES="$CONFIG_FILES static_routes/Makefile" ;;
X   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
X-  "utils/flower_malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/flower_malloc/Makefile" ;;
X   "xrl/Makefile" ) CONFIG_FILES="$CONFIG_FILES xrl/Makefile" ;;
X   "xrl/interfaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES xrl/interfaces/Makefile" ;;
X   "xrl/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES xrl/targets/Makefile" ;;
END-of-xorp/files/patch-configure
echo x - xorp/files/patch-configure-in
sed 's/^X//' >xorp/files/patch-configure-in << 'END-of-xorp/files/patch-configure-in'
X--- configure.in.orig  Tue Jul  4 22:25:21 2006
X+++ configure.in       Tue Jul  4 22:26:40 2006
X@@ -807,14 +807,9 @@
X dnl utils/flower_malloc related
X dnl ---------------------------------------------------------------------------
X 
X-dnl flower_malloc in utils is an interposer and is only known to
X-dnl work on systems supporting -shared.  AFAICT this needs some work for
X-dnl a real test.  As a stop gap, we assume that if we are on *BSD or Linux
X-dnl things work okay.  Only known failure case is OS X.
X+dnl disabled in FreeBSD 6.1 port
X 
X case "${host_os}" in
X-    *bsd*)  FLOWER_MALLOC=flower_malloc ;;
X-    linux*) FLOWER_MALLOC=flower_malloc ;;
X     *) ;;
X esac
X AC_SUBST(FLOWER_MALLOC)
END-of-xorp/files/patch-configure-in
echo x - xorp/files/patch-mibs-configure
sed 's/^X//' >xorp/files/patch-mibs-configure << 'END-of-xorp/files/patch-mibs-configure'
X--- mibs/configure.orig        Tue Jul  4 16:53:56 2006
X+++ mibs/configure     Tue Jul  4 16:54:09 2006
X@@ -5003,7 +5003,7 @@
X     # MIB support.  dummy MIB modules will only generate warnings
X     echo 'dlmod dummy doubledummy' > conftestsnmp.conf
X     test_ports='51510 51520 51530 51540 51550'
X-    snmpd_base_args="-f -r -l conftestsnmp.log -c conftestsnmp.conf"
X+    snmpd_base_args="-f -r -Lf conftestsnmp.log -c conftestsnmp.conf"
X     # On Linux snmpd seems to need the "-p" flag.
X     for args in "" "-p"
X     do
END-of-xorp/files/patch-mibs-configure
echo x - xorp/files/xorp.in
sed 's/^X//' >xorp/files/xorp.in << 'END-of-xorp/files/xorp.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: xorp
X# REQUIRE: netif routing mountcritlocal
X# BEFORE:  NETWORKING
X
X# Add the following lines to /etc/rc.conf to run xorp:
X#
X# xorp_enable (bool):          Set it to "YES" to enable xorp.
X#                              Default is "NO".
X# xorp_config (file):          Set configuration file for xorp.
X#                               Default is "%%PREFIX%%/etc/xorp.conf".
X#
X
X. /etc/rc.subr
X
Xname="xorp"
Xrcvar=${name}_enable
X
Xload_rc_config ${name}
X
X: ${xorp_enable="NO"}
X: ${xorp_config="%%PREFIX%%/etc/xorp.conf"}
X
Xcommand=%%PREFIX%%/bin/xorp_rtrmgr
Xcommand_args="-b ${xorp_config}"
X
Xrun_rc_command "$1"
END-of-xorp/files/xorp.in
echo x - xorp/Makefile
sed 's/^X//' >xorp/Makefile << 'END-of-xorp/Makefile'
X# New ports collection makefile for:   xorp
X# Date created:        25 June 2006
X# Whom:                bb
X#
X# $FreeBSD$
X#
X
XPORTNAME=      xorp
XPORTVERSION=   1.2
XCATEGORIES=    net
XMASTER_SITES=  http://www.xorp.org/releases/1.2/
X
XMAINTAINER=    ben at layer8.net
XCOMMENT=       Open source routing protocol suite
X
XHAS_CONFIGURE= yes
XUSE_GMAKE=     yes
X
XCONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ARGS=                --prefix=${PREFIX} \
X                       ${CONFIGURE_TARGET} \
X                       --with-comment='FreeBSD port: ${PKGNAME}' \
X                       --enable-shared
X
XOPTIONS=       OPENSSL         "Enable SSL"            off \
X               SNMP            "Enable SNMP"           off \
X               IPV6            "Enable IPv6 support"   off
X
X.include <bsd.port.pre.mk>
X
XXORP_GROUP=    xorp
XUSE_RC_SUBR=   xorp
X
X.if defined(WITH_OPENSSL)
XCONFIGURE_ARGS+=--with-openssl=/usr
X.endif
X.if defined(WITHOUT_IPV6)
XCONFIGURE_ARGS+=--disable-ipv6
X.endif
X.if defined(WITH_SNMP)
XCONFIGURE_ARGS+=       --with-snmp
XBUILD_DEPENDS+=                snmpd:${PORTSDIR}/net-mgmt/net-snmp \
X                       net-snmp-config:${PORTSDIR}/net-mgmt/net-snmp
XPLIST_SUB+=            XORP_SNMP=""
X.else
XPLIST_SUB+=            XORP_SNMP="@comment "
X.endif
X
Xpost-install:
X       @if [ ! -f ${PREFIX}/etc/xorp.conf.sample ]; then \
X               ${CP} ${WRKSRC}/rtrmgr/config.boot.sample ${PREFIX}/etc/xorp.conf.sample; \
X       fi
X       @if pw group show "${XORP_GROUP}" 2>/dev/null; then \
X                ${ECHO} "You already have a group \"${XORP_GROUP}\", so I will use it."; \
X       else \
X               ${ECHO} "Adding group \"${XORP_GROUP}\"."; \
X               pw groupadd -n ${XORP_GROUP} 2>/dev/null; \
X       fi
X       @${ECHO} ""
X       @${ECHO} "Add the following lines to /etc/rc.conf to enable xorp:"
X       @${ECHO} ""
X       @${ECHO} "defaultrouter=\"NO\""
X       @${ECHO} "xorp_enable=\"YES\""
X       @${ECHO} ""
X       @${ECHO} "A sample configuration has been installed at"
X       @${ECHO} "${PREFIX}/etc/xorp.conf.sample.  Copy it to ${PREFIX}/etc/xorp.conf"
X       @${ECHO} "before editing.  It MUST be edited before use."
X       @${ECHO} ""
X       @${ECHO} "Users who will be changing the xorp configuration via xorpsh"
X       @${ECHO} "must be members of the group xorp."
X       @${ECHO} ""
X
X.include <bsd.port.post.mk>
END-of-xorp/Makefile
echo x - xorp/pkg-deinstall
sed 's/^X//' >xorp/pkg-deinstall << 'END-of-xorp/pkg-deinstall'
X#!/bin/sh
X
XPATH=/bin:/usr/sbin
X
Xif [ -z "${XORP_GROUP}" ]; then
X       XORP_GROUP=xorp
Xfi
X
Xcase $2 in
X       POST-DEINSTALL)
X               if pw group show ${XORP_GROUP} 2>/dev/null 
X               then
X                       echo "Deleting group ${XORP_GROUP}..."
X                       pw groupdel -n ${XORP_GROUP} 2>/dev/null
X               else
X                       echo "Group ${XORP_GROUP} not found!"
X               fi
X       ;;
Xesac
END-of-xorp/pkg-deinstall
echo x - xorp/pkg-descr
sed 's/^X//' >xorp/pkg-descr << 'END-of-xorp/pkg-descr'
XFrom the website:
X
XXORP is the eXtensible Open Router Platform.
X
XOur goal is to develop an open source software
Xrouter platform that is stable and fully featured
Xenough for production use, and flexible and
Xextensible enough to enable network research.
XCurrently XORP implements routing protocols for IPv4
Xand IPv6 and a unified means to configure them.
XIn future, we would also like to support custom
Xhardware and software forwarding architectures.
X
XXORP is free. It is covered by a BSD-style license
Xand is publicly available for research, development,
Xand use.
X
XThe core team is based at the International Computer
XScience Institute in Berkeley, California, but
Xcontributors come from around the world. 
X
XWWW:   http://www.xorp.org/
END-of-xorp/pkg-descr
echo x - xorp/pkg-plist
sed 's/^X//' >xorp/pkg-plist << 'END-of-xorp/pkg-plist'
Xbgp/tools/xorpsh_print_peers
Xbgp/tools/xorpsh_print_routes
Xbgp/xorp_bgp
Xbin/call_xrl
Xbin/xorp_profiler
Xbin/xorp_rtrmgr
Xbin/xorpsh
Xcli/tools/send_cli_processor_xrl
Xetc/xorp.conf.sample
Xetc/templates/bgp.cmds
Xetc/templates/bgp.tp
Xetc/templates/fea.cmds
Xetc/templates/fea.tp
Xetc/templates/fib2mrib.tp
Xetc/templates/host.cmds
Xetc/templates/igmp.cmds
Xetc/templates/igmp.tp
Xetc/templates/interfaces.tp
Xetc/templates/mfea.cmds
Xetc/templates/mfea4.tp
Xetc/templates/mfea6.cmds
Xetc/templates/mfea6.tp
Xetc/templates/misc.cmds
Xetc/templates/mld.cmds
Xetc/templates/mld.tp
Xetc/templates/ospfv2.cmds
Xetc/templates/ospfv2.tp
Xetc/templates/pim.cmds
Xetc/templates/pim6.cmds
Xetc/templates/pimsm4.tp
Xetc/templates/pimsm6.tp
Xetc/templates/plumbing.tp
Xetc/templates/policy.tp
Xetc/templates/protocols.tp
Xetc/templates/rib.cmds
Xetc/templates/rib.tp
Xetc/templates/rip.cmds
Xetc/templates/rip.tp
Xetc/templates/ripng.tp
Xetc/templates/rtrmgr.tp
Xetc/templates/snmp.tp
Xetc/templates/static_routes.tp
Xetc/templates/xorpsh.cmds
Xfea/tools/show_interfaces
Xfea/xorp_fea
Xfea/xorp_fea_click_config_generator
Xfea/xorp_fea_dummy
Xfib2mrib/xorp_fib2mrib
Xlibxipc/xorp_finder
Xmld6igmp/xorp_igmp
Xmld6igmp/xorp_mld
Xospf/tools/print_lsas
Xospf/tools/print_neighbours
Xospf/xorp_ospfv2
Xospf/xorp_ospfv3
Xpim/xorp_pimsm4
Xpim/xorp_pimsm6
Xpolicy/xorp_policy
Xrib/tools/show_routes
Xrib/xorp_rib
Xrip/tools/show_peer_stats
Xrip/tools/show_stats
Xrip/xorp_rip
Xrip/xorp_ripng
Xstatic_routes/xorp_static_routes
Xxrl/targets/bgp.xrls
Xxrl/targets/bgp4_mib.xrls
Xxrl/targets/cli.xrls
Xxrl/targets/coord.xrls
Xxrl/targets/demo_fea_ifmgr_client.xrls
Xxrl/targets/fea.xrls
Xxrl/targets/fea_ifmgr_mirror.xrls
Xxrl/targets/fib2mrib.xrls
Xxrl/targets/finder.xrls
Xxrl/targets/finder_client.xrls
Xxrl/targets/mfea.xrls
Xxrl/targets/mld6igmp.xrls
Xxrl/targets/ospf.xrls
Xxrl/targets/ospfv2.xrls
Xxrl/targets/ospfv3.xrls
Xxrl/targets/packet_acl.xrls
Xxrl/targets/pim.xrls
Xxrl/targets/policy.xrls
Xxrl/targets/profiler.xrls
Xxrl/targets/rib.xrls
Xxrl/targets/ribclient.xrls
Xxrl/targets/rip.xrls
Xxrl/targets/ripng.xrls
Xxrl/targets/rtrmgr.xrls
Xxrl/targets/show_routes.xrls
Xxrl/targets/socket_server.xrls
Xxrl/targets/static_routes.xrls
Xxrl/targets/test.xrls
Xxrl/targets/test_fea_ifmgr_mirror.xrls
Xxrl/targets/test_finder_events.xrls
Xxrl/targets/test_peer.xrls
Xxrl/targets/test_socket4.xrls
Xxrl/targets/test_socket6.xrls
Xxrl/targets/test_xrls.xrls
Xxrl/targets/xorp_if_mib.xrls
Xxrl/targets/xorpsh.xrls
X%%XORP_SNMP%%mibs/bgp4_mib_1657.la
X%%XORP_SNMP%%mibs/bgp4_mib_1657.so
X%%XORP_SNMP%%mibs/libnetsnmpxorp.la
X%%XORP_SNMP%%mibs/libnetsnmpxorp.so
X%%XORP_SNMP%%mibs/ospf_mib_1850.la
X%%XORP_SNMP%%mibs/ospf_mib_1850.so
X%%XORP_SNMP%%mibs/xorp_if_mib_module.la
X%%XORP_SNMP%%mibs/xorp_if_mib_module.so
X%%XORP_SNMP%%mibs/snmpdscripts/getbgppeertable
X%%XORP_SNMP%%mibs/snmpdscripts/getbgpversion
X%%XORP_SNMP%%mibs/snmpdscripts/startsnmp
X%%XORP_SNMP%%mibs/snmpdscripts/stopsnmp
X at dirrm xrl/targets
X at dirrm xrl
X at dirrm static_routes
X at dirrm rip/tools
X at dirrm rip
X at dirrm rib/tools
X at dirrm rib
X at dirrm policy
X at dirrm pim
X at dirrm ospf/tools
X at dirrm ospf
X at dirrm mld6igmp
X%%XORP_SNMP%%@dirrm mibs/snmpdscripts
X%%XORP_SNMP%%@dirrm mibs
X at dirrm libxipc
X at dirrm fib2mrib
X at dirrm fea/tools
X at dirrm fea
X at dirrmtry etc/templates
X at dirrmtry etc/rc.d
X at dirrmtry etc
X at dirrm cli/tools
X at dirrm cli
X at dirrmtry bin
X at dirrm bgp/tools
X at dirrm bgp
END-of-xorp/pkg-plist
exit

>How-To-Repeat:
New port submission: xorp
>Fix:
New port submission: xorp

shar included above.  archive can also be found at http://layer8.net/~ben/code/xorp.tar.gz .
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list