Update of /cvsroot/fink/experimental/fangism/finkinfo
In directory vz-cvs-3.sog:/tmp/cvs-serv23706

Added Files:
        patch.info patch.patch 
Log Message:
upstream patch-2.6.1, w/ support for git binary diffs,
validated on powerpc-darwin8


--- NEW FILE: patch.patch ---
diff --git a/gl/lib/strnlen.c b/gl/lib/strnlen.c
--- /dev/null
+++ b/gl/lib/strnlen.c
@@ -0,0 +1,31 @@
+/* Find the length of STRING, but scan at most MAXLEN characters.
+   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+   Written by Simon Josefsson.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+
+#include <config.h>
+
+#include <string.h>
+
+/* Find the length of STRING, but scan at most MAXLEN characters.
+   If no '\0' terminator is found in that many characters, return MAXLEN.  */
+
+size_t
+strnlen (const char *string, size_t maxlen)
+{
+  const char *end = memchr (string, '\0', maxlen);
+  return end ? (size_t) (end - string) : maxlen;
+}

--- NEW FILE: patch.info ---
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: patch
Version: 2.6.1
Revision: 0
# Distribution: 10.4
Maintainer: Max Horn <[email protected]>
Source: gnu
# UpdateConfigGuess: true
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: 6690768e0e48fe2fa18cc9aab3a84f64
PatchScript: <<
        #!/bin/sh -ev
        %{default_script}
        sed -i.orig -e '/^\.c/i\
.SUFFIXES: .c .$(OBJEXT)' Makefile.in
        # bunch of tests require coreutils versions of commands
        for f in `grep -lr seq tests/`
        do sed -i.orig -e 's|\<seq\>|gseq|' $f
        done
        for f in `grep -lr -e 'cat -A' tests/`
        do sed -i.orig -e 's|\<cat\>|gcat|' $f
        done
        for f in `grep -lr 'date' tests/`
        do sed -i.orig -e 's|\<date\>|gdate|' $f
        done
        for f in `grep -lr -e 'touch -d' tests/`
        do sed -i.orig -e 's|\<touch\>|gtouch|' $f
        done
<<
Source-MD5: d758eb96d3f75047efc004a720d33daf
InfoTest: <<
        TestDepends: coreutils
        TestScript: make -k check || exit 2
<<
InstallScript: make install prefix=%i mandir=%i/share/man
DocFiles: README COPYING AUTHORS NEWS
#
Description: Utility to apply patches to source trees
DescDetail: <<
patch takes a file describing differences (usually created by diff(1))
and applies them to a file or a whole source tree.
<<
DescPort: <<
Uses autoconf and checks the host type - the usual fix. Tries to use a
function called setmode() which is supposed to do something else than
the setmode(3) in *BSD. The patch removes the define from config.hin
(and thus from config.h).
Test depends on coreutils for 'seq' and 'cat' (named 'gseq' and 'gcat').
<<
License: GPL
Homepage: http://www.gnu.org/software/patch/patch.html


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to