Codebase list libvirt / 5978fc0
switch to dh-systemd for proper systemd maintscripts Closes: #714197 Michael Stapelberg authored 10 years ago Guido Günther committed 10 years ago
3 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
44 Uploaders: Guido Günther <agx@sigxcpu.org>, Laurent Léonard <laurent@open-minds.org>
55 Build-Depends: cdbs (>= 0.4.90~),
66 debhelper (>= 7),
7 dh-systemd (>= 1.3),
78 libxml2-dev,
89 libncurses5-dev,
910 libreadline-dev,
103103 sleep 1
104104 fi
105105
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
112106 if dpkg --compare-versions "$2" lt "0.6.1-2"; then
113107 if [ -e /etc/rc2.d/S20libvirt-bin ] && \
114108 [ -e /etc/rc3.d/S20libvirt-bin ] && \
115115 debian/libvirt-bin.libvirt-guests.init
116116 cp tools/libvirt-guests.sysconf \
117117 debian/libvirt-bin.libvirt-guests.default
118 dh_systemd_enable
118119 dh_installinit --name=libvirt-guests --no-restart-on-upgrade -- defaults 29 71
119120 -mv debian/libvirt-bin/lib/systemd/system/libvirtd.service \
120121 debian/libvirt-bin/lib/systemd/system/libvirt-bin.service
122 dh_systemd_start
121123 rm debian/libvirt-bin/usr/lib/libvirt/connection-driver/*.la
122124
123125 for l in $(LOGROTATE); do \