~ubuntu-branches/ubuntu/oneiric/bumprace/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christian T. Steigies
  • Date: 2005-04-13 22:50:44 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050413225044-t1anrzoaigie8i3r
Tags: 1.4.6-4
really, really fix buffer overflow by applying patches in configure,
removing patches in clean target (closes: #302493)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# This is the debhelper compatability version to use.
14
14
export DH_COMPAT=3
15
15
 
 
16
INSTALL = install
 
17
INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
 
18
INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
 
19
INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
 
20
INSTALL_DIR     = $(INSTALL) -p -d -o root -g root  -m  755
 
21
 
 
22
CFLAGS = -Wall -g
 
23
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
24
  CFLAGS += -O0
 
25
else
 
26
  CFLAGS += -O2
 
27
endif
 
28
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
29
  INSTALL_PROGRAM += -s
 
30
endif
 
31
 
16
32
configure: configure-stamp
17
33
configure-stamp:
18
34
        dh_testdir
19
35
        # Add here commands to configure the package.
 
36
        patch -p0 < debian/patches/002_buffer-overflow.patch
20
37
#       ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/games/
21
 
        ./configure \
 
38
        ./configure CFLAGS="$(CFLAGS)" \
22
39
                --prefix=/usr \
23
40
                --mandir=/usr/share/man \
24
41
                --datadir=/usr/share/games
29
46
build-stamp:
30
47
        dh_testdir
31
48
 
32
 
        # Add here commands to compile the package.
 
49
        # Add here commands to compile the package.     
33
50
        $(MAKE) #DATA_PREFIX=$(DESTDIR)/usr/share/games/$(TARGET)/
34
51
 
35
52
        touch build-stamp
40
57
        rm -f build-stamp configure-stamp
41
58
 
42
59
        # Add here commands to clean up after the build process.
 
60
        -patch -R -p0 < debian/patches/002_buffer-overflow.patch
43
61
        -$(MAKE) distclean
44
62
 
45
63
        dh_clean
59
77
 
60
78
# install an icon
61
79
# no icon (yet) for bumprace
62
 
#       $(installdoc) debian/$(TARGET)-icon.xpm \
63
 
#               $(CURDIR)/debian/$(TARGET)/usr/X11R6/include/X11/pixmaps/
 
80
        $(installdoc) debian/$(TARGET)-icon.xpm \
 
81
                $(CURDIR)/debian/$(TARGET)/usr/share/pixmaps/
64
82
 
65
83
        dh_movefiles --sourcedir=debian/$(TARGET)
66
84
# is there a cleaner way to remove these directories?