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

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   03-Jul-2003 13:01:16
  Branch: HEAD                             Handle: 2003070312011401

  Added files:
    openpkg-src/aide        fsl.aide rc.aide
  Modified files:
    openpkg-src/aide        aide.spec
    openpkg-web             news.txt

  Log:
    add fsl support

  Summary:
    Revision    Changes     Path
    1.14        +40 -5      openpkg-src/aide/aide.spec
    1.1         +15 -0      openpkg-src/aide/fsl.aide
    1.1         +23 -0      openpkg-src/aide/rc.aide
    1.5180      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/aide/aide.spec
  ============================================================================
  $ cvs diff -u -r1.13 -r1.14 aide.spec
  --- openpkg-src/aide/aide.spec        5 Mar 2003 18:53:05 -0000       1.13
  +++ openpkg-src/aide/aide.spec        3 Jul 2003 11:01:15 -0000       1.14
  @@ -33,17 +33,26 @@
   Group:        Security
   License:      GPL
   Version:      0.9
  -Release:      20030305
  +Release:      20030703
  +
  +#   package options
  +%option       with_fsl  yes
   
   #   list of sources
   Source0:      http://www.cs.tut.fi/~rammer/aide-0.9.tar.gz
  +Source1:      rc.aide
  +Source2:      fsl.aide
   Patch0:       aide.patch
   
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20020206, bison, flex, mhash, zlib
  -PreReq:       OpenPKG, openpkg >= 20020206
  +BuildPreReq:  OpenPKG, openpkg >= 20030415, bison, flex, mhash, zlib
  +PreReq:       OpenPKG, openpkg >= 20030415
  +%if "%{with_fsl}" == "yes"
  +BuildPreReq:  fsl
  +PreReq:       fsl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -63,7 +72,8 @@
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags}" \
  -    LDFLAGS="%{l_ldflags}" \
  +    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
  +    LIBS="%{l_fsl_libs}" \
       ./configure \
           --prefix=%{l_prefix} \
           --with-dbhmactype=sha1 \
  @@ -73,9 +83,34 @@
   
   %install
       rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/%{name} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/aide
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
       strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +    #   Creating run-command script
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        -e 's;@l_susr@;%{l_susr};g' \
  +        -e 's;@l_rusr@;%{l_rusr};g' \
  +        -e 's;@l_rgrp@;%{l_rgrp};g' \
  +        %{SOURCE rc.%{name}} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   OSSP fake syslog library
  +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
  +    %{l_shtool} install -c -m 644 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        %{SOURCE fsl.%{name}} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%not %dir %{l_prefix}/etc/fsl' \
  +        '%config %{l_prefix}/etc/fsl/fsl.%{name}'
   
   %files -f files
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/aide/fsl.aide
  ============================================================================
  $ cvs diff -u -r0 -r1.1 fsl.aide
  --- /dev/null 2003-07-03 13:01:15.000000000 +0200
  +++ fsl.aide  2003-07-03 13:01:15.000000000 +0200
  @@ -0,0 +1,15 @@
  +##
  +##  fsl.aide -- OSSP fsl configuration
  +##
  +
  +ident (aide)/.+ q{
  +    prefix(
  +        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
  +    ) 
  +    -> {
  +        debug: file(
  +            path="@l_prefix@/var/aide/aide.log",
  +            append=1, perm=0644
  +        )
  +    }
  +};
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/aide/rc.aide
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.aide
  --- /dev/null 2003-07-03 13:01:15.000000000 +0200
  +++ rc.aide   2003-07-03 13:01:15.000000000 +0200
  @@ -0,0 +1,23 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.aide -- Run-Commands
  +##
  +
  +%config
  +    aide_enable="yes"
  +    aide_log_prolog="true"
  +    aide_log_epilog="true"
  +    aide_log_numfiles="10"
  +    aide_log_minsize="1M"
  +    aide_log_complevel="9"
  +
  +%daily -u @l_susr@
  +    opServiceEnabled aide || exit 0
  +
  +    #   rotate logfile
  +    shtool rotate -f \
  +        -n${aide_log_numfiles} -s${aide_log_minsize} -d \
  +        -z${aide_log_complevel} [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ -m644 \
  +        -P "${aide_log_prolog}" \
  +        -E "${aide_log_epilog}" \
  +        @l_prefix@/var/aide/aide.log
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.5179 -r1.5180 news.txt
  --- openpkg-web/news.txt      3 Jul 2003 10:14:22 -0000       1.5179
  +++ openpkg-web/news.txt      3 Jul 2003 11:01:14 -0000       1.5180
  @@ -1,3 +1,4 @@
  +03-Jul-2003: Upgraded package: P<aide-0.9-20030703>
   03-Jul-2003: Upgraded package: P<sudo-1.6.7p5-20030703>
   03-Jul-2003: Upgraded package: P<stunnel-4.04-20030703>
   03-Jul-2003: Upgraded package: P<ssmtp-2.48-20030703>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to