~ubuntu-branches/ubuntu/edgy/curl/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-07-26 19:03:01 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20050726190301-x2m2vmjgc8fwnic5
Tags: 7.14.0-2ubuntu1
Synchronize with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
CONFIGURE_ARGS = --host=${DEB_HOST_GNU_TYPE} --build=${DEB_BUILD_GNU_TYPE} --prefix=/usr --mandir=/usr/share/man --disable-dependency-tracking --enable-ipv6 --enable-manual
38
38
 
39
 
 
40
 
make_patch:
41
 
        dh_testdir
42
 
 
43
 
        rm -rf debian/curl-current
44
 
        mkdir debian/curl-current
45
 
        tar -c --exclude=debian --exclude=CVS . | (cd debian/curl-current; tar -x)
46
 
        cd debian && tar -zxf curl_7.11.2.orig.tar.gz
47
 
        cd debian/curl-current && ../update_autotools
48
 
        cd debian && find curl-current curl-7.11.2 -name \*.pdf | xargs rm -rf
49
 
        cd debian && find curl-current curl-7.11.2 -name autom4te.cache | xargs rm -rf
50
 
 
51
 
        @echo "making debian/to-curl-7.11.2.diff..."
52
 
        @cd debian && diff -urN curl-current curl-7.11.2 > to-curl-7.11.2.diff; true
53
 
 
54
 
        rm -rf debian/curl-current debian/curl-7.11.2
55
 
        @echo ""
56
 
        @echo "remember to fix getdate.y and getdate.c order in to-curl-7.11.2.diff!"
57
 
 
58
39
build: build-stamp
59
40
 
60
41
#configure-stamp: DH_OPTIONS=
61
42
configure-stamp:
62
43
        dh_testdir
63
 
 
64
 
        mkdir -p debian/curl-7.11.2 debian/build-7.11.2
65
 
        tar -c --exclude=debian . | (cd debian/curl-7.11.2; tar -x)
66
 
        cat debian/to-curl-7.11.2.diff | (cd debian/curl-7.11.2; patch -p1)
67
 
        cp -p /usr/share/misc/config.* debian/curl-7.11.2/
68
 
        cp debian/configure-7.11.2 debian/curl-7.11.2/configure
69
 
        cd debian/build-7.11.2 && ../curl-7.11.2/configure ${CONFIGURE_ARGS} --with-ca-bundle=/usr/share/curl/curl-ca-bundle-7.11.2.crt
70
 
 
71
44
        mkdir -p debian/build
72
45
        cd debian/build && ../../configure ${CONFIGURE_ARGS}
73
46
 
82
55
build-stamp: configure-stamp
83
56
        dh_testdir
84
57
        ${MAKE} -C debian/build
85
 
        ${MAKE} -C debian/build-7.11.2
86
58
 
87
59
ifeq (${DO_GSSAPI},yes)
88
60
        ${MAKE} -C debian/build-gssapi
94
66
        dh_testdir
95
67
ifeq (${DO_TEST},yes)
96
68
        -${MAKE} -C debian/build test
97
 
        -${MAKE} -C debian/build-7.11.2 test
98
69
 
99
70
ifeq (${DO_GSSAPI},yes)
100
71
        -${MAKE} -C debian/build-gssapi test
106
77
        dh_testdir
107
78
        dh_testroot
108
79
        rm -rf test-stamp build-stamp configure-stamp debian/build
109
 
        rm -rf debian/curl-7.11.2 debian/build-7.11.2 debian/tmp-7.11.2
110
80
 
111
81
ifeq (${DO_GSSAPI},yes)
112
82
        rm -rf debian/build-gssapi debian/tmp-gssapi
121
91
        dh_clean -k
122
92
        dh_installdirs
123
93
        ${MAKE} -C debian/build DESTDIR=`pwd`/debian/tmp install
124
 
        ${MAKE} -C debian/build-7.11.2 DESTDIR=`pwd`/debian/tmp-7.11.2 install
125
94
 
126
95
ifeq (${DO_GSSAPI},yes)
127
96
        ${MAKE} -C debian/build-gssapi DESTDIR=`pwd`/debian/tmp-gssapi install
128
97
endif
129
98
 
130
 
        dh_movefiles -Nlibcurl2 -Nlibcurl2-dev
131
 
        dh_movefiles -plibcurl2 -plibcurl2-dev --sourcedir=debian/tmp-7.11.2
 
99
        dh_movefiles
132
100
 
133
101
ifeq (${DO_GSSAPI},yes)
134
102
        cp -d debian/tmp-gssapi/usr/lib/$(libname) debian/libcurl3-gssapi/usr/lib/$(libname).gssapi
153
121
        install -m 644 docs/libcurl/*.html debian/libcurl3-dev/usr/share/doc/libcurl3-dev/html/libcurl
154
122
        install -m 644 docs/*.pdf debian/libcurl3-dev/usr/share/doc/libcurl3-dev/pdf
155
123
        install -m 644 docs/libcurl/*.pdf debian/libcurl3-dev/usr/share/doc/libcurl3-dev/pdf/libcurl
156
 
        install -m 644 debian/curl-7.11.2/docs/*.html debian/libcurl2-dev/usr/share/doc/libcurl2-dev/html
157
 
        install -m 644 debian/curl-7.11.2/docs/libcurl/*.html debian/libcurl2-dev/usr/share/doc/libcurl2-dev/html/libcurl
158
124
        dh_installman
159
125
        dh_installexamples
160
 
 
161
 
        dh_installchangelogs -Nlibcurl2 -Nlibcurl2-dev CHANGES
162
 
        dh_installchangelogs -plibcurl2 -plibcurl2-dev debian/curl-7.11.2/CHANGES
163
 
 
 
126
        dh_installchangelogs CHANGES
164
127
        dh_link
165
128
        dh_strip --dbg-package=libcurl3
166
129
        dh_compress
167
130
        dh_fixperms
168
 
        dh_makeshlibs -plibcurl3 -V "libcurl3 (>= 7.12.3-1)"
169
 
        dh_makeshlibs -plibcurl2 -V "libcurl2 (>= 7.11.2-1)"
 
131
        dh_makeshlibs -plibcurl3 -V "libcurl3 (>= 7.13.1-1)"
170
132
        dh_installdeb
171
133
        dh_shlibdeps
172
 
        dh_gencontrol -Nlibcurl2 -Nlibcurl2-dev
173
 
        dh_gencontrol -plibcurl2 -plibcurl2-dev -- -v"1:7.11.2-12ubuntu3" -V"cavok:Binary-Version=1:7.11.2-12ubuntu3"
174
134
        dh_md5sums
 
135
 
 
136
ifeq (${DO_GSSAPI},yes)
 
137
        dh_gencontrol
175
138
        dh_builddeb
 
139
else
 
140
        dh_gencontrol -Nlibcurl3-gssapi
 
141
        dh_builddeb -Nlibcurl3-gssapi
 
142
endif
176
143
 
177
144
binary: binary-indep binary-arch
178
145