arpwatch/arpwatch.spec

changeset 571
175768f4868b
parent 387
33ae2d61c751
child 690
67c9fa937f34
     1.1 --- a/arpwatch/arpwatch.spec	Tue Aug 28 18:34:40 2012 +0200
     1.2 +++ b/arpwatch/arpwatch.spec	Tue Aug 28 18:34:45 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  arpwatch.spec -- OpenPKG RPM Specification
     1.6 -##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -21,7 +21,6 @@
    1.12  ##  SUCH DAMAGE.
    1.13  ##
    1.14  
    1.15 -
    1.16  #   package information
    1.17  Name:         arpwatch
    1.18  Summary:      Ethernet Address Monitor Program
    1.19 @@ -33,28 +32,25 @@
    1.20  Group:        Network
    1.21  License:      GPL
    1.22  Version:      2.1a15
    1.23 -Release:      20090106
    1.24 +Release:      20120800
    1.25  
    1.26  #   package options
    1.27  %option       with_fsl  yes
    1.28  
    1.29  #   list of sources
    1.30 -Source0:      ftp://ftp.ee.lbl.gov/arpwatch.tar.gz
    1.31 +Source0:      ftp://ftp.ee.lbl.gov/arpwatch-%{version}.tar.gz
    1.32  Source1:      rc.arpwatch
    1.33  Source2:      fsl.arpwatch
    1.34  Patch0:       arpwatch.patch
    1.35  
    1.36  #   build information
    1.37 -Prefix:       %{l_prefix}
    1.38 -BuildRoot:    %{l_buildroot}
    1.39 -BuildPreReq:  OpenPKG, openpkg >= 20040130, libpcap, make
    1.40 -PreReq:       OpenPKG, openpkg >= 20040130, libpcap
    1.41 +BuildPreReq:  OpenPKG, openpkg >= 20100101, libpcap, make
    1.42 +PreReq:       OpenPKG, openpkg >= 20100101, libpcap
    1.43 +PreReq:       MTA
    1.44  %if "%{with_fsl}" == "yes"
    1.45  BuildPreReq:  fsl >= 1.2.0
    1.46  PreReq:       fsl >= 1.2.0
    1.47  %endif
    1.48 -AutoReq:      no
    1.49 -AutoReqProv:  no
    1.50  
    1.51  %description
    1.52      The arpwatch daemon monitors ethernet or fddi activity
    1.53 @@ -63,19 +59,13 @@
    1.54  
    1.55  %track
    1.56      prog arpwatch = {
    1.57 -        disabled
    1.58 -        comment   = "msvb: tracking is disabled as sources are unversioned"
    1.59          version   = %{version}
    1.60          url       = ftp://ftp.ee.lbl.gov/
    1.61 -        regex     = arpwatch-\.tar\.gz
    1.62 +        regex     = arpwatch-(__VER__)\.tar\.gz
    1.63      }
    1.64  
    1.65  %prep
    1.66      %setup -q
    1.67 -
    1.68 -    #   before patching, correct unconsistent file modes
    1.69 -    chmod u+w *
    1.70 -
    1.71      %patch -p0
    1.72  
    1.73      #   supply more detailed file path information
    1.74 @@ -96,6 +86,7 @@
    1.75      CPPFLAGS="%{l_cppflags}" \
    1.76      LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
    1.77      LIBS="%{l_fsl_libs} $loclibs" \
    1.78 +    V_SENDMAIL=%{l_prefix}/sbin/sendmail \
    1.79      ./configure \
    1.80          --prefix=%{l_prefix} \
    1.81          --localstatedir=%{l_prefix}/var/arpwatch/run
    1.82 @@ -104,9 +95,6 @@
    1.83      %{l_make} %{l_mflags -O}
    1.84  
    1.85  %install
    1.86 -    #   remove previously existing installations
    1.87 -    rm -rf $RPM_BUILD_ROOT
    1.88 -
    1.89      #   create installation hierarchy
    1.90      %{l_shtool} mkdir -f -p -m 755 \
    1.91          $RPM_BUILD_ROOT%{l_prefix}/sbin \
    1.92 @@ -137,7 +125,6 @@
    1.93  %files -f files
    1.94  
    1.95  %clean
    1.96 -    rm -rf $RPM_BUILD_ROOT
    1.97  
    1.98  %pre
    1.99      #   before upgrading package, record runtime status and stop service
   1.100 @@ -150,7 +137,7 @@
   1.101      if [ $1 -eq 1 ]; then
   1.102          #   after installing package, generate initial arp database
   1.103          %{l_shtool} install -c -o %{l_musr} -g %{l_mgrp} -m 644 \
   1.104 -            %{_builddir}/arpwatch-%{version}/arp.dat \
   1.105 +            %{_builddir}/arpwatch-%{version}/ethercodes.dat \
   1.106              $RPM_INSTALL_PREFIX/var/arpwatch/run/
   1.107  
   1.108          #   after installing package, announce security provision lo0

mercurial