~ubuntu-branches/ubuntu/lucid/curl/lucid-security

4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
1
#! /usr/bin/make -f
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
2
3
# Uncomment this to turn on verbose mode.
4
#export DH_VERBOSE=1
5
6
# This has to be exported to make some magic below work.
7
export DH_OPTIONS
8
12 by Matthias Klose
* Merge with Debian; remaining changes:
9
# These are locations of quilt stuff
10
export QUILT_PATCHES=$(shell pwd)/debian/patches
11
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
12
# These are used for cross-compiling and for saving the configure script
13
# from having to guess our platform (since we know it already)
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
14
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
15
DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
16
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
17
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
18
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
19
# set the number of build jobs
20
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21
    JOBS:=-j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22
endif
23
24
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
25
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --with-random=/dev/urandom
26
else
27
CROSS= --build $(DEB_BUILD_GNU_TYPE)
28
endif
29
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
30
DO_TEST=no
31
ifeq (${DEB_BUILD_GNU_TYPE},${DEB_HOST_GNU_TYPE})
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
32
ifneq (${DEB_BUILD_ARCH},m68k)
33
ifneq (${DEB_BUILD_ARCH_OS},kfreebsd)
34
ifneq (${DEB_BUILD_ARCH_OS},knetbsd)
22 by Matthias Klose
* Merge with Debian; remaining changes:
35
ifneq (${DEB_BUILD_ARCH_OS},hurd)
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
36
DO_TEST=yes
37
endif
38
endif
39
endif
40
endif
22 by Matthias Klose
* Merge with Debian; remaining changes:
41
endif
3.1.1 by Andreas Schuldei
/usr/lib/pkgconfig/libcurl.pc: "pkg-config --libs libcurl" returns
42
12 by Matthias Klose
* Merge with Debian; remaining changes:
43
SHLIBS_VERSION=7.16.2-1
3.1.1 by Andreas Schuldei
/usr/lib/pkgconfig/libcurl.pc: "pkg-config --libs libcurl" returns
44
45
# this will catch miss-linking. (e.g. undefined symbols)
46
LDFLAGS = -Wl,-z,defs
47
3.2.1 by Andreas Schuldei
Fix "Please add support for ldap/ldaps protocols"
48
CONFIGURE_ARGS = $(CROSS) --prefix=/usr --mandir=/usr/share/man --disable-dependency-tracking --enable-ipv6 --enable-ldaps --with-lber-lib=lber --enable-manual --enable-versioned-symbols 
3.1.2 by Andreas Schuldei
disable c-ares support again, no fix yet, just get stuff working again.
49
# this is still not ready
50
# --enable-ares
3.1.1 by Andreas Schuldei
/usr/lib/pkgconfig/libcurl.pc: "pkg-config --libs libcurl" returns
51
# this fixes the ldap warning of dpkg-shlibdebs, but we dont want that.
52
# --with-ldap-lib=/usr/lib/libldap_r.so 
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
53
54
ifneq (${DEB_BUILD_ARCH_OS},hurd)
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
55
CONFIGURE_ARGS += --with-gssapi=/usr
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
56
endif
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
57
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
58
build: build-stamp
59
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
60
#configure-stamp: DH_OPTIONS=
61
configure-stamp:
62
	dh_testdir
14 by Steve Kowalik
* Merge from Debian unstable
63
	mkdir -p debian/build debian/build-gnutls
12 by Matthias Klose
* Merge with Debian; remaining changes:
64
3.3.3 by Domenico Andreoli
* New upstream release:
65
	quilt push -a
66
67
	# pop the last patch which must be gnutls
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
68
	quilt pop
69
	tar -cf - --exclude=debian --exclude=.pc . | tar -xf - -C debian/build
12 by Matthias Klose
* Merge with Debian; remaining changes:
70
3.3.3 by Domenico Andreoli
* New upstream release:
71
	# push the last patch which must be gnutls
72
	quilt push
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
73
	tar -cf - --exclude=debian --exclude=.pc . | tar -xf - -C debian/build-gnutls
12 by Matthias Klose
* Merge with Debian; remaining changes:
74
14 by Steve Kowalik
* Merge from Debian unstable
75
	for flavour in build build-gnutls; do \
3.2.3 by Andreas Schuldei
* New upstream release
76
		(cd debian/$$flavour && libtoolize --automake --copy --force && aclocal-1.9 -I m4 && automake-1.9 && autoconf) \
12 by Matthias Klose
* Merge with Debian; remaining changes:
77
	done
78
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
79
	cd debian/build && ./configure ${CONFIGURE_ARGS} --with-ca-path=/etc/ssl/certs
80
	cd debian/build-gnutls && ./configure ${CONFIGURE_ARGS} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --without-ssl --with-gnutls --without-libssh2
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
81
	touch configure-stamp
82
83
#build-stamp: DH_OPTIONS=
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
84
build-stamp: configure-stamp
85
	dh_testdir
