~ubuntu-branches/ubuntu/maverick/libcgi-ssi-perl/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Tim Retout, Damyan Ivanov, gregor herrmann, Tim Retout
  • Date: 2009-08-08 17:14:02 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090808171402-m4oxtgstmji79z1j
Tags: 0.92-2
[ Damyan Ivanov ]
* Take over for the Debian Perl Group on maintainer's request
  (http://lists.debian.org/debian-perl/2008/09/msg00111.html)

[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza).
* debian/control: Added: ${misc:Depends} to Depends: field.
* debian/control: Added: Homepage field (source stanza).
* debian/control: Changed: Maintainer set to Debian Perl Group <pkg-
  perl-maintainers@lists.alioth.debian.org> (was: Piotr Roszatycki
  <dexter@debian.org>); Piotr Roszatycki <dexter@debian.org> moved to
  Uploaders.
* debian/control: make short description a noun phrase.
* debian/watch: use dist-based URL.

[ Tim Retout ]
* Use short format dh7/quilt rules file.  Remove old yada files.
* Add quilt series file, debhelper compat file and README.source.
* debian/control:
  + Remove yada from Build-Depends.
  + B-D-I: Remove version from perl, remove perl-modules and tofrodos.
  + Add debhelper/quilt to Build-Depends.
  + Depends: Replace ${libcgi-ssi-perl:Depends} with ${perl:Depends},
    remove perl-modules.
  + Bump Standards-Version to 3.8.2.
  + Add self to Uploaders.
* debian/copyright: Add new copyright file.
* Add author/description headers to debian patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Generated automatically from debian/packages
3
 
# by yada v0.53, of Fri,  4 May 2007
4
 
 
5
 
DEB_HOST_ARCH        := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null)
6
 
DEB_HOST_ARCH_OS     := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
7
 
DEB_HOST_ARCH_CPU    := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
8
 
DEB_HOST_GNU_CPU     := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU 2>/dev/null)
9
 
DEB_HOST_GNU_TYPE    := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE 2>/dev/null)
10
 
DEB_HOST_GNU_SYSTEM  := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM 2>/dev/null)
11
 
 
12
 
DEB_BUILD_ARCH       := $(shell dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null)
13
 
DEB_BUILD_ARCH_OS    := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS 2>/dev/null)
14
 
DEB_BUILD_ARCH_CPU   := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null)
15
 
DEB_BUILD_GNU_CPU    := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU 2>/dev/null)
16
 
DEB_BUILD_GNU_TYPE   := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE 2>/dev/null)
17
 
DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM 2>/dev/null)
18
 
 
19
 
# Take account of old dpkg-architecture output.
20
 
ifeq ($(DEB_HOST_ARCH_CPU),)
21
 
  DEB_HOST_ARCH_CPU := $(DEB_HOST_GNU_CPU))
22
 
  ifeq ($(DEB_HOST_ARCH_CPU),i486)
23
 
    DEB_HOST_ARCH_OS := i386
24
 
  else
25
 
  ifeq ($(DEB_HOST_ARCH_CPU),x86_64)
26
 
    DEB_HOST_ARCH_OS := amd64
27
 
  endif
28
 
  endif
29
 
endif
30
 
ifeq ($(DEB_HOST_ARCH_OS),)
31
 
  DEB_HOST_ARCH_OS := $(subst -gnu,,$(DEB_HOST_GNU_SYSTEM))
32
 
  ifeq ($(DEB_HOST_ARCH_OS),gnu)
33
 
    DEB_HOST_ARCH_OS := hurd
34
 
  endif
35
 
endif
36
 
ifeq ($(DEB_BUILD_ARCH_CPU),)
37
 
  DEB_BUILD_ARCH_CPU := $(DEB_BUILD_GNU_CPU))
38
 
  ifeq ($(DEB_BUILD_ARCH_CPU),i486)
39
 
    DEB_BUILD_ARCH_OS := i386
40
 
  else
41
 
  ifeq ($(DEB_BUILD_ARCH_CPU),x86_64)
42
 
    DEB_BUILD_ARCH_OS := amd64
43
 
  endif
44
 
  endif
45
 
endif
46
 
ifeq ($(DEB_BUILD_ARCH_OS),)
47
 
  DEB_BUILD_ARCH_OS := $(subst -gnu,,$(DEB_BUILD_GNU_SYSTEM))
48
 
  ifeq ($(DEB_BUILD_ARCH_OS),gnu)
49
 
    DEB_BUILD_ARCH_OS := hurd
50
 
  endif
51
 
endif
52
 
 
53
 
