~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# This has to be exported to make some magic below work.
12
12
export DH_OPTIONS
13
13
 
 
14
MAKE=unsermake
 
15
 
14
16
# These are used for cross-compiling and for saving the configure script
15
17
# from having to guess our platform (since we know it already)
16
18
DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
51
53
configure-stamp:
52
54
        dh_testdir
53
55
 
 
56
        # Remove unused patches present in the original source debian dir
 
57
        -rm $(CURDIR)/debian/patches/modules.diff       
 
58
        -rm $(CURDIR)/debian/patches/texfonts.diff
 
59
        # Remove old shlibs files
 
60
        -rm $(CURDIR)/debian/*.shlibs
 
61
 
54
62
        # Apply Debian specific patches
55
63
        if test ! -f patch-stamp; then \
56
64
                for patch in $(CURDIR)/debian/patches/*.diff ;\
87
95
        dh_testdir
88
96
 
89
97
        cd $(objdir) && \
90
 
        $(MAKE) $(do_parallel)
 
98
        $(MAKE) -p $(do_parallel)
91
99
 
92
100
        touch build-stamp
93
101
 
117
125
 
118
126
        # if Makefile exists run distclean
119
127
        if test -f Makefile; then \
 
128
                $(MAKE) clean; \
120
129
                $(MAKE) distclean; \
121
130
        fi
122
131
 
123
 
        if test -d CVS; then \
 
132
        if test ! -d debian/patches && test -d CVS; then \
124
133
                $(MAKE) -f admin/Makefile.common cvs-clean ;\
125
134
        fi
126
135
 
141
150
          ( cd `dirname $$i`; meinproc `basename $$i` ); \
142
151
        done
143
152
 
 
153
        # Move Krita to (XDG) Graphics menu - jriddell
 
154
        mv debian/tmp/usr/share/applnk/Office/krita.desktop debian/tmp/usr/share/applications/kde
 
155
        echo "Categories=Qt;KDE;Graphics;" >> debian/tmp/usr/share/applications/kde/krita.desktop
 
156
        sed -i "s/^MimeType=application\/x-krita/MimeType=application\/x-krita;image\/x-xcf-gimp;image\/png;image\/gif;image\/cgm;image\/jpeg;image\/tiff;image\/x-bmp;image\/x-ico;image\/x-pcx;image\/x-portable-pixmap;image\/x-targa;image\/x-xbm;image\/x-xcf;image\/x-xpm;image\/x-vnd.adobe.photoshop/" debian/tmp/usr/share/applications/kde/krita.desktop
 
157
 
144
158
        # Split into separate binary packages.
145
159
        dh_install --sourcedir=debian/tmp --list-missing
146
160
 
238
252
            kexi ) \
239
253
              DH_OPTIONS='' dh_shlibdeps -p$$pkg \
240
254
                -ldebian/koffice-libs/usr/lib:debian/kugar/usr/lib:debian/$$pkg/usr/lib ;; \
 
255
            kexi-* ) \
 
256
              DH_OPTIONS='' dh_shlibdeps -p$$pkg \
 
257
                -ldebian/koffice-libs/usr/lib:debian/kexi/usr/lib:debian/$$pkg/usr/lib ;; \
241
258
            * ) \
242
259
              DH_OPTIONS='' dh_shlibdeps -p$$pkg \
243
260
                -ldebian/koffice-libs/usr/lib:debian/$$pkg/usr/lib ;; \