diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2006-11-02 13:20:34 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2006-11-02 13:20:34 +0000 |
commit | 7bf5c34e60b7c82ac368d2a6b536708818c68c5e (patch) | |
tree | a7af9689d22d23afdaa4f363c80b8661c12aefcb /net/click | |
parent | 918dfd7d7e4479769c7b4379ec5c6f73fcbbc70b (diff) | |
download | ports-7bf5c34e60b7c82ac368d2a6b536708818c68c5e.tar.gz ports-7bf5c34e60b7c82ac368d2a6b536708818c68c5e.zip |
Notes
Diffstat (limited to 'net/click')
-rw-r--r-- | net/click/Makefile | 162 | ||||
-rw-r--r-- | net/click/distinfo | 6 | ||||
-rw-r--r-- | net/click/pkg-plist | 16 |
3 files changed, 164 insertions, 20 deletions
diff --git a/net/click/Makefile b/net/click/Makefile index 4f179e688f78..f313ded496db 100644 --- a/net/click/Makefile +++ b/net/click/Makefile @@ -5,19 +5,26 @@ # $FreeBSD$ # +# XXX: TODO: fix kernel module + PORTNAME= click -PORTVERSION= 1.4.3 +PORTVERSION= 1.5.0 CATEGORIES= net -MASTER_SITES= http://pdos.csail.mit.edu/click/ +MASTER_SITES= http://www.read.cs.ucla.edu/click/ -MAINTAINER= gnn@neville-neil.com +MAINTAINER= bms@FreeBSD.org COMMENT= The Click Modular Router USE_PERL5_BUILD=yes GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--disable-linuxmodule USE_GMAKE= yes +SRC_BASE?= /usr/src +INC_BASE?= /usr/include + +CONFIGURE_ARGS+= --disable-linuxmodule +CONFIGURE_ARGS+= --enable-nanotimestamp + MANCOMPRESSED= no INFO= click MAN1= click.1 click-align.1 click-combine.1 click-devirtualize.1 \ @@ -27,20 +34,25 @@ MAN1= click.1 click-align.1 click-combine.1 click-devirtualize.1 \ MAN5= click.5 MAN7= elementdoc.7 MAN8= click.o.8 -MANN= FTPPortMapper.n ARPFaker.n ARPQuerier.n ARPResponder.n \ +MANN= FTPPortMapper.n ARPFaker.n ARPPrint.n ARPQuerier.n ARPResponder.n \ + elements-click.n ChangeUID.n \ EnsureEther.n EtherEncap.n EtherMirror.n HostEtherFilter.n \ + CheckARPHeader.n DirectIPLookup.n \ + RFC2507Comp.n RFC2507Decomp.n \ CheckICMPHeader.n ICMPError.n ICMPPingResponder.n ICMPPingRewriter.n \ ICMPRewriter.n CheckIPHeader.n CheckIPHeader2.n \ DecIPTTL.n FixIPSrc.n FromSocket.n GetIPAddress.n ICMPPingEncap.n \ ICMPPingSource.n IPAddrRewriter.n IPAddrPairRewriter.n IPClassifier.n \ IPEncap.n IPFilter.n IPFragmenter.n IPGWOptions.n IPInputCombo.n \ + IPNameInfo.n \ IPMirror.n IPOutputCombo.n IPPrint.n IPRateMonitor.n IPRewriterPatterns.n \ - KernelTun.n LinearIPLookup.n LinkUnqueue.n LookupIPRoute2.n \ + KernelTun.n LinearIPLookup.n LinkUnqueue.n \ MarkIPCE.n MarkIPHeader.n Message.n MixedQueue.n NotifierQueue.n \ - PaintSwitch.n PortInfo.n RIPSend.n RandomSwitch.n \ + PaintSwitch.n PortInfo.n RIPSend.n RandomSwitch.n RangeIPLookup.n \ RoundRobinIPMapper.n SetAnnoByte.n SetIPAddress.n SetIPChecksum.n SetIPDSCP.n \ SetRandIPAddress.n SetUDPChecksum.n SimpleQueue.n StoreData.n \ StoreIPAddress.n StripIPHeader.n ToSocket.n UnstripIPHeader.n \ + Socket.n Script.n Truncate.n \ AddressInfo.n Align.n AlignmentInfo.n AverageCounter.n \ BandwidthMeter.n BandwidthShaper.n Burster.n BandwidthRatedSplitter.n \ BandwidthRatedUnqueue.n CheckCRC32.n CheckLength.n CheckPaint.n \ @@ -48,7 +60,7 @@ MANN= FTPPortMapper.n ARPFaker.n ARPQuerier.n ARPResponder.n \ Discard.n DiscardNoFree.n DriverManager.n DropBroadcasts.n DRRSched.n \ Error.n FrontDropQueue.n HashSwitch.n Idle.n \ InfiniteSource.n Meter.n MSQueue.n Null.n PushNull.n PullNull.n \ - Null1.n Null2.n Null3.n Null4.n Null5.n Null6.n Null7.n Null8.n \ + Null1.n \ Paint.n PaintTee.n PokeHandlers.n Print.n PrioSched.n \ PullSwitch.n Queue.n QuitWatcher.n \ RandomBitErrors.n RandomSource.n RatedSource.n \ @@ -57,21 +69,146 @@ MANN= FTPPortMapper.n ARPFaker.n ARPQuerier.n ARPResponder.n \ SourceIPHashMapper.n SortedIPLookup.n \ SpinlockAcquire.n SpinlockInfo.n SpinlockRelease.n StaticPullSwitch.n \ StaticSwitch.n StrideSched.n StrideSwitch.n Strip.n Suppressor.n \ - Switch.n Tee.n PullTee.n TimedSink.n TimedSource.n TrieIPLookup.n Unqueue.n \ + Switch.n Tee.n PullTee.n TimedSink.n TimedSource.n Unqueue.n \ Unqueue2.n Unstrip.n CheckTCPHeader.n CheckUDPHeader.n \ DynamicUDPIPEncap.n IPRewriter.n SetTCPChecksum.n TCPRewriter.n \ UDPIPEncap.n ChatterSocket.n ControlSocket.n FromDevice.u.n \ - FromDump.n KernelTap.n KernelHandlerProxy.n PrintOld.n \ + FromDump.n KernelTap.n KernelHandlerProxy.n \ ToDevice.u.n ToDump.n elements.n AdaptiveRED.n IPReassembler.n \ IPRouteTable.n StaticIPLookup.n LinuxIPLookup.n RadixIPLookup.n \ RandomSample.n SetPacketType.n StripToNetworkHeader.n ProgressBar.n CONFDIR= ${PREFIX}/etc/click/conf +OPTIONS= \ + XML "Enable XML support with expat" Off \ + USERCLICK "Build user-space Click" On \ + KERNEL_MODULE "Build BSD kernel module (BROKEN)" Off \ + ANALYSIS_ELEMS "Build network analysis elements" Off \ + ETHERSWITCH_ELEMS "Build etherswitch elements" Off \ + GRID_ELEMS "Build Grid elements (see FAQ)" Off \ + IPSEC_ELEMS "Build IPSEC elements" Off \ + LOCAL_ELEMS "Build local elements" Off \ + WIFI_ELEMS "Build Wi-Fi elements" Off \ + IPV6_ELEMS "Build IPv6 elements (EXPERIMENTAL)" Off \ + NS_ELEMS "Build NS elements (EXPERIMENTAL)" Off \ + RADIO_ELEMS "Build radio elements (EXPERIMENTAL)" Off + .include <bsd.port.pre.mk> .if ${ARCH} == "alpha" -BROKEN= "Does not compile on alpha 4.x" +BROKEN= does not compile on alpha 4.x +.endif + +.if defined(WITH_XML) +CONFIGURE_ARGS+= --with-expat=${LOCALBASE} +LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 +PLIST_SUB+= XMLCLICK="" +.else +PLIST_SUB+= XMLCLICK="@comment " +.endif + +.if !defined(WITH_USERCLICK) +CONFIGURE_ARGS+= --disable-userlevel +.else +MANN+= IPFlowRawSockets.n +.endif + +.if defined(WITH_KERNEL_MODULE) +.if !exists(${SRC_BASE}/sys/Makefile) +IGNORE= kernel source files required +.endif +CONFIGURE_ARGS+= --enable-bsdmodule \ + --with-freebsd=${SRC_BASE}/sys,${INC_BASE} +.endif + +.if defined(WITH_ANALYSIS_ELEMS) +CONFIGURE_ARGS+= --enable-analysis +MANN+= AggregateFilter.n TimeSortedSched.n TimeRange.n \ + FromTcpdump.n ToIPFlowDumps.n AggregateLast.n \ + SimPacketAnalyzer.n AggregatePaint.n \ + FromNetFlowSummaryDump.n AggregateFirst.n AggregateCounter.n \ + FromDAGDump.n StoreTimestamp.n AggregateIPFlows.n \ + SetTimestampDelta.n FromCapDump.n AggregateIP.n \ + TimestampAccum.n AnonymizeIPAddr.n AggregateLength.n \ + FromIPSummaryDump.n ToIPSummaryDump.n AggregateIPAddrPair.n \ + AggregatePacketCounter.n TimeFilter.n +.endif + +.if defined(WITH_ETHERSWITCH_ELEMS) +CONFIGURE_ARGS+= --enable-etherswitch +MANN+= EtherSwitch.n ListenEtherSwitch.n +.endif + +.if defined(WITH_GRID_ELEMS) +CONFIGURE_ARGS+= --enable-grid +MANN+= ACKResponder.n ACKResponder2.n ACKRetrySender.n \ + ACKRetrySender2.n AiroInfo.n BottleneckMetric.n \ + CheckGridHeader.n DSDVRouteTable.n DSRArpTable.n \ + DSRRouteTable.n E2ELossMetric.n ETX2Metric.n ETXMetric.n \ + EstimateRouterRegion.n FilterByGridHops.n FilterByRange.n \ + FixDstLoc.n FixSrcLoc.n FloodingLocQuerier.n FromNLANRDump.n \ + GridEncap.n GridGatewayInfo.n GridHeaderInfo.n \ + GridLocationInfo.n GridLocationInfo2.n GridLogger.n \ + GridProbeHandler.n GridProbeReplyReceiver.n \ + GridProbeSender.n GridProxy.n GridRouteTable.n GridTxError.n \ + HopcountMetric.n IncrementSeqNo.n LIRMetric.n LinkStat.n \ + LinkTable.n LinkTestReceiver.n LinkTester.n LinkTracker.n \ + LocFromFile.n LocQueryResponder.n LocationTable.n \ + LookupGeographicGridRoute.n LookupLocalGridRoute.n \ + LookupLocalGridRoute2.n MovementSimulator.n PEP.n \ + PacketLogger.n PacketLogger2.n PingPong.n PrintGrid.n \ + SendGridHello.n SendGridLRHello.n SetGridChecksum.n \ + SimpleLocQuerier.n ThresholdMetric.n UpdateGridRoutes.n \ + YarvisMetric.n +.endif + +.if defined(WITH_IPSEC_ELEMS) +CONFIGURE_ARGS+= --enable-ipsec +MANN+= IPsecAuthSHA1.n IPsecDES.n IPsecESPUnencap.n \ + IPsecESPEncap.n +.endif + +.if defined(WITH_LOCAL_ELEMS) +CONFIGURE_ARGS+= --enable-local +.endif + +.if defined(WITH_WIFI_ELEMS) +CONFIGURE_ARGS+= --enable-wifi +MANN+= FilterPhyErr.n AssociationResponder.n FilterFailures.n \ + ReadAnno.n PacketStore.n AvailableRates.n \ + AssociationRequester.n OpenAuthResponder.n \ + OpenAuthRequeser.n Prism2Encap.n ProbeResponder.n \ + AutoRateFallback.n ProbeTXRate.n ARPTable.n WepEncap.n \ + WepDecap.n WifiDecap.n FilterTX.n EtherCount.n \ + RadiotapDecap.n RadiotapEncap.n WifiFragment.n \ + BeaconSource.n BeaconTracker.n BeaconScanner.n RXStats.n \ + WirelessInfo.n PrintTXFeedback.n SetTXRate.n SetTXPower.n \ + Prism2Decap.n WifiEncap.n WifiDefrag.n MadwifiRate.n \ + PrintWifi.n WifiSeq.n PushAnno.n WifiDupeFilter.n \ + ExtraEncap.n ExtraDecap.n AthdescDecap.n AthdescEncap.n +.endif + +# +# The following Click elements are marked experimental as of 1.5.0. +# + +.if defined(WITH_IPV6_ELEMS) +CONFIGURE_ARGS+= --enable-ipv6 +.endif + +.if defined(WITH_NS_ELEMS) +CONFIGURE_ARGS+= --enable-nsclick +MANN+= ToSimTrace.n ToSimDevice.u.n FromSimDevice.u.n \ + EraseIPPayload.n +PLIST_SUB+= NSCLICK="" +.else +PLIST_SUB+= NSCLICK="@comment " +.endif + +.if defined(WITH_RADIO_ELEMS) +CONFIGURE_ARGS+= --enable-radio +MANN+= RadioSim.n .endif post-install: @@ -80,9 +217,6 @@ post-install: click-flatten click-mkmindriver click-undead click-xform @${MKDIR} ${CONFDIR} ${INSTALL_DATA} ${WRKSRC}/conf/*.click ${CONFDIR} - @${MKDIR} ${CONFDIR}/roofnet - ${INSTALL_DATA} ${WRKSRC}/conf/roofnet/etx.click ${CONFDIR}/roofnet - ${INSTALL_DATA} ${WRKSRC}/conf/roofnet/srcr.click ${CONFDIR}/roofnet @${MKDIR} ${CONFDIR}/wifi ${INSTALL_DATA} ${WRKSRC}/conf/wifi/*.click ${CONFDIR}/wifi @${ECHO_CMD} diff --git a/net/click/distinfo b/net/click/distinfo index 930ed6caebaf..3e003d6572d4 100644 --- a/net/click/distinfo +++ b/net/click/distinfo @@ -1,3 +1,3 @@ -MD5 (click-1.4.3.tar.gz) = f719412d7baf4ff874af826a66e3254c -SHA256 (click-1.4.3.tar.gz) = 980b53015ded5465e623c743bb5fb5cb3b174198964d6202ecb3ed0771250abf -SIZE (click-1.4.3.tar.gz) = 2561724 +MD5 (click-1.5.0.tar.gz) = 0164c8be688ad579957c3f60e37f613c +SHA256 (click-1.5.0.tar.gz) = 78b15937147e7d435eea357ccadb1b1c7a23d7f500abc45f2e54eb1803efe0a0 +SIZE (click-1.5.0.tar.gz) = 2924904 diff --git a/net/click/pkg-plist b/net/click/pkg-plist index 4b5754d67594..6ba478d6e56a 100644 --- a/net/click/pkg-plist +++ b/net/click/pkg-plist @@ -16,6 +16,7 @@ bin/click-undead bin/click-xform bin/click2xml bin/testie +%%XMLCLICK%%bin/xml2click etc/click/conf/dnsproxy.click etc/click/conf/fake-iprouter.click etc/click/conf/fromhost-tunnel.click @@ -32,8 +33,6 @@ etc/click/conf/test3.click etc/click/conf/thomer-nat.click etc/click/conf/udpcount.click etc/click/conf/udpgen.click -etc/click/conf/roofnet/etx.click -etc/click/conf/roofnet/srcr.click etc/click/conf/wifi/access-point.click etc/click/conf/wifi/dump.click etc/click/conf/wifi/pseudo-ibss.click @@ -81,6 +80,7 @@ include/click/iptable.hh include/click/lexer.hh include/click/llrpc.h include/click/master.hh +include/click/nameinfo.hh include/click/notifier.hh include/click/package.hh include/click/packet.hh @@ -92,9 +92,9 @@ include/click/router.hh include/click/routerthread.hh include/click/simclick.h include/click/skbmgr.hh +include/click/timestamp.hh include/click/standard/addressinfo.hh include/click/standard/alignmentinfo.hh -include/click/standard/drivermanager.hh include/click/standard/errorelement.hh include/click/standard/portinfo.hh include/click/standard/storage.hh @@ -109,6 +109,7 @@ include/click/userutils.hh include/click/variableenv.hh include/click/vector.cc include/click/vector.hh +include/clicknet/dhcp.h include/clicknet/ether.h include/clicknet/fddi.h include/clicknet/icmp.h @@ -117,6 +118,7 @@ include/clicknet/ip.h include/clicknet/ip6.h include/clicknet/llc.h include/clicknet/ppp.h +include/clicknet/radiotap.h include/clicknet/rfc1483.h include/clicknet/tcp.h include/clicknet/udp.h @@ -135,6 +137,14 @@ include/clicktool/toolutils.hh @unexec rm -rf %D/etc/click 2>&1 >/dev/null || true lib/libclick.a lib/libclicktool.a +%%NSCLICK%%lib/libnsclick.so +%%DATADIR%%/mkinstalldirs +%%DATADIR%%/config.mk +%%DATADIR%%/pkg-config.mk +%%DATADIR%%/pkg-Makefile +%%DATADIR%%/pkg-userlevel.mk +%%DATADIR%%/pkg-linuxmodule.mk +%%DATADIR%%/pkg-linuxmodule-26.mk %%DATADIR%%/elementmap.xml %%DATADIR%%/srcdir %%DATADIR%%/src |