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:   12-Mar-2003 15:53:51
  Branch: HEAD                             Handle: 2003031214535000

  Modified files:
    openpkg-src/sasl        fsl.sasl rc.sasl sasl.spec saslauthd.conf

  Log:
    fully work-off this package

  Summary:
    Revision    Changes     Path
    1.5         +6  -3      openpkg-src/sasl/fsl.sasl
    1.4         +1  -5      openpkg-src/sasl/rc.sasl
    1.61        +66 -50     openpkg-src/sasl/sasl.spec
    1.2         +5  -4      openpkg-src/sasl/saslauthd.conf
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/sasl/fsl.sasl
  ============================================================================
  $ cvs diff -u -r1.4 -r1.5 fsl.sasl
  --- openpkg-src/sasl/fsl.sasl 9 Dec 2002 22:26:41 -0000       1.4
  +++ openpkg-src/sasl/fsl.sasl 12 Mar 2003 14:53:50 -0000      1.5
  @@ -4,11 +4,14 @@
   
   ident (sasl.*)/.+ q{
       prefix(
  -      prefix="%b %d %H:%M:%S %N $1: ", 
  -      timezone=local
  +        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: ",
  +        timezone=local
       ) 
       -> {
  -        debug:    file(path="@l_prefix@/var/sasl/log/sasl.debug", append=1, 
perm=0600);
  +        debug: file(
  +            path="@l_prefix@/var/sasl/log/sasl.log", 
  +            append=1, perm=0600
  +        );
       }
   };
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sasl/rc.sasl
  ============================================================================
  $ cvs diff -u -r1.3 -r1.4 rc.sasl
  --- openpkg-src/sasl/rc.sasl  12 Mar 2003 11:26:45 -0000      1.3
  +++ openpkg-src/sasl/rc.sasl  12 Mar 2003 14:53:50 -0000      1.4
  @@ -5,11 +5,7 @@
   
   %config
       sasl_enable="yes"
  -    sasl_authmech="@authmech@"
  -    #sasl_authmech="sasldb"
  -    #sasl_authmech="rimap -O remote.imap.server"
  -    #sasl_authmech="pam"
  -    #sasl_authmech="ldap"
  +    sasl_authmech="@l_authmech@"
       sasl_threads="2"
   
   %start -p 200 -u @l_susr@
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sasl/sasl.spec
  ============================================================================
  $ cvs diff -u -r1.60 -r1.61 sasl.spec
  --- openpkg-src/sasl/sasl.spec        12 Mar 2003 11:26:45 -0000      1.60
  +++ openpkg-src/sasl/sasl.spec        12 Mar 2003 14:53:50 -0000      1.61
  @@ -25,7 +25,7 @@
   
   #   package information
   Name:         sasl
  -Summary:      Simple Authentication and Security Layer
  +Summary:      Simple Authentication and Security Layer (SASL)
   URL:          http://asg.web.cmu.edu/sasl/
   Vendor:       Cyrus Project, CMU
   Packager:     The OpenPKG Project
  @@ -82,17 +82,18 @@
   
   %prep
       %setup -q -n cyrus-sasl-%{version}
  -    %{l_shtool} subst \
  -        -e 's;^ *for dbname in ;for dbname in db ;' \
  -        configure
       %patch -p0
   
   %build
  +    #   disable some unwanted configure checks
       %{l_shtool} subst \
  +        -e 's;^ *for dbname in ;for dbname in db ;' \
           -e "s;javac;javac-xxx;g" \
           -e "s;javah;javah-xxx;g" \
           -e "s;javadoc;javadoc-xxx;g" \
           configure
  +
  +    #   fix OpenLDAP support
   %if "%{with_ldap}" == "yes"
       echo 'ac_cv_lib_ldap_ldap_initialize=yes' >config.cache
       %{l_shtool} subst \
  @@ -100,6 +101,7 @@
           saslauthd/configure
   %endif
   
  +    #   determine build flags
       cflags="%{l_cflags -O} %{l_cppflags}"
       ldflags="%{l_ldflags}"
       libs="-ldb"
  @@ -109,12 +111,12 @@
   %endif
   %if "%{with_ldap}" == "yes"
       cflags="$cflags -DAUTH_LDAP"
  -    ldflags="$ldflags `%{l_prefix}/bin/fsl-config --all --ldflags`"
  -    libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`"
   %endif
   %if "%{with_mysql}" == "yes"
       libs="$libs -lz -lm"
   %endif
  +
  +    #   configure package
       CC="%{l_cc}" \
       CFLAGS="$cflags" \
       CPPFLAGS="%{l_cppflags}" \
  @@ -161,29 +163,32 @@
           --without-des \
           --without-opie
   
  -    #   trust me, libtool, I know what I am doing
  +    #   post adjustment: trust me, libtool, I know what I am doing
       %{l_shtool} subst \
           -e 's;^\(deplibs_check_method=\).*;\1"pass_all";' \
           libtool
  -    #   do not reference static plugins
  +    #   post adjustment: do not reference static plugins
       %{l_shtool} subst \
           -e '58s;.*;#define PIC;' \
           lib/dlopen.c
  -    #   do not pull static plugins into static library
  +    #   post adjustment: do not pull static plugins into static library
       %{l_shtool} subst \
           -e '/^SASL_STATIC_OBJS/s;\.\./plugins/[^ ]* *;;g' \
           lib/Makefile
  -    #   build utils against static library
  +    #   post adjustment: build utils against static library
       %{l_shtool} subst \
           -e 's;\(\$(CCLD)\);\1 -static;' \
           utils/Makefile
   
  +    #   build package
       %{l_make} %{l_mflags}
       cd saslauthd
       %{l_make} %{l_mflags} testsaslauthd
   
   %install
       rm -rf $RPM_BUILD_ROOT
  +
  +    #   install package
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   
       #   remove libtool cruft
  @@ -194,60 +199,71 @@
           $RPM_BUILD_ROOT%{l_prefix}/lib/sasl2/*.la \
           $RPM_BUILD_ROOT%{l_prefix}/lib/sasl2/*.a
   
  +    #   post-adjust installation
  +    mv $RPM_BUILD_ROOT%{l_prefix}/lib/sasl2 \
  +       $RPM_BUILD_ROOT%{l_prefix}/lib/sasl/
  +    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  +
  +    #   install saslauthd test program
       %{l_shtool} mkdir -f -p -m 755 \
  -        $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  -        $RPM_BUILD_ROOT%{l_prefix}/sbin \
  -        $RPM_BUILD_ROOT%{l_prefix}/etc/sasl \
  -        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  -    %{l_shtool} install -c -m 644 \
  -        utils/saslpasswd2.8 \
  -        utils/sasldblistusers2.8 \
  -        $RPM_BUILD_ROOT%{l_prefix}/man/man8/
  +        $RPM_BUILD_ROOT%{l_prefix}/sbin
       %{l_shtool} install -c -m 755 \
           saslauthd/testsaslauthd  \
           $RPM_BUILD_ROOT%{l_prefix}/sbin/
  +
  +    #   install saslauthd default configuration
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/sasl
       %{l_shtool} install -c -m 755 \
           %{SOURCE saslauthd.conf} \
           $RPM_BUILD_ROOT%{l_prefix}/etc/sasl/
  -    %{l_shtool} install -c -m 755 \
  -        -e 's;@l_prefix@;%{l_prefix};g' \
  -        -e 's;@l_susr@;%{l_susr};g' \
  -        %{SOURCE rc.sasl} \
  -        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   install missing manual pages
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man8
  +    %{l_shtool} install -c -m 644 \
  +        utils/saslpasswd2.8 \
  +        utils/sasldblistusers2.8 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man8/
  +
  +    #   create necessary additional directories
  +    %{l_shtool} mkdir -f -p -m 700 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/sasl/log/
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/sasl/saslauthd/
  +
  +    #   install run-command script
   %if "%{with_pam}" == "yes"
  -    %{l_shtool} subst -e 's;@authmech@;pam;g' \
  -        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/rc.sasl
  +    l_authmech="pam"
   %else
       case "%{l_target}" in
  -        ix86-linux* )
  -            %{l_shtool} subst -e 's;@authmech@;shadow;g' \
  -                $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/rc.sasl
  -        ;;
  -        *-solaris* )
  -            %{l_shtool} subst -e 's;@authmech@;shadow;g' \
  -                $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/rc.sasl
  -        ;;
  -        * )
  -            %{l_shtool} subst -e 's;@authmech@;getpwent;g' \
  -                $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/rc.sasl
  -        ;;
  +        ix86-linux* ) l_authmech="shadow"   ;;
  +        *-solaris*  ) l_authmech="shadow"   ;;
  +        *           ) l_authmech="getpwent" ;;
       esac
   %endif
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_authmech@;${l_authmech};g' \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        -e 's;@l_susr@;%{l_susr};g' \
  +        %{SOURCE rc.sasl} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   install OSSP fsl configuration
   %if "%{with_fsl}" == "yes"
  -      %{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.sasl} \
  -          $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  -%endif
  -    %{l_shtool} mkdir -f -p -m 700 \
  -        $RPM_BUILD_ROOT%{l_prefix}/var/sasl/log/
       %{l_shtool} mkdir -f -p -m 755 \
  -        $RPM_BUILD_ROOT%{l_prefix}/var/sasl/saslauthd/
  -    mv $RPM_BUILD_ROOT%{l_prefix}/lib/sasl2 \
  -        $RPM_BUILD_ROOT%{l_prefix}/lib/sasl/
  -    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +    %{l_shtool} install -c -m 644 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        %{SOURCE fsl.sasl} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +%endif
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
   %if "%{with_fsl}" == "yes"
           '%config %{l_prefix}/etc/fsl/fsl.sasl' \
           '%not %dir %{l_prefix}/etc/fsl' \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sasl/saslauthd.conf
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 saslauthd.conf
  --- openpkg-src/sasl/saslauthd.conf   12 Mar 2003 11:26:45 -0000      1.1
  +++ openpkg-src/sasl/saslauthd.conf   12 Mar 2003 14:53:50 -0000      1.2
  @@ -1,3 +1,7 @@
  +##
  +##  saslauthd.conf -- SASL Authentication Daemon Configuration
  +##
  +
   # white space separated list of LDAP servers
   ldap_servers: ldap://127.0.0.1
   
  @@ -20,10 +24,6 @@
   # restart LDAP I/O operations that fail ?
   ldap_restart: yes
   
  -## deprecated client side caching, ignored
  -##ldap_cache_ttl
  -##ldap_cache_mem
  -
   # search scope (sub|one|base)
   #ldap_scope: sub
   
  @@ -52,3 +52,4 @@
   # files containing client certificate and key
   #ldap_tls_cert:
   #ldap_tls_key:
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to