netperf/netperf.spec

Thu, 04 Oct 2012 20:30:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:30:05 +0200
changeset 715
c10fb90893b9
parent 584
3d058537a9dd
permissions
-rw-r--r--

Correct out of date build configuration, porting to Solaris 11 network
link infrastructure and new libpcap logic. This additionally allows for
device drivers in subdirectories of /dev. Correct packaged nmap
personalities and signatures to work out of the box. Finally, hack
arpd logic to properly close sockets and quit on TERM by repeating
signaling in the run command script. Sadly, all this fails to correct
the run time behaviour of honeyd which fails to bind to the IP layer.

michael@312 1 ##
michael@312 2 ## netperf.spec -- OpenPKG RPM Package Specification
michael@584 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
michael@312 4 ##
michael@312 5 ## Permission to use, copy, modify, and distribute this software for
michael@312 6 ## any purpose with or without fee is hereby granted, provided that
michael@312 7 ## the above copyright notice and this permission notice appear in all
michael@312 8 ## copies.
michael@312 9 ##
michael@312 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@312 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@312 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@312 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@312 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@312 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@312 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@312 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@312 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@312 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@312 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@312 21 ## SUCH DAMAGE.
michael@312 22 ##
michael@312 23
michael@312 24 # package information
michael@312 25 Name: netperf
michael@312 26 Summary: Network Pipemeter
michael@312 27 URL: http://www.netperf.org/
michael@312 28 Vendor: Rick Jones
michael@312 29 Packager: Michael Schloh von Bennewitz
michael@312 30 Distribution: Europalab Production
michael@312 31 Class: EVAL
michael@312 32 Group: Network
michael@312 33 License: Commercial
michael@584 34 Version: 2.6.0
michael@584 35 Release: 20120800
michael@312 36
michael@312 37 # list of sources
michael@312 38 Source0: ftp://ftp.netperf.org/netperf/netperf-%{version}.tar.bz2
michael@312 39 Patch0: netperf.patch
michael@312 40
michael@312 41 # build information
michael@584 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make
michael@584 43 PreReq: OpenPKG, openpkg >= 20100101
michael@312 44
michael@312 45 %description
michael@312 46 Netperf is a benchmark that can be used to measure the performance
michael@312 47 of many different types of networking. It provides tests for both
michael@312 48 unidirecitonal throughput, and end to end latency. The environments
michael@312 49 currently measureable by netperf include TCP and UDP via BSD Sockets
michael@312 50 for both IPv4 and IPv6, DLPI, Unix Domain Sockets, and SCTP for both
michael@312 51 IPv4 and IPv6.
michael@312 52
michael@312 53 %track
michael@312 54 prog netperf = {
michael@312 55 version = %{version}
michael@312 56 url = ftp://ftp.netperf.org/netperf/
michael@312 57 regex = netperf-(__VER__)\.tar\.bz2
michael@312 58 }
michael@312 59
michael@312 60 %prep
michael@312 61 %setup -q
michael@312 62 %patch -p0
michael@312 63
michael@312 64 %build
michael@312 65 loclibs=''
michael@312 66 case "%{l_platform -t}" in
michael@312 67 *-sunos* ) loclibs="$loclibs -lkstat" ;;
michael@312 68 esac
michael@312 69 LIBS="$loclibs" \
michael@312 70 ./configure \
michael@312 71 --prefix=%{l_prefix} \
michael@702 72 --mandir=%{l_prefix}/man \
michael@312 73 --enable-burst \
michael@312 74 --enable-sctp
michael@312 75 %{l_make} %{l_mflags -O}
michael@312 76
michael@312 77 %install
michael@312 78 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@312 79 strip $RPM_BUILD_ROOT%{l_prefix}/bin/*
michael@312 80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@312 81
michael@312 82 %files -f files
michael@312 83
michael@312 84 %clean
michael@312 85

mercurial