Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/utils In directory vz-cvs-3.sog:/tmp/cvs-serv21600/utils
Added Files: patch.info patch.patch Log Message: Add GNU patch to 10.7 tree --- 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: 2 Maintainer: Max Horn <m...@quendi.de> BuildDepends: fink (>= 0.24.12-1) Source: gnu Source-MD5: d758eb96d3f75047efc004a720d33daf 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 `fgrep -lr 'seq ' tests/` do sed -i.orig -e 's|seq |gseq |' $f done for f in `fgrep -lr -e 'cat -A' tests/` do sed -i.orig -e 's|cat -A|gcat -A|' $f done for f in `fgrep -lr 'date ' tests/` do sed -i.orig -e 's|date |gdate |' $f done for f in `fgrep -lr -e 'touch -d' tests/` do sed -i.orig -e 's|touch -d|gtouch -d|' $f done << InfoTest: << TestDepends: coreutils, sed 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: << On Mac OS X 10.4 and 10.5, the function strnlen is missing, so we add an implementation for it. Test depends on coreutils for 'seq' and 'cat' (named 'gseq' and 'gcat'). << License: GPL Homepage: http://www.gnu.org/software/patch/patch.html ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs