switch to dh-systemd for proper systemd maintscripts
Closes: #714197
Michael Stapelberg authored 10 years ago
Guido Günther committed 10 years ago
4 | 4 |
Uploaders: Guido Günther <agx@sigxcpu.org>, Laurent Léonard <laurent@open-minds.org>
|
5 | 5 |
Build-Depends: cdbs (>= 0.4.90~),
|
6 | 6 |
debhelper (>= 7),
|
|
7 |
dh-systemd (>= 1.3),
|
7 | 8 |
libxml2-dev,
|
8 | 9 |
libncurses5-dev,
|
9 | 10 |
libreadline-dev,
|
103 | 103 |
sleep 1
|
104 | 104 |
fi
|
105 | 105 |
|
106 | |
# enable libvirt-{bin,guests} for systemd
|
107 | |
if [ -x /bin/systemctl ] && [ -d /sys/fs/cgroup/systemd ]; then
|
108 | |
systemctl enable libvirt-bin.service
|
109 | |
systemctl enable libvirt-guests.service
|
110 | |
fi
|
111 | |
|
112 | 106 |
if dpkg --compare-versions "$2" lt "0.6.1-2"; then
|
113 | 107 |
if [ -e /etc/rc2.d/S20libvirt-bin ] && \
|
114 | 108 |
[ -e /etc/rc3.d/S20libvirt-bin ] && \
|
115 | 115 |
debian/libvirt-bin.libvirt-guests.init
|
116 | 116 |
cp tools/libvirt-guests.sysconf \
|
117 | 117 |
debian/libvirt-bin.libvirt-guests.default
|
|
118 |
dh_systemd_enable
|
118 | 119 |
dh_installinit --name=libvirt-guests --no-restart-on-upgrade -- defaults 29 71
|
119 | 120 |
-mv debian/libvirt-bin/lib/systemd/system/libvirtd.service \
|
120 | 121 |
debian/libvirt-bin/lib/systemd/system/libvirt-bin.service
|
|
122 |
dh_systemd_start
|
121 | 123 |
rm debian/libvirt-bin/usr/lib/libvirt/connection-driver/*.la
|
122 | 124 |
|
123 | 125 |
for l in $(LOGROTATE); do \
|