DEB_DIVERT_FILES_xvm-iscsi-config += \
/etc/iscsi/iscsid.conf.xvm
+DEB_DH_INSTALLINIT_ARGS += --no-start
DEB_UPDATE_RCD_PARAMS_xvm-iscsi-config += defaults 20 80
include /usr/share/cdbs/1/rules/config-package.mk
common-build-indep:: debian/iscsid.conf.xvm.mako
+binary-post-install/xvm-iscsi-config::
+ touch $(DEB_DESTDIR)/etc/iscsi/iscsid.conf.xvm
+
debian/iscsid.conf.xvm.mako: $(call debian_check_files,/etc/iscsi/iscsid.conf)
debian/transform_iscsid.conf.xvm.mako < $< > $@
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
case "$1" in
configure)
USERNAME="$RET"
db_get xvm-iscsi-config/password
PASSWORD="$RET"
+ db_stop
cat >/etc/invirt/conf.d/iscsi <<EOF
iscsi:
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
exit 0