~ubuntu-branches/debian/sid/cron/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Christian Kastner
  • Date: 2014-10-25 20:47:09 UTC
  • Revision ID: package-import@ubuntu.com-20141025204709-ooq4ss4tnhe0hgz1
Tags: 3.0pl1-127
Drop $READ_ENV from cron's command line. It does not belong there.
Closes: #766779

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
3
 
 
4
# The package build supports three optional features. To enable/disable them,
 
5
# modify DEB_BUILD_OPTIONS accordingly:
 
6
#  * PAM support        default: ON     disable: DEB_BUILD_OPTIONS=nopam
 
7
#  * SELinux support    default: ON     disable: DEB_BUILD_OPTIONS=noselinux
 
8
#  * audit support      default: OFF    enable:  DEB_BUILD_OPTIONS=withaudit
 
9
#
4
10
# Uncomment this to turn on verbose mode.
5
11
#export DH_VERBOSE=1
6
12
 
8
14
# Set system type (Linux, HURD, etc.)
9
15
DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
10
16
 
 
17
# Enable cross-compiling support
 
18
DEB_HOST_GNU_TYPE  = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
19
DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
20
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 
21
export CC=$(DEB_HOST_GNU_TYPE)-gcc
 
22
endif
 
23
 
11
24
# Standard compiler flags 
12
25
CFLAGS += -Wall -Wno-unused -Wno-comment
13
26
 
34
47
    SELINUX_LIBS = -lselinux
35
48
    export SELINUX_DEFS SELINUX_LIBS
36
49
endif
 
50
 
37
51
# audit is disabled by default
38
52
ifneq (,$(findstring withaudit,$(DEB_BUILD_OPTIONS)))
39
53
    AUDIT_DEFS = -DWITH_AUDIT
40
54
    AUDIT_LIBS = -laudit
41
55
    export AUDIT_DEFS AUDIT_LIBS
42
56
endif
43
 
endif
 
57
endif # Linux
44
58
 
45
59
 
46
60
%:
47
 
        dh $@ 
 
61
        dh $@  --with=systemd
48
62
 
49
63
 
50
64
override_dh_auto_install:
53
67
 
54
68
override_dh_install:
55
69
        dh_install
56
 
        install -m 755 debian/standard.daily debian/cron/etc/cron.daily/standard
57
70
        install -m 644 debian/crontab.main debian/cron/etc/crontab
58
71
        install -m 644 debian/placeholder debian/cron/etc/cron.d/.placeholder
59
72
        install -m 644 debian/placeholder debian/cron/etc/cron.hourly/.placeholder