-DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
-DEB_DIVERT_EXTENSION = .sipb-xen
-DEB_DIVERT_FILES_sipb-xen-console += \
- /etc/init.d/bootmisc.sh \
- /etc/motd \
- /etc/nscd.conf \
- /etc/nsswitch.conf \
- /etc/pam.d/ssh \
- /etc/ssh/ssh_config \
- /etc/ssh/sshd_config
+DEB_DIVERT_EXTENSION = .invirt
+DEB_TRANSFORM_FILES_invirt-console-server += \
+ /etc/init.d/bootmisc.sh.invirt \
+ /etc/nsswitch.conf.invirt \
+ /etc/nscd.conf.invirt \
+ /etc/pam.d/sshd.invirt \
+ /etc/ssh/sshd_config.debathena.invirt
+
+ifneq ($(wildcard /usr/share/base-files/nsswitch.conf),)
+ DEB_CHECK_FILES_SOURCE_/etc/nsswitch.conf.invirt = \
+ /usr/share/base-files/nsswitch.conf
+endif
+
+DEB_DIVERT_FILES_invirt-console-server += \
+ /etc/conserver/conserver.cf.invirt \
+ /etc/motd.invirt