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.

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

mercurial