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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   06-Dec-2006 10:35:50
  Branch: HEAD                             Handle: 2006120609354900

  Added files:
    openpkg-src/md5sha1sum  md5sha1sum.patch md5sha1sum.spec

  Log:
    new package: md5sha1sum 0.9.4 (MD5/SHA1/RIPEMD160 File Checksum
    Utilities)

  Summary:
    Revision    Changes     Path
    1.1         +61 -0      openpkg-src/md5sha1sum/md5sha1sum.patch
    1.1         +96 -0      openpkg-src/md5sha1sum/md5sha1sum.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/md5sha1sum/md5sha1sum.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 md5sha1sum.patch
  --- /dev/null 2006-12-06 10:35:44 +0100
  +++ md5sha1sum.patch  2006-12-06 10:35:50 +0100
  @@ -0,0 +1,61 @@
  +Index: configure
  +--- configure.orig   2006-12-05 21:49:30 +0100
  ++++ configure        2006-12-06 10:23:57 +0100
  +@@ -84,7 +84,7 @@
  + fi
  + 
  + echo $ECHO_N "checking to see if $PREFIX/bin/md5sum is Microbrew... $ECHO_C"
  +-if [ -x $PREFIX/bin/md5sum ]; then
  ++if false; then
  +   $PREFIX/bin/md5sum --version | grep "Microbrew" > /dev/null 2>&1
  +   if [ $? != 0 ]; then
  +     echo "no (will not overwrite)"
  +@@ -99,7 +99,7 @@
  + fi
  + 
  + echo $ECHO_N "checking to see if $PREFIX/bin/sha1sum is Microbrew... 
$ECHO_C"
  +-if [ -x $PREFIX/bin/sha1sum ]; then
  ++if false; then
  +   $PREFIX/bin/sha1sum --version | grep "Microbrew" > /dev/null 2>&1
  +   if [ $? != 0 ]; then
  +     echo "no (will not overwrite)"
  +@@ -114,7 +114,7 @@
  + fi
  + 
  + echo $ECHO_N "checking to see if $PREFIX/bin/ripemd160sum is Microbrew... 
$ECHO_C"
  +-if [ -x $PREFIX/bin/ripemd160sum ]; then
  ++if false; then
  +   $PREFIX/bin/ripemd160sum --version | grep "Microbrew" > /dev/null 2>&1
  +   if [ $? != 0 ]; then
  +     echo "no (will not overwrite)"
  +Index: md5sum.c
  +--- md5sum.c.orig    2006-12-05 21:49:30 +0100
  ++++ md5sum.c 2006-12-06 10:27:54 +0100
  +@@ -30,10 +30,11 @@
  + 
  + **********************************************************************/
  + 
  ++#include <string.h>
  ++#include <sys/types.h>
  + #include <openssl/md5.h>
  + #include <openssl/sha.h>
  + #include <openssl/ripemd.h>
  +-#include <sys/types.h>
  + #include <sys/stat.h>
  + 
  + #include "parseopts.h"
  +@@ -161,11 +162,11 @@
  +                    wrong */
  + 
  +                 hashsize = strlen(opts->hashes[i]);
  +-                if(strstr(argv[0], "sha1sum") && (hashsize != 40))
  ++                if(strstr(argv[0], "sha1sum") && (hashsize != 
(SHA_DIGEST_LENGTH * 2)))
  +                     fputs("Warning: Hash size is wrong, maybe you want to 
use 'md5sum'\n", stderr);
  +-                if(strstr(argv[0], "ripemd160sum") && (hashsize != 40))
  ++                if(strstr(argv[0], "ripemd160sum") && (hashsize != 
(RIPEMD160_DIGEST_LENGTH * 2)))
  +                     fputs("Warning: Hash size is wrong, maybe you want to 
use 'md5sum'\n", stderr);
  +-                if(!strstr(argv[0], "md5sum") && hashsize != 32)
  ++                if(strstr(argv[0], "md5sum") && (hashsize != 
(MD5_DIGEST_LENGTH * 2)))
  +                     fputs("Warning: Hash size is wrong, maybe you want to 
use 'sha1sum' or 'ripemd160sum'\n", stderr);
  + 
  +                 if(opts->vmode == VMODE_SILENT) {
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/md5sha1sum/md5sha1sum.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 md5sha1sum.spec
  --- /dev/null 2006-12-06 10:35:44 +0100
  +++ md5sha1sum.spec   2006-12-06 10:35:50 +0100
  @@ -0,0 +1,96 @@
  +##
  +##  md5sha1sum.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         md5sha1sum
  +Summary:      MD5/SHA1/RIPEMD160 File Checksum Utilities
  +URL:          http://www.microbrew.org/tools/md5sha1sum/
  +Vendor:       Bulent Yilmaz
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Filesystem
  +License:      GPL
  +Version:      0.9.4
  +Release:      20061206
  +
  +#   list of sources
  +Source0:      
http://www.microbrew.org/tools/md5sha1sum/md5sha1sum-%{version}.tar.gz
  +Patch0:       md5sha1sum.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  openssl
  +PreReq:       openssl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    This toolset provides the md5sum(1), sha1sum(1) and ripemd160sum(1)
  +    utilities for generating the MD5/SHA1/RIPEMD160 message digest based
  +    checksums for files.
  +
  +%track
  +    prog md5sha1sum = {
  +        version   = %{version}
  +        url       = http://www.microbrew.org/tools/md5sha1sum/
  +        regex     = md5sha1sum-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O} %{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    SSLINCPATH="%{l_prefix}/include" \
  +    SSLLIBPATH="%{l_prefix}/lib" \
  +    ./configure \
  +        --prefix=%{l_prefix}
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin
  +    %{l_shtool} install -c -s -m 755 \
  +        md5sum $RPM_BUILD_ROOT%{l_prefix}/bin/
  +    %{l_shtool} mkln \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/md5sum \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/sha1sum
  +    %{l_shtool} mkln \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/md5sum \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/ripemd160sum
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to