Update of /cvsroot/fink/experimental/rangerrick/common/main/finkinfo/libs
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5746/common/main/finkinfo/libs

Added Files:
        cgilib.info cgilib.patch 
Log Message:
cgilib

--- NEW FILE: cgilib.patch ---
diff -uNr cgilib-0.5/Makefile cgilib-0.5-new/Makefile
--- cgilib-0.5/Makefile 1999-08-20 17:14:07.000000000 -0400
+++ cgilib-0.5-new/Makefile     2005-05-21 18:20:26.000000000 -0400
@@ -23,19 +23,22 @@
 libcgi.a: $(OBJS)
        ar rc $@ $^
 
+libcgi.0.5.dylib: $(OBJS)
+       gcc -dynamiclib -current_version 0.5 -o $@ $^
+
 cgitest: cgitest.o libcgi.a
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 jumpto: jumpto.o libcgi.a
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
 
-all: libcgi.a cgitest jumpto
+all: libcgi.a libcgi.0.5.dylib cgitest jumpto
 
 install: cgitest
        install -m 755 cgitest /usr/lib/cgi-bin
 
 clean:
-       rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html
+       rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a libcgi.0.5.dylib 
$(OBJS) *.[35].html
 
 htmlman:
        for f in *.[35]; do \
diff -uNr cgilib-0.5/cgi.c cgilib-0.5-new/cgi.c
--- cgilib-0.5/cgi.c    1999-08-20 17:14:07.000000000 -0400
+++ cgilib-0.5-new/cgi.c        2005-05-21 18:14:35.000000000 -0400
@@ -31,7 +31,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <ctype.h>
-#include <malloc.h>
 #include <cgi.h>
 
 int cgiDebugLevel = 0;
diff -uNr cgilib-0.5/cgitest.c cgilib-0.5-new/cgitest.c
--- cgilib-0.5/cgitest.c        1999-08-17 09:21:20.000000000 -0400
+++ cgilib-0.5-new/cgitest.c    2005-05-21 18:21:26.000000000 -0400
@@ -23,6 +23,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <cgi.h>
 
 s_cgi *cgi;
@@ -113,7 +114,7 @@
             cgiHeader();
            printf ("<html>\n<head><title>cgilib</title></title>\n\n<body 
bgcolor=\"#ffffff\">\n");
            printf ("<h1><a href=\"%s\">cgilib</a></h1>\n", URL);
-           printf ("<h3>Cookie "Library" set</h3>\n");
+           printf ("<h3>Cookie \"Library\" set</h3>\n");
            printf ("<p><br><p><br><a href=\"/cgi-bin/cgitest\">Test</a><p>\n");
            printf ("<p><br><p><br><a 
href=\"/cgi-bin/cgitest/redirect\">Redirect</a><p>\n");
            printf ("<p><br><p><br><a href=\"/cgi-bin/cgitest/listall\">List 
Everything</a><p>\n");

--- NEW FILE: cgilib.info ---
Package: cgilib
Version: 0.5
Revision: 1
BuildDepends: x11-dev
Depends: %n-shlibs (>= %v-%r)
Source: http://www.infodrom.org/projects/%N/download/%N-%v.tar.gz
Source-MD5: 5187ba11b2ec165b6c5b6629087733b0
Patch: %n.patch
CompileScript: make CC=gcc all
InstallScript: <<
#!/bin/sh -ex

  install -d -m 755 %i/lib
  install -c -m 644 libcgi.%v.dylib %i/lib/
  ln -sf libcgi.%v.dylib %i/lib/libcgi.0.dylib
  ln -sf libcgi.%v.dylib %i/lib/libcgi.dylib

  install -d -m 755 %i/bin
  install -c -m 755 cgitest jumpto %i/bin/

  install -d -m 755 %i/include
  install -c -m 644 cgi.h %i/include/

  install -d -m 755 %i/share/man/man3
  install -c -m 644 *.3 %i/share/man/man3/
  install -d -m 755 %i/share/man/man5
  install -c -m 644 *.5 %i/share/man/man5/
<<
SplitOff: <<
  Package: %N-shlibs
  Files: lib/libcgi.*.dylib
<<
DocFiles: CHANGES CREDITS readme
Description: Simple CGI library
DescDetail: <<
This is quite a simple library that provides an easy interface
to the common gateway interface, known as CGI.  The purpose is
to provide an easy to use interface to CGI if you need to write
your program in C instead of perl.

Since version 0.5 this library also supports reading and
writing cookies as used by shopping systems and the like.

Features

* Online (non-interactive) and offline (interactive) modelike CGI.pm
* Support for HTTP Redirections
* Support for FORM variables
* Support for HTTP Cookies
* Support for additional header lines
* Easy to use programming interface 
<<
License: GPL
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Homepage: http://www.infodrom.org/projects/cgilib/



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to