pyzor/pyzor.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 387
33ae2d61c751
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 ##  pyzor.spec -- OpenPKG RPM Specification
     3 ##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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 ##
    25 #   package information
    26 Name:         pyzor
    27 Summary:      Networked UCE Signature Detection
    28 URL:          http://pyzor.sourceforge.net/
    29 Vendor:       Frank J. Tobin
    30 Packager:     Michael Schloh von Bennewitz
    31 Distribution: Europalab Networks Production
    32 Class:        EVAL
    33 Group:        Mail
    34 License:      GPL
    35 Version:      0.5.0
    36 Release:      20120800
    38 #   list of sources
    39 Source0:      http://switch.dl.sourceforge.net/sourceforge/pyzor/pyzor-%{version}.tar.gz
    41 #   build information
    42 BuildPreReq:  OpenPKG, openpkg >= 20100101, python
    43 PreReq:       OpenPKG, openpkg >= 20100101, python
    45 %description
    46     Pyzor is a UCE-blocking networked system that uses signatures
    47     to identify unsolicited commercial email (UCE.)
    49 %track
    50     prog pyzor = {
    51         version   = %{version}
    52         url       = http://prdownloads.sourceforge.net/pyzor/
    53         regex     = pyzor-(__VER__)\.tar\.gz
    54     }
    56 %prep
    57     #   unpack sources
    58     %setup -q
    60     #   correct build configuration
    61     %{l_shtool} subst \
    62         -e 's;share/doc/pyzor;share/pyzor/doc;g' \
    63         setup.py
    65 %build
    67 %install
    68     #   run the native installation logic
    69     %{l_prefix}/bin/python \
    70         setup.py install \
    71         --prefix=%{l_prefix} \
    72         --root=$RPM_BUILD_ROOT
    74     #   copy neglected manpages
    75     %{l_shtool} mkdir -f -p -m 755 \
    76         $RPM_BUILD_ROOT%{l_prefix}/man/man1
    77     %{l_shtool} install -c -m 644 \
    78         docs/pyzor.1 \
    79         docs/pyzord.1 \
    80         $RPM_BUILD_ROOT%{l_prefix}/man/man1/
    82     #   determine installation files
    83     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    84         #'%doc %{l_prefix}/share/pyzor/doc/*'
    86 %files -f files
    88 %clean

mercurial