From a7f21d23a213f321492bcaa1a0ab48b49cdb685d Mon Sep 17 00:00:00 2001 From: Sebastian Knapp Date: Thu, 19 May 2005 13:36:52 +0000 Subject: [PATCH] Sebastian Knapp: new repo silicit add package cgilib not really important, but rrdtool could use it [2005042816262930819] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5994 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/silicit/cgilib/cgilib.conf | 59 +++++++++++++++++++ package/silicit/cgilib/cgilib.desc | 48 +++++++++++++++ .../cgilib/cgitest-compile.patch.cgilib | 38 ++++++++++++ package/silicit/cgilib/uplbuild.patch.cgiupl | 10 ++++ 4 files changed, 155 insertions(+) create mode 100644 package/silicit/cgilib/cgilib.conf create mode 100644 package/silicit/cgilib/cgilib.desc create mode 100644 package/silicit/cgilib/cgitest-compile.patch.cgilib create mode 100644 package/silicit/cgilib/uplbuild.patch.cgiupl diff --git a/package/silicit/cgilib/cgilib.conf b/package/silicit/cgilib/cgilib.conf new file mode 100644 index 000000000..818fae52f --- /dev/null +++ b/package/silicit/cgilib/cgilib.conf @@ -0,0 +1,59 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/silicit/cgilib/cgilib.conf +# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +# +# 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 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + + +createdocs=0 + +custmain='make all; install_cgilib' + +install_cgilib () { + + # install header + install -m 644 *.h $includedir + + # install library + install -m 644 *.a $libdir + + if [ "${xsrctar/-[0-9]*/}" = "cgilib" ] ; then + # install manpages + for l in 3 5 ; do + for m in *.$l ; do + install -m 644 $m $mandir/man$l + done + done + + mkdir -p $docdir + install -m 644 CHANGES $docdir + install -m 644 CREDITS $docdir + install -m 644 readme $docdir + mkdir -p $docdir/examples + install -m 644 cgitest.c $docdir/examples + install -m 644 jumpto.c $docdir/examples + fi + if [ "${xsrctar/-[0-9]*/}" = "cgiupl" ] ; then + mkdir -p $docdir/cgiupl + install -m 644 README $docdir/cgiupl + install -m 644 COPYING $docdir/cgiupl + install -m 644 cgiupl.lsm $docdir/cgiupl + install -m 644 uplmain.c $docdir/examples + fi +} diff --git a/package/silicit/cgilib/cgilib.desc b/package/silicit/cgilib/cgilib.desc new file mode 100644 index 000000000..bebbb9f1a --- /dev/null +++ b/package/silicit/cgilib/cgilib.desc @@ -0,0 +1,48 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/silicit/cgilib/cgilib.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] simple CGI C library, including cookies + +[T] Small library for writing CGI applications. There are functions to read +[T] data from GET and POST requests. Support for various headers and +[T] cookies is also included. +[T] Basic multiform-data and file upload is provided by a small additional +[T] library. + +[U] http://www.infodrom.org/projects/cgilib + +[A] Martin Schulze +[A] Mikko Torni +[M] Sebastian Knapp + +[C] extra/development + +[L] GPL +[S] Stable +[V] 0.5 +[P] X -----5---9 124.900 + +[D] 2593391679 cgilib-0.5.tar.gz http://www.infodrom.org/projects/cgilib/download/ +[D] 2276230646 cgiupl-0.1.tar.gz http://www.infodrom.org/projects/cgilib/download/ + +[SRC] cgilib-0.5 cgiupl-0.1 diff --git a/package/silicit/cgilib/cgitest-compile.patch.cgilib b/package/silicit/cgilib/cgitest-compile.patch.cgilib new file mode 100644 index 000000000..06359a4bb --- /dev/null +++ b/package/silicit/cgilib/cgitest-compile.patch.cgilib @@ -0,0 +1,38 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/silicit/cgilib/cgitest-compile.patch +# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +--- cgilib-0.5/cgitest.c.old 2005-04-26 12:25:34.000000000 +0200 ++++ cgilib-0.5/cgitest.c 2005-04-26 12:31:16.000000000 +0200 +@@ -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"); diff --git a/package/silicit/cgilib/uplbuild.patch.cgiupl b/package/silicit/cgilib/uplbuild.patch.cgiupl new file mode 100644 index 000000000..99d02c1cd --- /dev/null +++ b/package/silicit/cgilib/uplbuild.patch.cgiupl @@ -0,0 +1,10 @@ +--- libcgiupl-0.1/cgiupl.c.old 1998-05-12 04:55:54.000000000 +0200 ++++ libcgiupl-0.1/cgiupl.c 2005-04-26 15:23:12.000000000 +0200 +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #include +