Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/utils
In directory vz-cvs-3.sog:/tmp/cvs-serv23837

Added Files:
        symlinks.info symlinks.patch 
Log Message:
Add to 10.7.

--- NEW FILE: symlinks.info ---
Package: symlinks
Version: 1.2
Revision: 2
Description: Scan/change symbolic links
License: OSI-Approved
Maintainer: Remi Mommsen <remigius.momm...@cern.ch>
DescDetail: <<
 Scans directories for symbolic links, and identifies dangling,
 relative, absolute, messy, lengthy and other_fs links.  Can
 optionally change absolute links to relative within a given
 filesystem. Recommended for use by anyone developing and/or
 maintaining a Linux distribution or CD-ROM. 
<<
Source: http://ftp.fi.muni.cz/pub/linux/ftp.ibiblo.org/utils/file/%n-%v.tar.gz
Source-MD5: b4bab0a5140e977c020d96e7811cec61
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: e4f52a26ffe317a9ab2cfa618210f63b
CompileScript: <<
 make
 echo "(c) Mark Lord, freely distributable" > COPYING
<<
InstallScript: <<
 install -d -m 755 %i/bin
 install -m 755 symlinks %i/bin
 install -d -m 755 %i/share/man/man8
 install -m 755 symlinks.8 %i/share/man/man8
<<
DocFiles: COPYING


--- NEW FILE: symlinks.patch ---
diff -Naur symlinks-1.2.orig/Makefile symlinks-1.2.new/Makefile
--- symlinks-1.2.orig/Makefile  Sun Nov 27 15:13:31 1994
+++ symlinks-1.2.new/Makefile   Fri Sep 24 10:48:33 2004
@@ -3,7 +3,7 @@
 all: symlinks
 
 symlinks: symlinks.c
-       gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c
+       gcc -Wall -Wstrict-prototypes -O2 -s -o symlinks symlinks.c
  
 install: all symlinks.8
        install -m 755 -o root -g root symlinks /usr/local/bin
diff -Naur symlinks-1.2.orig/symlinks.c symlinks-1.2.new/symlinks.c
--- symlinks-1.2.orig/symlinks.c        Tue Oct 15 12:02:57 1996
+++ symlinks-1.2.new/symlinks.c Fri Sep 24 10:55:31 2004
@@ -1,9 +1,9 @@
 #include <unistd.h>
 #ifndef _POSIX_SOURCE
-#define _POSIX_SOURCE
+// #define _POSIX_SOURCE
 #endif
 #include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <sys/param.h>
@@ -294,7 +294,7 @@
        exit(1);
 }
 
-void main(int argc, char **argv)
+int main(int argc, char **argv)
 {
        static char path[PATH_MAX+2], cwd[PATH_MAX+2];
        int dircount = 0;
@@ -342,5 +342,5 @@
        }
        if (dircount == 0)
                usage_error();
-       exit (0);
+       return 0;
 }


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to