cgilib stable port information

Package: cgilib
Version: 0.5
Revision: 4
BuildDependsOnly: true
BuildDepends: fink (>= 0.24.12), x11-dev
Depends: %n-shlibs (>= %v-%r)
Replaces: %n-shlibs (<< 0.5-4)
Source: http://www.infodrom.org/projects/%N/download/%N-%v.tar.gz
Source-MD5: 5187ba11b2ec165b6c5b6629087733b0
PatchFile: %n.patch
PatchFile-MD5: d9be8b42577712dde1557056d8bb61ae
PatchScript: sed -e 's,@PREFIX@,%p,' < %{PatchFile} | patch -p1
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.0.5.dylib
Shlibs: %p/lib/libcgi.0.5.dylib 0.0.0 %n (>= 0.5-4)
<<
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
Homepage: http://www.infodrom.org/projects/cgilib/

cgilib stable port .patch

diff -uNr cgilib-0.5/Makefile cgilib-0.5-new/Makefile
--- cgilib-0.5/Makefile Fri Aug 20 17:14:07 1999
+++ cgilib-0.5-new/Makefile Tue Jun 7 15:33:10 2005
@@ -21,7 +21,11 @@
OBJS = cgi.o cookies.o

libcgi.a: $(OBJS)
- ar rc $@ $^
+ ar -rc $@ $^
+ ranlib libcgi.a
+
+libcgi.0.5.dylib: $(OBJS)
+ gcc -dynamiclib -install_name @PREFIX@/lib/libcgi.0.5.dylib -current_version 0.5 -o $@ $^

cgitest: cgitest.o libcgi.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
@@ -29,13 +33,13 @@
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 Fri Aug 20 17:14:07 1999
+++ cgilib-0.5-new/cgi.c Tue Jun 7 15:30:28 2005
@@ -31,7 +31,6 @@
#include
#include
#include
-#include
#include

int cgiDebugLevel = 0;
diff -uNr cgilib-0.5/cgitest.c cgilib-0.5-new/cgitest.c
--- cgilib-0.5/cgitest.c Tue Aug 17 09:21:20 1999
+++ cgilib-0.5-new/cgitest.c Tue Jun 7 15:30:28 2005
@@ -23,6 +23,7 @@

#include
#include
+#include
#include

s_cgi *cgi;
@@ -113,7 +114,7 @@
cgiHeader();
printf ("\ncgilib\n\n\n");
printf ("

cgilib

\n", URL);
- printf ("

Cookie "Library" set

\n");
+ printf ("

Cookie \"Library\" set

\n");
printf ("



Test

\n");
printf ("



Redirect

\n");
printf ("



List Everything

\n");

cgilib _unstable_ port .patch