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

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   11-Sep-2002 16:18:22
  Branch: HEAD                             Handle: 2002091115182100

  Added files:
    openpkg-src/openssh     fsl.openssh
  Modified files:
    openpkg-src/openssh     openssh.spec

  Log:
    Added fsl logic to buildconf, and removed fakesyslog inclusion.

  Summary:
    Revision    Changes     Path
    1.1         +16 -0      openpkg-src/openssh/fsl.openssh
    1.52        +24 -23     openpkg-src/openssh/openssh.spec
  ____________________________________________________________________________

  Index: openpkg-src/openssh/fsl.openssh
  ============================================================
  $ cvs update -p -r1.1 fsl.openssh
  ##
  ##  fsl.openssh -- OSSP fsl configuration for openssh
  ##
  
  ident (openssh)/.+ q{
      prefix(
          prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
      ) 
      -> {
          debug: file(
              path="@l_prefix@/var/openssh/sshd.log",
              append=1, perm=0644
          )
      }
  }
  
  Index: openpkg-src/openssh/openssh.spec
  ============================================================
  $ cvs diff -u -r1.51 -r1.52 openssh.spec
  --- openpkg-src/openssh/openssh.spec  13 Aug 2002 12:49:08 -0000      1.51
  +++ openpkg-src/openssh/openssh.spec  11 Sep 2002 14:18:21 -0000      1.52
  @@ -54,12 +54,12 @@
   Group:        Security
   License:      BSD
   Version:      %{V_base}%{V_portable}
  -Release:      20020716
  +Release:      20020911
   
   #   list of sources
   Source0:      
ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
  -Source1:      fakesyslog.tar.gz
  -Source2:      rc.openssh
  +Source1:      rc.openssh
  +Source2:      fsl.openssh
   Source3:      sshd_config
   Source4:      ssh_config
   Source5:      ssh-askpass
  @@ -71,8 +71,8 @@
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20020206, perl, openssl, zlib
  -PreReq:       OpenPKG, openpkg >= 20020206
  +BuildPreReq:  OpenPKG, openpkg >= 20020206, fsl, perl, openssl, zlib
  +PreReq:       OpenPKG, openpkg >= 20020206, fsl
   %if "%{with_pam}" == "yes"
   BuildPreReq:  PAM
   PreReq:       PAM
  @@ -107,36 +107,25 @@
   
   %prep
       %setup0 -q -c
  -    %setup1 -q -T -D -a 1
   %if "%{with_chroot}" == "yes"
       cd openssh-%{version}
       %{l_patch} -p1 <%{SOURCE osshChroot-%{V_base}.diff}
   %endif
   
   %build
  -    #   build faked syslog(3) library
  -    fakesyslogdir="`pwd`/fakesyslog"
  -    ( cd fakesyslog
  -      CC="%{l_cc}" \
  -      CFLAGS="%{l_cflags -O}" \
  -      ./configure \
  -          --with-logfile=%{l_prefix}/var/openssh/sshd.log
  -      %{l_make} %{l_mflags}
  -    )
  -
       #   build OpenSSH
       ( cd openssh-%{version}
         inc="-I%{l_prefix}/include"
  -      lib="-L%{l_prefix}/lib -L$fakesyslogdir"
  +      lib="-L%{l_prefix}/lib"
   %if "%{with_pam}" == "yes"
         inc="$inc -I`%{l_prefix}/etc/rc --query pam_incdir`"
         lib="$lib -L`%{l_prefix}/etc/rc --query pam_libdir`"
   %endif
         CC="%{l_cc}" \
  -      CFLAGS="%{l_cflags -O} $inc" \
  -      CPPFLAGS="$inc" \
  -      LDFLAGS="$lib" \
  -      LIBS="-lfakesyslog" \
  +      CFLAGS="`%{l_prefix}/bin/fsl-config --all --cflags` $inc" \
  +      CFLAGS="$inc" \
  +      LDFLAGS="`%{l_prefix}/bin/fsl-config --all --ldflags` $lib" \
  +      LIBS="`%{l_prefix}/bin/fsl-config --all --libs`" \
         ./configure \
             --prefix=%{l_prefix} \
             --sbindir=%{l_prefix}/bin \
  @@ -193,6 +182,7 @@
       strip $RPM_BUILD_ROOT%{l_prefix}/libexec/openssh/* 2> /dev/null || true
   
       #   install ssh-askpass wrapper
  +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/openssh/
       %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
           %{SOURCE ssh-askpass} $RPM_BUILD_ROOT%{l_prefix}/libexec/openssh/
   
  @@ -202,18 +192,27 @@
            $RPM_BUILD_ROOT%{l_prefix}/var/openssh/empty
   
       #   install addons
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/ \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1/
       %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
           %{SOURCE ssh-keyman} $RPM_BUILD_ROOT%{l_prefix}/bin/
       %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
           %{SOURCE ssh-keyman.1} $RPM_BUILD_ROOT%{l_prefix}/man/man1/
   
       #   install run-command script
  -    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{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_musr@;%{l_musr};g' -e 's;@l_mgrp@;%{l_mgrp};g' \
           %{SOURCE rc.openssh} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
   
  +    #   install fsl configuration file
  +    %{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.openssh} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +
       #   install reasonable ssh server and client configuration files
  +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/openssh/
       %{l_shtool} install -c -m 644 \
           -e 's;@l_prefix@;%{l_prefix};g' \
           -e 's;@l_x11forwarding@;%{with_x11};' \
  @@ -226,7 +225,9 @@
           %{l_files_std} \
           '%config %{l_prefix}/etc/openssh/*' \
           '%attr(4711,root,%{l_mgrp}) %{l_prefix}/libexec/openssh/ssh-keysign' \
  -        '%dir %attr(700,root,root) %{l_prefix}/var/openssh/empty'
  +        '%dir %attr(700,root,root) %{l_prefix}/var/openssh/empty' \
  +        '%config %{l_prefix}/etc/fsl/fsl.openssh' \
  +        '%not %dir %{l_prefix}/etc/fsl'
   
   %files -f files
   
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to