summaryrefslogtreecommitdiffstats
path: root/patches/libcgi-1.0/generic/libcgi-1.0-debianpatches.diff
blob: e7e92f470a6594236f72a35f05c4f9d7c1b984fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
--- libcgi-1.0.orig/debian/changelog
+++ libcgi-1.0/debian/changelog
@@ -0,0 +1,45 @@
+libcgi (1.0-5) unstable; urgency=low
+
+  * removed man page 'todo.3.gz', it was useless anyway
+    (closes: #274776)
+  * moved include files from /usr/include to /usr/include/libcgi/
+    (closes: #274796)
+
+ -- Oliver Kurth <oku@debian.org>  Sun, 17 Oct 2004 15:11:11 -0700
+
+libcgi (1.0-4) unstable; urgency=low
+
+  * fixed a typo bug in hex encoding code, thanks to Ralph Giles
+    (closes: #271042)
+
+ -- Oliver Kurth <oku@debian.org>  Mon, 13 Sep 2004 13:44:55 -0700
+
+libcgi (1.0-3) unstable; urgency=low
+
+  * changed section for -dev to libdevel (from devel)
+  * made GPL-2 more clear in debian/copyright
+  * upstream got patch wrong in string.c (va_copy)
+
+ -- Oliver Kurth <oku@debian.org>  Tue, 03 Feb 2004 22:18:28 +0100
+
+libcgi (1.0-2) unstable; urgency=low
+
+  * use -fPIC for shared version, no -fPIC for static version
+    (closes: #230953)
+  * use -D_REENTRANT, after reading the policy manual (10.2)
+
+ -- Oliver Kurth <oku@debian.org>  Tue, 03 Feb 2004 22:18:28 +0100
+
+libcgi (1.0-1) unstable; urgency=low
+
+  * new upstream.
+  * first version for Debian. (Closes: #226862)
+
+ -- Oliver Kurth <oku@debian.org>  Thu, 08 Jan 2004 14:57:46 +0100
+
+libcgi (0.8.2-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Oliver Kurth <oku@debian.org>  Thu, 30 Oct 2003 21:23:19 +0100
+
--- libcgi-1.0.orig/debian/compat
+++ libcgi-1.0/debian/compat
@@ -0,0 +1 @@
+4
--- libcgi-1.0.orig/debian/control
+++ libcgi-1.0/debian/control
@@ -0,0 +1,43 @@
+Source: libcgi
+Priority: optional
+Section: libs
+Maintainer: Oliver Kurth <oku@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: libcgi-dev
+Section: libdevel
+Architecture: any
+Depends: libcgi0 (= ${Source-Version})
+Suggests: libcgi-doc
+Description: library for CGI programs in C
+ libcgi is a library for CGI programs written in C. It includes a lot
+ of functions like string manipulation, session and cookie support, GET
+ and POST methods manipulation etc. to help you to quickly write
+ powerful CGI programs.
+ .
+ This package contains the header files and the static
+ version of the library.
+
+Package: libcgi0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: library for CGI programs in C
+ libcgi is a library for CGI programs written in C. It includes a lot
+ of functions like string manipulation, session and cookie support, GET
+ and POST methods manipulation etc. to help you to quickly write
+ powerful CGI programs.
+
+Package: libcgi-doc
+Section: doc
+Architecture: all
+Depends: lynx | www-browser
+Description: documentation for libcgi in html
+ libcgi is a library for CGI programs written in C. It includes a lot
+ of functions like string manipulation, session and cookie support, GET
+ and POST methods manipulation etc. to help you to quickly write
+ powerful CGI programs.
+ .
+ This package contains the doc in html format and examples
+ in C source format in /usr/share/doc/libcgi-doc/.
--- libcgi-1.0.orig/debian/copyright
+++ libcgi-1.0/debian/copyright
@@ -0,0 +1,17 @@
+This package was debianized by Oliver Kurth <oku@debian.org> on
+Thu, 30 Oct 2003 21:23:19 +0100.
+
+It was downloaded from http://libcgi.sourceforge.net/
+
+Upstream Author: Rafael Steil <rafael@insanecorp.com>
+
+Copyright:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+  On Debian systems, the complete text of the GNU General Public 2
+  License can be found in /usr/share/common-licenses/GPL-2 file.
+
--- libcgi-1.0.orig/debian/dirs
+++ libcgi-1.0/debian/dirs
@@ -0,0 +1,3 @@
+usr/lib
+usr/include/libcgi
+
--- libcgi-1.0.orig/debian/docs
+++ libcgi-1.0/debian/docs
@@ -0,0 +1,3 @@
+BUGS
+README
+TODO
--- libcgi-1.0.orig/debian/libcgi0.dirs
+++ libcgi-1.0/debian/libcgi0.dirs
@@ -0,0 +1 @@
+usr/lib
--- libcgi-1.0.orig/debian/libcgi0.install
+++ libcgi-1.0/debian/libcgi0.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- libcgi-1.0.orig/debian/libcgi-dev.dirs
+++ libcgi-1.0/debian/libcgi-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
--- libcgi-1.0.orig/debian/libcgi-dev.install
+++ libcgi-1.0/debian/libcgi-dev.install
@@ -0,0 +1,5 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/*.la
--- libcgi-1.0.orig/debian/rules
+++ libcgi-1.0/debian/rules
@@ -0,0 +1,119 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+# shared library versions, option 1
+version=0.0.1
+major=0
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+config.status: configure
+	dh_testdir
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man
+
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	rm -f config.status
+	rm -f config.log config.cache
+	find examples -name Makefile.am -exec rm {} \;
+
+	-$(MAKE) clean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	mkdir -p debian/tmp/{usr/lib,usr/include}
+
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp/ install
+	(cd debian/tmp/usr/lib; \
+		mv libcgi.so libcgi.so.0.0.0;\
+		ln -s libcgi.so.0.0.0 libcgi.so.0;\
+		ln -s libcgi.so.0.0.0 libcgi.so)
+
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs  -i ChangeLog
+	dh_installdocs -i -plibcgi-doc doc/html/
+	dh_installexamples -i -plibcgi-doc examples/*
+	dh_link -i
+	dh_strip -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_makeshlibs -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a ChangeLog
+	dh_installdocs -a
+	dh_install -a --sourcedir=debian/tmp
+	dh_installman -a -plibcgi-dev doc/man/man3/*
+	rm -f $(CURDIR)/debian/libcgi-dev/usr/share/man/man3/todo*
+	dh_link -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install