~ubuntu-branches/ubuntu/maverick/xpdf/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-12-06 23:05:10 UTC
  • Revision ID: james.westby@ubuntu.com-20051206230510-229ji9wfkehh3j5x
Tags: 3.01-3
* SECURITY UPDATE: fix several potential buffer overflows:
  DCTStream Baseline Heap Overflow, DCTStream Progressive Heap Overflow,
  StreamPredictor Heap Overflow, JPX Stream Reader Heap Overflow 
  (closes: #322462) (21_security.dpatch)
* References: CAN-2005-3193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#                                                       -*- makefile -*-
 
3
# debian.rules file for the Debian GNU/Linux xpdf package
 
4
# Copyright 1996,1997,1998 by Dirk Eddelbuettel <edd@debian.org>
 
5
# Copyright 1998-2003 by Hamish Moffatt <hamish@debian.org>
 
6
 
 
7
build: build-stamp
 
8
build-stamp: patch
 
9
        dh_testdir
 
10
        ./configure --prefix=/usr --with-gzip --with-x --with-freetype2-includes=/usr/include/freetype2 --sysconfdir=/etc/xpdf --enable-freetype2 --with-t1-includes=/usr/include
 
11
        $(MAKE) 
 
12
        touch build-stamp
 
13
 
 
14
clean: clean1 unpatch
 
15
clean1:
 
16
        dh_testdir
 
17
        -$(MAKE) -i distclean
 
18
        rm -rf *~ debian/*~ debian/files* build-stamp aconf.h
 
19
        rm -rf fofi/Makefile splash/Makefile
 
20
        dh_clean
 
21
 
 
22
binary-indep:   # Nothing to build
 
23
        dh_testdir
 
24
        dh_installdirs -i
 
25
        ln -sf xpdf-common debian/xpdf/usr/share/doc/xpdf
 
26
 
 
27
        cp doc/xpdfrc.5 debian/xpdf-common/usr/share/man/man5
 
28
        cp debian/xpdfrc debian/xpdf-common/usr/share/doc/xpdf-common/examples/sample-xpdfrc
 
29
        cp debian/update-xpdfrc debian/xpdf-common/usr/sbin
 
30
        chmod +x debian/xpdf-common/usr/sbin/update-xpdfrc
 
31
        cp debian/xpdfrc debian/xpdf-common/etc/xpdf
 
32
        cp debian/xpdf-bug-control debian/xpdf/usr/share/bug/xpdf/control
 
33
 
 
34
        dh_installdocs -pxpdf-common README debian/README.Debian
 
35
        dh_installchangelogs -pxpdf-common CHANGES
 
36
        cp debian/update-xpdfrc.8 debian/xpdf-common/usr/share/man/man8
 
37
 
 
38
        cp -a debian/lang/* debian/xpdf-common/
 
39
 
 
40
        dh_compress -i
 
41
        dh_fixperms -i
 
42
        dh_installdeb -i
 
43
        dh_shlibdeps -i
 
44
        dh_gencontrol -i
 
45
        dh_md5sums -i
 
46
        dh_builddeb -i
 
47
 
 
48
binary-arch:    build
 
49
        dh_testdir
 
50
 
 
51
        dh_installdirs -a
 
52
        mkdir -p debian/tmp
 
53
        mkdir -p debian/tmp/usr/share
 
54
        $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
55
        mv debian/tmp/usr/man debian/tmp/usr/share
 
56
 
 
57
        ln -sf xpdf-common debian/xpdf-reader/usr/share/doc/xpdf-reader
 
58
        ln -sf xpdf-common debian/xpdf-utils/usr/share/doc/xpdf-utils
 
59
 
 
60
        cp debian/zxpdf debian/xpdf-reader/usr/bin
 
61
        chmod +x debian/xpdf-reader/usr/bin/zxpdf
 
62
        ln -sf xpdf.1.gz debian/xpdf-reader/usr/share/man/man1/zxpdf.1.gz
 
63
        ln -sf xpdf.1.gz debian/xpdf-reader/usr/share/man/man1/xpdf.bin.1.gz
 
64
 
 
65
        cp debian/xpdf.xpm debian/xpdf-reader/usr/share/pixmaps
 
66
 
 
67
        dh_installdocs -a
 
68
        dh_movefiles -a
 
69
        rm -rf debian/tmp
 
70
 
 
71
        # rename xpdf binary and install wrapper script
 
72
        mv debian/xpdf-reader/usr/bin/xpdf debian/xpdf-reader/usr/bin/xpdf.bin
 
73
        cp debian/xpdf-wrapper debian/xpdf-reader/usr/bin/xpdf
 
74
        chmod +x debian/xpdf-reader/usr/bin/xpdf
 
75
        cp debian/xpdf.desktop debian/xpdf-reader/usr/share/applications/
 
76
 
 
77
        dh_installmime -pxpdf-reader
 
78
        dh_installmenu -pxpdf-reader
 
79
        dh_strip -a
 
80
        dh_desktop -a
 
81
        dh_compress -a
 
82
        dh_fixperms -a
 
83
        dh_installdeb -a
 
84
        dh_shlibdeps -a
 
85
        dh_gencontrol -a
 
86
        dh_md5sums -a
 
87
        dh_builddeb -a
 
88
 
 
89
patch: patch-stamp
 
90
patch-stamp:
 
91
        dpatch apply-all
 
92
        #dpatch call-all -a=pkg-info >patch-stamp
 
93
        touch patch-stamp
 
94
 
 
95
unpatch:
 
96
        dpatch deapply-all
 
97
        rm -rf patch-stamp debian/patched
 
98
 
 
99
binary:         binary-indep binary-arch