~ubuntu-branches/ubuntu/lucid/util-linux/lucid-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-09-15 15:14:58 UTC
  • Revision ID: james.westby@ubuntu.com-20090915151458-srmn71i5663htba3
Tags: 2.16-1ubuntu2
FFE LP: #427356.

* Replace hwclock udev rule with an Upstart job.  This has never needed
  to be a udev rule after all since it doesn't access the hardware!
* Replace init script with an Upstart job run on shutdown.
* debian/control:
  - Bump build-dependency on debhelper for Upstart-aware dh_installinit
  - Add missing ${misc:Depends}

* Fix build with newer glibc due to versionsort() prototype change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                debian/util-linux/etc/init.d/hwclockfirst.sh; \
110
110
        fi
111
111
else
112
 
        if [ -f debian/util-linux/sbin/hwclock ] ; then \
113
 
            install -m 755 debian/hwclock.sh debian/util-linux/etc/init.d/hwclock.sh; \
114
 
        fi
115
112
        # blkid.conf file and blkid.tab symlink
116
113
        install -m 644 debian/blkid.conf debian/libblkid1/etc/
117
114
        ln -s /dev/.blkid.tab debian/libblkid1/etc/blkid.tab
118
115
endif
119
 
        if [ -f debian/util-linux/sbin/hwclock ] ; then \
120
 
            install -m 644 debian/hwclock.rules debian/util-linux/lib/udev/rules.d/85-hwclock.rules; \
121
 
        fi
122
116
        # copy blkid library and symlink into udeb
123
117
        ln debian/libblkid1/lib/libblkid.so.1.* debian/libblkid1-udeb/lib/
124
118
        ln debian/libblkid1/lib/libblkid.so.1   debian/libblkid1-udeb/lib/
190
184
ifeq ($(DISTRO),Debian)
191
185
        dh_installinit -s -- defaults 15 85
192
186
else
193
 
        dh_installinit -s -- stop 25 0 6 .
 
187
        dh_installinit
 
188
        dh_installinit --name=hwclock-save --upstart-only
194
189
endif
195
190
        [ -n "$(STRIP)" ] || dh_strip -s
196
191
        dh_makeshlibs -s