LEFT_PARENTHESIS:=(
54
 
VERSION:=$(shell head -n1 debian/changelog | sed -e "s/^[0-9a-zA-Z.-]* $(LEFT_PARENTHESIS)//" -e "s/[^0-9a-zA-Z.:+~-].*//")
55
 
 
56
 
SHELL=/bin/bash
57
 
 
58
 
.PHONY: default
59
 
default:
60
 
        @echo "Specify a target:"; \
61
 
        echo " build              compile the package"; \
62
 
        echo " build-arch         compile the architecture-dependent package"; \
63
 
        echo " build-indep        compile the architecture-independent package"; \
64
 
        echo " binary             make all binary packages"; \
65
 
        echo " binary-arch        make all architecture-dependent binary packages"; \
66
 
        echo " binary-indep       make all architecture-independent binary packages"; \
67
 
        echo " clean              clean up the source package"; \
68
 
        echo; \
69
 
        echo " clean-install-tree clean up only under debian/"; \
70
 
        echo
71
 
 
72
 
# Build the package and prepare the install tree
73
 
 
74
 
.PHONY: build-only build
75
 
build-only: debian/build-stamp
76
 
build: build-only
77
 
 
78
 
.PHONY: build-arch-only build-arch
79
 
build-arch-only: debian/build-arch-stamp
80
 
build-arch: build-arch-only
81
 
 
82
 
.PHONY: build-indep-only build-indep
83
 
build-indep-only: debian/build-indep-stamp
84
 
build-indep: build-indep-only
85
 
 
86
 
# Make sure these rules and the control file are up-to-date
87
 
 
88
 
.PHONY: rules control templates
89
 
rules: debian/rules
90
 
debian/rules: $(shell which yada) debian/packages-tmp
91
 
        yada rebuild rules
92
 
 
93
 
control: debian/control
94
 
debian/control: $(shell which yada) debian/packages-tmp
95
 
        yada rebuild control
96
 
 
97
 
templates: debian/templates debian/po/POTFILES.in
98
 
debian/templates: $(shell which yada) debian/packages-tmp
99
 
        yada rebuild templates
100
 
debian/po/POTFILES.in: $(shell which yada) debian/packages-tmp
101
 
        yada rebuild templates
102
 
 
103
 
debian/build-stamp: debian/build-arch-stamp debian/build-indep-stamp
104
 
        @[ -f $(shell which yada) -a -f debian/rules ]
105
 
        yada patch "debian/patches/*.patch"
106
 
        @umask 022 \
107
 
          && export pwd="$$(pwd)" \
108
 
          && export TMPROOT="$$(pwd)/debian/tmp" \
109
 
          && export SOURCE="libcgi-ssi-perl" \
110
 
          && export VERSION="$(VERSION)" \
111
 
          && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
112
 
          && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
113
 
          && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
114
 
          && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
115
 
          && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
116
 
          && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
117
 
        echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
118
 
        echo -E 'PERL=$${PERL:-/usr/bin/perl}';\
119
 
        echo -E '$$PERL Makefile.PL INSTALLDIRS=vendor';\
120
 
        echo -E 'make';\
121
 
        echo -E 'find blib -name '\''*.pm'\'' -print0 | xargs -0 fromdos -v -f';\
122
 
        echo -E 'find blib -name '\''*.pm'\'' -print0 | xargs -0 chmod -v -x';\
123
 
        echo -E 'make test') | /bin/sh
124
 
        touch debian/build-stamp
125
 
 
126
 
debian/build-arch-stamp:
127
 
        @[ -f $(shell which yada) -a -f debian/rules ]
128
 
        yada patch "debian/patches/*.patch"
129
 
        touch debian/build-arch-stamp
130
 
 
131
 
debian/build-indep-stamp: debian/build-arch-stamp
132
 
        @[ -f $(shell which yada) -a -f debian/rules ]
133
 
        yada patch "debian/patches/*.patch"
134
 
        touch debian/build-indep-stamp
135
 
 
136
 
.PHONY: install-tree
137
 
install-tree: install-tree-any
138
 
install-tree-any: \
139
 
        debian/tmp-libcgi-ssi-perl/DEBIAN/control
140
 
 
141
 
debian/tmp-libcgi-ssi-perl/DEBIAN/control: debian/build-stamp debian/control
142
 
        rm -rf debian/tmp-libcgi-ssi-perl
143
 
        umask 022 && install -d debian/tmp-libcgi-ssi-perl/DEBIAN
144
 
        install -d debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl
145
 
        umask 022; yada generate copyright \
146
 
          > debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl/copyright
147
 
        install -m 644 -p debian/changelog \
148
 
          debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl/changelog.Debian
149
 
        @umask 022 \
150
 
          && export pwd="$$(pwd)" \
151
 
          && export ROOT="$$(pwd)/debian/tmp-libcgi-ssi-perl" \
152
 
          && export TMPROOT="$$(pwd)/debian/tmp" \
153
 
          && export CONTROL="$$(pwd)/debian/tmp-libcgi-ssi-perl/DEBIAN" \
154
 
          && export PACKAGE="libcgi-ssi-perl" \
155
 
          && export SOURCE="libcgi-ssi-perl" \
156
 
          && export VERSION="$(VERSION)" \
157
 
          && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
