sipcalc/sipcalc.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 700
2164082fa57f
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@700 1 ##
michael@700 2 ## sipcalc.spec -- OpenPKG RPM Package Specification
michael@700 3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@700 4 ##
michael@700 5 ## Permission to use, copy, modify, and distribute this software for
michael@700 6 ## any purpose with or without fee is hereby granted, provided that
michael@700 7 ## the above copyright notice and this permission notice appear in all
michael@700 8 ## copies.
michael@700 9 ##
michael@700 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@700 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@700 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@700 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@700 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@700 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@700 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@700 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@700 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@700 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@700 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@700 21 ## SUCH DAMAGE.
michael@700 22 ##
michael@700 23
michael@700 24 # package information
michael@700 25 Name: sipcalc
michael@700 26 Summary: IP Subnet Calculator
michael@700 27 URL: http://www.routemeister.net/projects/sipcalc/
michael@700 28 Vendor: Simon Ekstrand
michael@700 29 Packager: OpenPKG Foundation e.V.
michael@700 30 Distribution: OpenPKG Community
michael@700 31 Class: PLUS
michael@700 32 Group: Mapping
michael@700 33 License: GPL
michael@700 34 Version: 1.1.5
michael@701 35 Release: 20120800
michael@700 36
michael@700 37 # list of sources
michael@700 38 Source0: http://www.routemeister.net/projects/sipcalc/files/sipcalc-%{version}.tar.gz
michael@700 39 Patch0: sipcalc.patch
michael@700 40
michael@700 41 # build information
michael@701 42 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make
michael@701 43 PreReq: OpenPKG, openpkg >= 20100101
michael@700 44
michael@700 45 %description
michael@700 46 SipCalc is an IP subnet calculator.
michael@700 47
michael@700 48 %track
michael@700 49 prog sipcalc = {
michael@700 50 version = %{version}
michael@700 51 url = http://www.routemeister.net/projects/sipcalc/download.html
michael@700 52 regex = sipcalc-(\d+\.\d+\.\d+)\.tar\.gz
michael@700 53 }
michael@700 54
michael@700 55 %prep
michael@700 56 %setup -q
michael@700 57 %patch -p0
michael@700 58
michael@700 59 %build
michael@700 60 CC="%{l_cc}" \
michael@700 61 CFLAGS="%{l_cflags -O}" \
michael@700 62 GREP="grep" \
michael@700 63 ./configure \
michael@701 64 --prefix=%{l_prefix} \
michael@701 65 --mandir=%{l_prefix}/man
michael@700 66 %{l_make} %{l_mflags -O}
michael@700 67
michael@700 68 %install
michael@700 69 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@700 70 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@700 71 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@700 72
michael@700 73 %files -f files
michael@700 74
michael@700 75 %clean
michael@700 76

mercurial