~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Steve Langasek
  • Date: 2012-04-21 12:11:45 UTC
  • mfrom: (9.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20120421121145-tcyy57v1j6gx946d
Tags: 2.88dsf-23
[ Roger Leigh ]
* Acknowledge NMU for translation updates.  Thanks to Christian
  Perrier.
* debian/control:
  - Upgrade to Standards-Version 3.9.3.
  - Build-Depend on debhelper v9.
  - Correct Vcs-Git URL.
* debian/rules:
  - Use DEB_HOST_ARCH_OS = hurd rather than
    DEB_HOST_ARCH = hurd-i386.   Thanks to Pino Toscano.
* debian/patches:
  - 11_lfs_cflags.patch: Add patch for enabling large file support,
    needed on GNU/Hurd, but useful for all platforms.
  - 73_lfs_cflags.patch: Add patch for enabling large file support
    in startpar.
* initscripts:
  - Moved RAM* settings from /etc/default/rcS to /etc/default/tmpfs.
    This ensures that the settings are equivalent for upgrades and
    new installations, but will require manual configuration of the
    settings for upgrades (no migration from /etc/default/rcS to
    /etc/default/tmpfs will take place, due to tmpfs being a
    conffile).  tmpf(5) manual page added to document all aspects
    of tmpfs configuration, including the existing documentation in
    rcS(5).
  - Drop the use of .ramfs dotfiles in /run and /run/lock.  These
    were a legacy of /lib/init/rw and were not actually used by
    anything.  Closes: #403863.
  - Drop /etc/init.d/mountoverflowtmp.  This has been merged into
    the general tmpfs on /tmp handling functions.  This means the
    generic RAMTMP configuration is used for the overflowtmp.
    Closes: #567539.
  - It is now possible to configure a tmpfs mount size limit as a
    percentage of the total VM size (%VM) as well as a percentage
    of the RAM size (%).  This is computed by tmpfs.sh and the
    tmpfs mounts are remounted with the updated size limit after
    swap becomes available.
  - An fstab entry for /tmp overrides RAMTMP.  Document tmpfs
    override and tmpfs defaults in tmpfs(5), also undeprecating the
    tmpfs settings.  Closes: #585540, #665995.
  - An fstab entry for /run/lock or /run/shm overrides RAMLOCK and
    RAMSHM.
  - bootclean cleans /tmp, /run and /run/lock before any filesystems
    are mounted as well as after local and network mounts.  This
    permits cleaning of directories which would otherwise be hidden
    by mountpoints later in the boot process.
    Closes: #55707, #558000, #666871.  Additionally clean up
    /lib/init/rw in case any files were hidden by the (now removed)
    tmpfs mount at this location.  Closes: #652625.
  - Removed last trace of the long-removed EDITMOTD from the
    postinst.  Closes: #438895.
  - Removed documentation of #346342 in rcS(5).  This is no longer
    an issue now tzdata keeps a copy of the data on the rootfs.
    Closes: #385172.
  - Correct description of TMPTIME in rcS(5).  Thanks to Alan J.
    Greenberger.  Closes: #562500.
  - urandom: Applied a series of patches from John Denker to
    improve the integrity of random number generation.  Many thanks.
    Closes: #596479, #596480, #596481, #596482, #596483.
* sysv-rc:
  - Remove old upgrade logic from maintainer scripts not required
    for wheezy.
  - Migrate users of obsolete static boot ordering to dynamic boot
    ordering.
  - Remove use of /etc/init.d/.legacy-bootordering.  Closes: #668312.
  - Improve help text of debconf message when it is not possible to
    automatically enable dynamic boot ordering.  Provide explicit
    instructions for how to purge obsolete init scripts.
    Closes: #550425.
  - etc/init.d/rc: Ensure linprocfs is mounted on kFreeBSD.  Thanks
    to Robert Millan.  Closes: #659480.
  - Drop undocumented CONCURRENCY setting from /etc/init.d/rc.
    Closes: #518249, #540448, #539261.  Note that this still contains
    internal fallbacks to support non-insserv booting, which may be
    removed at a later date.
  - invoke-rc.d:
    + Minor manual page corrections.  Thanks to Anthony Fiumara.
      Closes: #664816.
    + Remove mention of the "dpkg Programmers' Manual" and replace
      with references to Debian Policy.  Closes: #543793.
  - update-rc.d:
    + Correctly warn about non-LSB standard runlevels.  Thanks to
      Chris Hiestand for this patch.  Closes: #614895.
    + Remove obsolete documentation of
      /var/lib/sysv-rc/legacy-bootsequence.  Thanks to Thomas Hood.
      Closes: #623051.
* sysvinit:
  - Minor corrections for halt(8) manual page.  Thanks to
    Christoph Anton Mitterer.  Closes: #587923.
  - Installation with debootstrap --variant=fakechroot now works, due
    to only migrating the old control channel when it is still
    present.  Thanks to Michael Gilbert.  Closes: #596284.
* sysvinit-utils:
  - Recommend bootlogd.  Closes: #659490.  This means that booklogd
    will be installed by default, but will be removable.
    Closes: #232569.
  - Correct documentation of the startpar -i option.  Closes: #545438.
  - Correct startpar(8) SEE ALSO section.  Closes: #634146.
  - Correct wording in service(8).  Thanks to Joey Hess and Regid
    Ichira.  Closes: #545401, #667745.

[ Steve Langasek ]
* debian/service/service: fix upstart compatibility to not try to use the
  upstart commands when init isn't upstart.  Closes: #636054.
* debian/rules: pass CFLAGS when building startpar.
* Fix startpar to not run init scripts that have matching upstart jobs,
  instead waiting for a signal from upstart.  Closes: #660824.
    to Robert Millan.  (Closes: #659480)
* sysvinit:
  - Don't restart or perform initctl migration if systemd is
    running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
utiltmp = $(CURDIR)/debian/sysvinit-utils
6
6
rctmp   = $(CURDIR)/debian/sysv-rc
7
7
inittmp = $(CURDIR)/debian/initscripts
 
8
bootlogdtmp = $(CURDIR)/debian/bootlogd
8
9
doc     = /usr/share/doc
9
10
 
10
11
LC_ALL  = POSIX
38
39
 
39
40
override_dh_auto_build:
40
41
        $(MAKE) $(CROSS) $(CONFFLAGS) -C src DISTRO=Debian LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
41
 
        $(MAKE) $(CROSS) -C startpar
 
42
        $(MAKE) $(CROSS) COPTS="$(shell dpkg-buildflags --get CFLAGS)" -C startpar
 
43
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
44
        $(MAKE) $(CROSS) COPTS="$(shell dpkg-buildflags --get CFLAGS)" -C startpar startpar-upstart-inject
 
45
endif
42
46
 
43
47
override_dh_auto_install-arch:
44
48
        $(MAKE) $(CROSS) -C startpar DESTDIR=$(utiltmp) install
 
49
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
50
        install -m755 startpar/startpar-upstart-inject $(utiltmp)/sbin/
 
51
endif
 
52
        $(MAKE) -C debian/src/bootlogd install DESTDIR=$(bootlogdtmp)
45
53
        $(MAKE) -C debian/src/initscripts install DESTDIR=$(inittmp)
46
54
        $(MAKE) -C src $(CROSS) ROOT=$(tmp) DISTRO=Debian install
47
55
 
 
56
override_dh_auto_install-indep:
 
57
        $(MAKE) -C debian/src/sysv-rc install DESTDIR=$(rctmp)
 
58
 
 
59
override_dh_install-arch:
 
60
        dh_install
 
61
 
48
62
        # sysvinit package
49
63
        if test -e debian/share/inittab.$(DEB_HOST_GNU_TYPE) ; \
50
64
        then \
62
76
        fi
63
77
 
64
78
        $(INSTALL) debian/share/update-rc.d $(sysvtmp)/usr/share/sysvinit/
65
 
ifeq ($(DEB_HOST_ARCH), hurd-i386)
66
 
 
67
 
        # The Hurd has its own halt and reboot commands.
68
 
        rm -f $(sysvtmp)/usr/share/man/man8/halt.8
69
 
        rm -f $(sysvtmp)/usr/share/man/man8/reboot.8
70
 
        rm -f $(sysvtmp)/sbin/halt
71
 
        rm -f $(sysvtmp)/sbin/reboot
72
 
endif
73
79
 
74
80
        # initscripts package may include /sys
75
81
ifneq (,$(findstring $(DEB_HOST_ARCH_OS),linux kfreebsd))
76
82
        $(INSTALL) -d $(inittmp)/sys
77
83
endif
78
84
 
79
 
override_dh_auto_install-indep:
80
 
        $(MAKE) -C debian/src/sysv-rc install DESTDIR=$(rctmp)
81
 
 
82
85
debian/copyright: debian/copyright.in
83
86
        cat $< COPYRIGHT > $@
84
87
 
85
88
install-arch: build-arch debian/copyright
86
89
        dh $@ $(DH_OPTIONS)
87
90
 
88
 
 
89
91
override_dh_installchangelogs-arch:
90
92
        dh_installchangelogs -psysvinit doc/Changelog
91
93
 
97
99
        sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
98
100
                $(inittmp)$(doc)/initscripts/changelog.Debian
99
101
 
 
102
        dh_installchangelogs -pbootlogd
 
103
        sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
 
104
                $(bootlogdtmp)$(doc)/bootlogd/changelog.Debian
 
105
 
100
106
override_dh_installchangelogs-indep:
101
107
        dh_installchangelogs
102
108
        sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
113
119
                $(inittmp)/DEBIAN/conffiles
114
120
        sh debian/deps-mount >> debian/initscripts.substvars
115
121
 
 
122
ifeq ($(DEB_HOST_HOST_OS), hurd)
 
123
        # The Hurd has its own halt and reboot commands.
 
124
        mv $(sysvtmp)/usr/share/man/man8/halt.8.gz $(sysvtmp)/usr/share/man/man8/halt-sysv.8.gz
 
125
        rm $(sysvtmp)/usr/share/man/man8/reboot.8.gz
 
126
        ln -s halt-sysv.8.gz $(sysvtmp)/usr/share/man/man8/reboot-sysv.8.gz
 
127
        mv $(sysvtmp)/sbin/halt $(sysvtmp)/sbin/halt-sysv
 
128
        rm $(sysvtmp)/sbin/reboot
 
129
        ln -s halt-sysv $(sysvtmp)/sbin/reboot-sysv
 
130
endif
 
131
 
116
132
override_dh_installdeb-indep:
117
133
        dh_installdeb
118
134
 
119
135
        # Neither rc, rcS nor README are conffiles
120
136
        $(RM) $(rctmp)/DEBIAN/conffiles
121
137
 
 
138
#override_dh_installinit-arch:
 
139
#       dh_installinit -psysvinit-utils --name startpar-bridge -n
 
140
 
122
141
override_dh_clean:
123
142
        dh_clean debian/copyright
124
143
        $(MAKE) -C src clobber
125
144
        $(MAKE) -C startpar clean
 
145
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
146
        rm -f startpar/startpar-upstart-inject
 
147
endif
126
148
 
127
149
.PHONY: override_dh_auto_build override_dh_auto_install-arch override_dh_auto_install-indep override_dh_installchangelogs-arch override_dh_installchangelogs-indep override_dh_fixperms override_dh_installdeb-arch override_dh_installdeb-indep override_dh_clean install-arch