28 by Michael Vogt
* Merge from debian unstable, remaining changes:
86
	${MAKE} $(JOBS) -C debian/build
87
	${MAKE} $(JOBS) -C debian/build-gnutls
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
88
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
89
ifeq (${DO_TEST},yes)
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
90
	-${MAKE} -C debian/build test
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
91
	-${MAKE} -C debian/build-gnutls test
4 by LaMont Jones
Fix the version numbers internal to debian/rules. Closes; #8088
92
endif
22 by Matthias Klose
* Merge with Debian; remaining changes:
93
94
	touch build-stamp
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
95
96
clean:
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
97
	dh_testdir
98
	dh_testroot
12 by Matthias Klose
* Merge with Debian; remaining changes:
99
	-quilt pop -a
22 by Matthias Klose
* Merge with Debian; remaining changes:
100
	rm -rf build-stamp configure-stamp debian/build debian/build-gnutls debian/tmp-gnutls
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
101
	dh_clean debian/shlibs.local
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
102
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
103
#install: DH_OPTIONS=
22 by Matthias Klose
* Merge with Debian; remaining changes:
104
install: build-stamp
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
105
	dh_testdir
106
	dh_testroot
107
	dh_clean -k
108
	dh_installdirs
12 by Matthias Klose
* Merge with Debian; remaining changes:
109
	${MAKE} -C debian/build DESTDIR=$(shell pwd)/debian/tmp install
110
	${MAKE} -C debian/build-gnutls DESTDIR=$(shell pwd)/debian/tmp-gnutls install
14 by Steve Kowalik
* Merge from Debian unstable
111
	dh_install -plibcurl3-gnutls -plibcurl4-gnutls-dev --sourcedir=debian/tmp-gnutls
112
	dh_install -Nlibcurl3-gnutls -Nlibcurl4-gnutls-dev --sourcedir=debian/tmp
113
	install -m 644 debian/libcurl3-gnutls.lintian-overrides debian/libcurl3-gnutls/usr/share/lintian/overrides/libcurl3-gnutls
114
	install -m 644 debian/libcurl3.lintian-overrides debian/libcurl3/usr/share/lintian/overrides/libcurl3
3.1.1 by Andreas Schuldei
/usr/lib/pkgconfig/libcurl.pc: "pkg-config --libs libcurl" returns
115
	for i in `find debian/lib* -name "lib*.la"`; do echo "removing dependency_libs from $$i"; sed -i -e "/dependency_libs/ s/'.*'/''/" $$i; done
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
116
117
# Build architecture-independent files here.
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
118
#binary-indep: DH_OPTIONS=-i
119
binary-indep: build-stamp install
120
# We have nothing to do here.
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
121
122
# Build architecture-dependent files here.
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
123
#binary-arch: DH_OPTIONS=-a
124
binary-arch: build-stamp install
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
125
	dh_testdir
126
	dh_testroot
127
	dh_installdocs
14 by Steve Kowalik
* Merge from Debian unstable
128
	for package in libcurl4-openssl-dev libcurl4-gnutls-dev; do \
6 by Martin Pitt
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
129
		install -m 644 docs/libcurl/libcurl.m4 debian/$${package}/usr/share/aclocal; \
130
		for doc_ext in html pdf; do \
131
			install -m 644 docs/*.$${doc_ext} debian/$${package}/usr/share/doc/$${package}/$${doc_ext}; \
132
			install -m 644 docs/libcurl/*.$${doc_ext} debian/$${package}/usr/share/doc/$${package}/$${doc_ext}/libcurl; \
133
		done; \
134
	done
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
135
	dh_installman
136
	dh_installexamples
5 by Matthias Klose
Synchronize with Debian.
137
	dh_installchangelogs CHANGES
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
138
	dh_link
14 by Steve Kowalik
* Merge from Debian unstable
139
	dh_strip -Nlibcurl3 -Nlibcurl3-gnutls
140
	dh_strip -plibcurl3 -plibcurl3-gnutls --dbg-package=libcurl3-dbg
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
141
	dh_compress
142
	dh_fixperms
14 by Steve Kowalik
* Merge from Debian unstable
143
	echo "libcurl 4 libcurl3 (>= $(SHLIBS_VERSION))" > debian/shlibs.local
144
	dh_makeshlibs -plibcurl3 -V "libcurl3 (>= $(SHLIBS_VERSION))"
145
	dh_makeshlibs -plibcurl3-gnutls -V "libcurl3-gnutls (>= $(SHLIBS_VERSION))"
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
146
	dh_installdeb
147
	dh_shlibdeps
148
	dh_md5sums
5 by Matthias Klose
Synchronize with Debian.
149
	dh_gencontrol
2 by Domenico Andreoli
* New upstream version (Closes: #134608).
150
	dh_builddeb
151
152
binary: binary-indep binary-arch
153
3 by Domenico Andreoli
* Reverted to version 7.11.2 (closes: #252348).
154
.PHONY: binary binary-arch binary-indep build clean install