[23175] | 1 | #!/usr/bin/make -f |
---|
| 2 | |
---|
[24214] | 3 | GDM_VERSION = $(shell dpkg-query --showformat='$${Version}' --show gdm) |
---|
| 4 | NEW_GDM = $(shell dpkg --compare-versions $(GDM_VERSION) ge '2.25.2~' && echo y) |
---|
[24363] | 5 | EVENT_D = $(shell test -f /etc/event.d/tty1 && echo y) |
---|
[24214] | 6 | |
---|
[23175] | 7 | DEB_DIVERT_EXTENSION = .debathena |
---|
| 8 | ifneq ($(wildcard /etc/gdm/gdm.conf-custom.debathena),) |
---|
| 9 | GDM_CONFFILE = /etc/gdm/gdm.conf-custom.debathena.debathena |
---|
| 10 | else |
---|
| 11 | GDM_CONFFILE = /etc/gdm/gdm.conf.debathena.debathena |
---|
| 12 | endif |
---|
[24420] | 13 | DEB_UNDIVERT_FILES_debathena-cluster-login-config += \ |
---|
[23610] | 14 | /etc/default/kexec.debathena |
---|
[24420] | 15 | DEB_UNDIVERT_VERSION_/etc/default/kexec.debathena = 1.23~ |
---|
[23175] | 16 | |
---|
[24214] | 17 | ifneq ($(NEW_GDM),y) |
---|
| 18 | DEB_TRANSFORM_FILES_debathena-cluster-login-config += \ |
---|
| 19 | ${GDM_CONFFILE} |
---|
[24313] | 20 | else |
---|
| 21 | DEB_REMOVE_FILES_debathena-cluster-login-config += \ |
---|
| 22 | /usr/share/xsessions/gnome-failsafe.desktop \ |
---|
| 23 | /usr/share/xsessions/xterm.desktop |
---|
[24214] | 24 | endif |
---|
| 25 | |
---|
[23175] | 26 | DEB_REMOVE_FILES_debathena-cluster-login-config += \ |
---|
[24363] | 27 | /usr/lib/indicator-session/indicator-users-service |
---|
| 28 | |
---|
[24668] | 29 | DEB_DIVERT_FILES_debathena-cluster-login-config += \ |
---|
| 30 | /sbin/getty.debathena |
---|
| 31 | |
---|
[24363] | 32 | ifeq ($(EVENT_D),y) |
---|
[24668] | 33 | DEB_UNREMOVE_FILES_debathena-cluster-login-config += \ |
---|
[23175] | 34 | /etc/event.d/tty1 \ |
---|
| 35 | /etc/event.d/tty2 \ |
---|
| 36 | /etc/event.d/tty3 \ |
---|
| 37 | /etc/event.d/tty4 \ |
---|
| 38 | /etc/event.d/tty5 \ |
---|
| 39 | /etc/event.d/tty6 |
---|
[24668] | 40 | DEB_UNREMOVE_VERSION_/etc/event.d/tty1 = 1.24~ |
---|
| 41 | DEB_UNREMOVE_VERSION_/etc/event.d/tty2 = 1.24~ |
---|
| 42 | DEB_UNREMOVE_VERSION_/etc/event.d/tty3 = 1.24~ |
---|
| 43 | DEB_UNREMOVE_VERSION_/etc/event.d/tty4 = 1.24~ |
---|
| 44 | DEB_UNREMOVE_VERSION_/etc/event.d/tty5 = 1.24~ |
---|
| 45 | DEB_UNREMOVE_VERSION_/etc/event.d/tty6 = 1.24~ |
---|
[24363] | 46 | else |
---|
[24668] | 47 | DEB_UNREMOVE_FILES_debathena-cluster-login-config += \ |
---|
[24363] | 48 | /etc/init/tty1.conf \ |
---|
| 49 | /etc/init/tty2.conf \ |
---|
| 50 | /etc/init/tty3.conf \ |
---|
| 51 | /etc/init/tty4.conf \ |
---|
| 52 | /etc/init/tty5.conf \ |
---|
| 53 | /etc/init/tty6.conf |
---|
[24668] | 54 | DEB_UNREMOVE_VERSION_/etc/init/tty1.conf = 1.24~ |
---|
| 55 | DEB_UNREMOVE_VERSION_/etc/init/tty2.conf = 1.24~ |
---|
| 56 | DEB_UNREMOVE_VERSION_/etc/init/tty3.conf = 1.24~ |
---|
| 57 | DEB_UNREMOVE_VERSION_/etc/init/tty4.conf = 1.24~ |
---|
| 58 | DEB_UNREMOVE_VERSION_/etc/init/tty5.conf = 1.24~ |
---|
| 59 | DEB_UNREMOVE_VERSION_/etc/init/tty6.conf = 1.24~ |
---|
| 60 | endif |
---|
| 61 | |
---|
[23175] | 62 | include /usr/share/cdbs/1/rules/debhelper.mk |
---|
| 63 | include /usr/share/cdbs/1/rules/config-package.mk |
---|