OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   16-Aug-2004 09:51:44
  Branch: HEAD                             Handle: 2004081608514400

  Modified files:
    openpkg-src/snmpdx      rc.snmpdx snmpdx.spec

  Log:
    fix rc file usage (installation was missing) and mark config file as
    such

  Summary:
    Revision    Changes     Path
    1.3         +0  -2      openpkg-src/snmpdx/rc.snmpdx
    1.18        +17 -2      openpkg-src/snmpdx/snmpdx.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/snmpdx/rc.snmpdx
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 rc.snmpdx
  --- openpkg-src/snmpdx/rc.snmpdx      6 Jul 2004 11:18:32 -0000       1.2
  +++ openpkg-src/snmpdx/rc.snmpdx      16 Aug 2004 07:51:44 -0000      1.3
  @@ -14,8 +14,6 @@
   
   %daily -u @l_susr@
       rcService snmpdx enable yes || exit 0
  -
  -    #   rotate logfile, with foreign 'rc snmp restart'
       shtool rotate -f \
           -n ${snmpdx_log_numfiles} -s ${snmpdx_log_minsize} -d \
           -z ${snmpdx_log_complevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/snmpdx/snmpdx.spec
  ============================================================================
  $ cvs diff -u -r1.17 -r1.18 snmpdx.spec
  --- openpkg-src/snmpdx/snmpdx.spec    30 Jul 2004 10:35:24 -0000      1.17
  +++ openpkg-src/snmpdx/snmpdx.spec    16 Aug 2004 07:51:44 -0000      1.18
  @@ -34,10 +34,11 @@
   Group:        Network
   License:      GPL
   Version:      0.2.10
  -Release:      20040730
  +Release:      20040816
   
   #   list of sources
   Source0:      ftp://ftp.ossp.org/pkg/tool/snmpdx/snmpdx-%{version}.tar.gz
  +Source1:      rc.snmpdx
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -65,17 +66,31 @@
       %setup -q
   
   %build
  +    #   configure program
       ./configure \
           --prefix=%{l_prefix} \
           --with-openpkg=%{l_prefix} \
           --with-snmp=%{l_prefix} \
           --with-perl=%{l_prefix}/bin/perl
  +
  +    #   build program
       %{l_make} %{l_mflags -O}
   
   %install
  +    #   install program
       rm -rf $RPM_BUILD_ROOT
       %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +    #   install run-command script
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE rc.snmpdx} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/snmpdx/snmpdx.cfg'
   
   %files -f files
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to