~ubuntu-branches/ubuntu/intrepid/logrotate/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Paul Martin
  • Date: 2006-04-08 23:02:19 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060408230219-7moi9qw2g42w1nye
Tags: 3.7.1-3
* Patch debian/control to fix FTBFS on kfreebsd-amd64. Perhaps we need
  a build-depends macro for !kfreebsd. (Closes: #361465)
* Use and depend on debhelper version 5.
* Switch from dpatch to quilt.
* cpp-crossbuild.patch: change from using $(CPP) to $(CC) -E.
  Thanks to NIIBE Yutaka. (Closes: #284040)
* dst.patch: fix mktime initialisation so that daylight savings is
  taken into account. Thanks to Holger Weiss. (Closes: #278591)
* man-333996.patch: fix typos in logrotate.8 where "then" should be
  "than". Thanks to Adrian Knoth. (Closes: #333996)
* manpage.patch: Apply missed fixes from #101272. Thanks to J S Bygott.
  (Closes: #335060)
* script-argument.patch: Allow the use of $1 in scripts again.
  (Closes: #330783)
* README.Debian: Document that sysklogd does its own log rotation.
  (Closes: #308963)
* README.Debian: Document how scripts are called. (Closes: #308920)
* Update the copyright file.
* debian/control: remove versioned dependency on cron. The version of
  cron forbidden pre-dates woody (currently "oldstable") by several
  years. This versioned dependency is preventing logrotate being
  installed with bcron. (Closes: #304038, #349150)
* debian/rules: Fix backports, allowing them to use selinux.
  (Closes: #340363)
* uncompressChild-warning.patch: Fix a "might be used uninitialised" 
  warning from gcc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
INSTALL_PROGRAM += -s
22
22
endif
23
23
 
 
24
export DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS \
 
25
        2>/dev/null || true)
 
26
 
 
27
export DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture \
 
28
        -qDEB_HOST_GNU_SYSTEM 2>/dev/null || true)
 
29
 
 
30
ifeq ($(DEB_HOST_ARCH_OS),)
 
31
  DEB_HOST_ARCH_OS := $(subst -gnu,,$(DEB_HOST_GNU_SYSTEM))
 
32
  ifeq ($(DEB_HOST_ARCH_OS),gnu)
 
33
    DEB_HOST_ARCH_OS := hurd
 
34
  endif
 
35
endif
24
36
 
25
37
configure: configure-stamp
26
38
configure-stamp: patch
33
45
build-stamp: patch
34
46
        dh_testdir
35
47
 
36
 
        #$(MAKE) RPM_OPT_FLAGS="$(CFLAGS)" VERSION="3.7" WITH_SELINUX="yes"
37
 
        #mv $(CURDIR)/logrotate $(CURDIR)/logrotate.selinux
38
 
        #rm $(CURDIR)/logrotate.o
39
 
 
40
 
        $(MAKE) RPM_OPT_FLAGS="$(CFLAGS)" VERSION="3.7"
 
48
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
49
        $(MAKE) RPM_OPT_FLAGS="$(CFLAGS)" WITH_SELINUX="yes"
 
50
else
 
51
        $(MAKE) RPM_OPT_FLAGS="$(CFLAGS)"
 
52
endif
41
53
 
42
54
        touch build-stamp
43
55
 
115
127
 
116
128
patch: patch-stamp
117
129
patch-stamp:
118
 
        dpatch apply-all
 
130
        QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
119
131
        touch patch-stamp
120
 
        # dpatch call-all -a=pkg-info >patch-stamp
121
132
 
122
133
unpatch:
123
 
        dpatch deapply-all
124
 
        rm -rf patch-stamp debian/patched
 
134
        QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
 
135
        rm -rf .pc patch-stamp
 
136
 
 
137
#patch: patch-stamp
 
138
#patch-stamp:
 
139
#       dpatch apply-all
 
140
#       touch patch-stamp
 
141
#       # dpatch call-all -a=pkg-info >patch-stamp
 
142
#
 
143
#unpatch:
 
144
#       dpatch deapply-all
 
145
#       rm -rf patch-stamp debian/patched
125
146
 
126
147
.PHONY: build clean binary-indep binary-arch binary install configure \
127
148
 patch unpatch clean-patched