158
 
          && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
159
 
          && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
160
 
          && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
161
 
          && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
162
 
          && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
163
 
        echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
164
 
        echo -E 'PERL=$${PERL:-/usr/bin/perl}';\
165
 
        echo -E 'make install PREFIX=$$ROOT/usr';\
166
 
        echo -E 'yada install -doc README';\
167
 
        echo -E 'yada install -doc -as changelog Changes') | /bin/sh
168
 
        @umask 022 \
169
 
          && export pwd="$$(pwd)" \
170
 
          && export ROOT="$$(pwd)/debian/tmp-libcgi-ssi-perl" \
171
 
          && export TMPROOT="$$(pwd)/debian/tmp" \
172
 
          && export CONTROL="$$(pwd)/debian/tmp-libcgi-ssi-perl/DEBIAN" \
173
 
          && export PACKAGE="libcgi-ssi-perl" \
174
 
          && export SOURCE="libcgi-ssi-perl" \
175
 
          && export VERSION="$(VERSION)" && (\
176
 
        echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
177
 
        echo -E 'yada perl';\
178
 
        echo -E 'yada python';\
179
 
        echo -E 'yada strip';\
180
 
        echo -E 'yada shlibdeps') | /bin/sh
181
 
        yada compress libcgi-ssi-perl
182
 
        yada generate maintscripts libcgi-ssi-perl
183
 
        find debian/tmp-libcgi-ssi-perl -type f -print \
184
 
          | sed -n 's/^debian\/tmp-libcgi-ssi-perl\(\/etc\/.*\)$$/\1/p' \
185
 
          > debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles
186
 
        test -s debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles || rm -f debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles
187
 
        yada rebuild control
188
 
        yada generate substvars libcgi-ssi-perl
189
 
        umask 022 && dpkg-gencontrol -isp -plibcgi-ssi-perl -Pdebian/tmp-libcgi-ssi-perl
190
 
 
191
 
# Build package files
192
 
 
193
 
.PHONY: binary binary-arch binary-indep
194
 
binary: binary-arch binary-indep
195
 
binary-arch: binary-arch-any
196
 
 
197
 
.PHONY: binary-arch-any
198
 
binary-arch-any:
199
 
binary-indep: \
200
 
        binary-package-libcgi-ssi-perl
201
 
 
202
 
.PHONY: binary-package-libcgi-ssi-perl
203
 
binary-package-libcgi-ssi-perl: check-root debian/tmp-libcgi-ssi-perl/DEBIAN/control
204
 
        @[ -f $(shell which yada) -a -f debian/rules ]
205
 
        chown -R 0.0 debian/tmp-libcgi-ssi-perl
206
 
        chmod -R u=rwX,go=rX debian/tmp-libcgi-ssi-perl
207
 
        @if [ -d debian/tmp-libcgi-ssi-perl/usr/doc/libcgi-ssi-perl ]; then \
208
 
          echo "*** Yada warning: /usr/doc/libcgi-ssi-perl should be /usr/share/doc/libcgi-ssi-perl";\
209
 
        fi
210
 
        dpkg-deb --build debian/tmp-libcgi-ssi-perl ..
211
 
 
212
 
.PHONY: check-root
213
 
check-root:
214
 
        @[ `id -u` = 0 ] || (echo "You must be root to do this!"; false)
215
 
 
216
 
debian/packages-tmp: debian/packages 
217
 
        yada rebuild packages
218
 
 
219
 
## Clean up afterwards
220
 
 
221
 
.PHONY: clean clean-install-tree clean-build
222
 
 
223
 
clean: clean-install-tree clean-build debian/control debian/rules
224
 
        rm -f debian/packages-tmp debian/packages-tmp-new debian/packages-tmp-include
225
 
 
226
 
clean-build:
227
 
        @[ -f $(shell which yada) -a -f debian/rules ]
228
 
        rm -f debian/build-stamp debian/build-arch-stamp debian/build-indep-stamp
229
 
        @umask 022 \
230
 
          && export pwd="$$(pwd)" \
231
 
          && export TMPROOT="$$(pwd)/debian/tmp" \
232
 
          && export SOURCE="libcgi-ssi-perl" \
233
 
          && export VERSION="$(VERSION)" \
234
 
          && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
235
 
          && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
236
 
          && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
237
 
          && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
238
 
          && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
239
 
          && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
240
 
        echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
241
 
        echo -E 'test -f Makefile && touch Makefile && make distclean || true') | /bin/sh
242
 
        yada unpatch
243
 
        rm -rf debian/tmp
244
 
 
245
 
clean-install-tree: debian/rules
246
 
        @[ -f $(shell which yada) -a -f debian/rules ]
247
 
        rm -f debian/install-tree-stamp
248
 
        rm -rf debian/tmp-* debian/files* debian/substvars debian/shlibs.local debian/ucf
 
2
 
 
3
%:
 
4
        dh --with quilt $@