~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-fix-325288

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Putzo
  • Date: 2008-08-31 17:40:05 UTC
  • mfrom: (1.1.3 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080831174005-0lobl48wa8zognfh
Tags: 2.10~pre4-6.dfsg-1
* Added .dfsg to version to allow a sourceful upload
  that really removes files with unknown or incompatible
  licenses (gpsfetchmap.pl, map-icons/japan, map-icons/nickw) 
  from the upstream tarball, generated using the get-orig-source
  target in debian/rules. (Closes: #497115)
* Fixed spelling error in short description of the gpsdrive-data package.
  (Closes: #494657)
* Added patch 100-fix-insecure-tempfiles.dpatch that uses mktemp 
  in geo-code to avoid symlink attacks. Thanks Moritz Muehlenhoff for
  the patch. (Closes: #496436)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
11
DEB_VERSION := $(shell dpkg-parsechangelog |egrep  '^Version:' | cut -f 2 -d ' ')
12
12
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
13
 
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
14
 
UPSTREAM_VERSION := $(strip $(shell (echo $(DEB_UPSTREAM_VERSION)|sed 's/~//')))
 
13
DEB_UPSTREAM_VERSION := 2.10~pre4-6.dfsg
 
14
UPSTREAM_VERSION := 2.10pre4
15
15
DESTDIR  := ${CURDIR}/debian/tmp
16
16
MAPNIK_PATH = $(shell mapnik-plugin-base)
17
17
 
18
18
CFLAGS = -Wall -g
19
19
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20
20
        CFLAGS += -O0
21
 
else    
 
21
else
22
22
        CFLAGS += -O2
23
23
endif
24
24
 
32
32
        tar xzf ../tarballs/gpsdrive-${UPSTREAM_VERSION}.tar.gz -C ../tarballs/
33
33
        @echo Removing upstream debian/ dir
34
34
        rm -rf ../tarballs/gpsdrive-${UPSTREAM_VERSION}/debian/
35
 
        @echo Remove gpsfetchmap.pl script. 
 
35
        @echo Remove gpsfetchmap.pl script.
36
36
        rm -f ../tarballs/gpsdrive-${UPSTREAM_VERSION}/scripts/gpsfetchmap.pl
37
37
        @echo Removing icons.
38
38
        rm -rf ../tarballs/gpsdrive-${UPSTREAM_VERSION}/data/map-icons/japan/
54
54
                                --enable-dbus \
55
55
                                CFLAGS="$(CFLAGS)"
56
56
 
57
 
                                
58
57
build: build-arch build-indep
59
58
 
60
59
build-arch: config.status build-arch-stamp
67
66
build-indep-stamp:
68
67
        touch $@
69
68
        
70
 
clean: clean-patched unpatch    
 
69
clean: clean-patched unpatch
71
70
 
72
71
clean-patched:
73
72
        dh_testdir
83
82
        dh_clean
84
83
 
85
84
install: install-arch install-indep
 
85
        dh_clean -k
86
86
 
87
87
install-arch: build-arch
88
88
        dh_testdir
89
89
        dh_testroot
90
 
        dh_clean -k
91
90
        dh_installdirs -a
92
91
        $(MAKE) -C data/ \
93
92
                        install-appsDATA \
96
95
                        install-poiDATA \
97
96
                        install-mapsDATA \
98
97
                        DESTDIR=$(DESTDIR)
99
 
        install -d $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik                       
 
98
        install -d $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik
100
99
        install -m 644 $(CURDIR)/scripts/mapnik/osm.xml $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik/osm.xml
101
100
        install -d $(CURDIR)/debian/tmp/usr/share/map-icons
102
101
        install -m 644 $(CURDIR)/data/map-icons/icons.xml $(CURDIR)/debian/tmp/usr/share/map-icons/icons.xml
103
102
        $(MAKE) -C scripts/mapnik/ install DESTDIR=$(DESTDIR)
104
 
        $(MAKE) -C src/ install DESTDIR=$(DESTDIR)                      
 
103
        $(MAKE) -C src/ install DESTDIR=$(DESTDIR)
105
104
                        
106
105
install-indep: build-indep
107
106
        dh_testdir
108
107
        dh_testroot
109
 
        dh_clean -k
110
108
        dh_installdirs -i
111
109
        $(MAKE) -C scripts/ install DESTDIR=$(DESTDIR)
112
 
        $(MAKE) -C data/map-icons/ install DESTDIR=$(DESTDIR)
113
110
 
114
111
binary-indep: build-indep install-indep
115
112
        dh_testdir
147
144
        dh_testroot
148
145
        dh_installchangelogs -a ChangeLog
149
146
        dh_installdocs -a -Xdebian/TODO
150
 
        dh_installman  -a --language=C 
151
 
        dh_installman  -a --language=de -pgpsdrive man/de/gpsdrive.1 
152
 
        dh_installman  -a --language=es -pgpsdrive man/es/gpsdrive.1 
 
147
        dh_installman  -a --language=C
 
148
        dh_installman  -a --language=de -pgpsdrive man/de/gpsdrive.1
 
149
        dh_installman  -a --language=es -pgpsdrive man/es/gpsdrive.1
153
150
        dh_installexamples -a
154
151
        dh_install -a --sourcedir=$(DESTDIR)
155
152
        dh_strip -a
158
155
        dh_makeshlibs -a
159
156
        dh_installdeb -a
160
157
        dh_shlibdeps -a
161
 
        dh_gencontrol -a 
 
158
        dh_gencontrol -a
162
159
        dh_md5sums -a
163
160
        dh_builddeb -a
164
161