~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-11-26 22:16:37 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091126221637-lbtdp0ax1yg9t0bx
Tags: 1:4.2.4p7+dfsg-4
* Use uname -s instead of dpkg-architecture to found the kernel we're
  running on.  dpkg-architecture is part of dpkg-dev. (Closes: #558145)
* Make the package fail to build on hurd since it does not provided
  the needed system calls for ntpd to work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
4
 
 
5
3
# hacks to avoid running these things during the build
6
4
export ACLOCAL    = : aclocal
7
5
export AUTOCONF   = : autoconf
8
6
export AUTOMAKE   = : automake
9
7
export AUTOHEADER = : autoheader
10
8
 
 
9
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
10
 
11
11
CFLAGS = -g -fno-strict-aliasing
12
12
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13
13
CFLAGS += -O0
15
15
CFLAGS += -O2
16
16
endif
17
17
 
18
 
config: patch config.status
19
 
config.status: $(QUILT_STAMPFN)
 
18
config.status:
20
19
        dh_testdir
 
20
ifeq (hurd, $(DEB_HOST_ARCH_OS))
 
21
        # hurd does not provided the system calls needed for ntpd to work.
 
22
        exit 1
 
23
endif
21
24
        cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
22
25
        ./configure CFLAGS='$(CFLAGS)' CPPFLAGS='-D_GNU_SOURCE' \
23
26
                ac_cv_var_tick=no ac_cv_var_tickadj=no \
25
28
                --enable-all-clocks --enable-parse-clocks --enable-SHM \
26
29
                --disable-debugging --sysconfdir=/var/lib/ntp \
27
30
                --with-sntp=no \
28
 
                --enable-linuxcaps \
29
31
                --disable-dependency-tracking
30
32
 
31
 
build: config build-stamp
 
33
build: build-stamp
32
34
build-stamp: config.status
33
35
        dh_testdir
34
36
        $(MAKE)
35
37
        touch $@
36
38
 
37
 
clean: clean-patched unpatch
38
 
clean-patched:
 
39
clean:
39
40
        dh_testdir
40
41
        dh_testroot
41
42
        rm -f build-stamp 
112
113
        dh_builddeb -a
113
114
 
114
115
binary: binary-indep binary-arch
115
 
.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean-patched
 
116
.PHONY: build clean binary-indep binary-arch binary install