source: trunk/debathena/config/gdm-config/debian/rules @ 24822

Revision 24822, 2.2 KB checked in by jdreed, 14 years ago (diff)
In gdm-config: * Add an applet to monitor /etc/nologin on new-GDM
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3GDM_VERSION = $(shell dpkg-query --showformat='$${Version}' --show gdm)
4NEW_GDM = $(shell dpkg --compare-versions $(GDM_VERSION) ge '2.25.2~' && echo y)
5
6ifneq ($(wildcard /etc/gdm/gdm.conf-custom),)
7    GDM_CONFFILE = /etc/gdm/gdm.conf-custom.debathena
8    DEB_DH_LINK_ARGS_debathena-gdm-config=/etc/gdm/gdm.conf-custom.debathena /etc/gdm/gdm.conf.debathena
9else
10    GDM_CONFFILE = /etc/gdm/gdm.conf.debathena
11endif
12
13DEB_DIVERT_EXTENSION = .debathena
14DEB_TRANSFORM_SCRIPT_${GDM_CONFFILE} = debian/transform_gdm.conf.debathena
15DEB_DIVERT_FILES_debathena-gdm-config += \
16        /etc/gdm/PreSession/Default.debathena \
17        /etc/gdm/PostSession/Default.debathena
18DEB_REMOVE_FILES_debathena-gdm-config += \
19        /usr/share/xsessions/ssh.desktop
20
21ifneq ($(NEW_GDM),y)
22    DEB_TRANSFORM_FILES_debathena-gdm-config += \
23        ${GDM_CONFFILE}
24    DEB_DIVERT_FILES_debathena-gdm-config += \
25        /usr/share/gdm/BuiltInSessions/default.desktop.debathena
26endif
27
28include /usr/share/cdbs/1/rules/debhelper.mk
29include /usr/share/cdbs/1/rules/config-package.mk
30
31common-build-indep:: debathena/distro.svg
32
33debathena/distro.svg: debian/distro.svg.sh
34        sh $< > $@
35
36ifneq ($(NEW_GDM),y)
37    install/debathena-gdm-config::
38        dh_install debian/default.desktop.debathena usr/share/gdm/BuiltInSessions
39else
40    install/debathena-gdm-config::
41        dh_install debian/background.jpg usr/share/debathena-gdm-config
42        dh_install debian/%gconf-tree.xml var/lib/gdm/.gconf.debathena-gdm-config
43
44        install -m 660 debian/gconf.path.debathena debian/$(cdbs_curpkg)/var/lib/gdm/.gconf.path.debathena
45        dh_install debian/debathena-branding usr/lib/debathena-branding
46        dh_install debian/debathena-branding.glade usr/share/debathena-branding
47        dh_install debian/debathena-branding.desktop usr/share/gdm/autostart/LoginWindow
48        dh_install debian/debathena-nologin-monitor usr/lib/debathena-nologin-monitor
49        dh_install debian/debathena-nologin-monitor.desktop usr/share/gdm/autostart/LoginWindow
50
51    binary-predeb/debathena-gdm-config:: debathena-gdm-config-substvars
52    debathena-gdm-config-substvars::
53        echo "debathena-gdm-gconf-depends=debathena-gconf2-config (>= 1.8~)" \
54            >> debian/debathena-gdm-config.substvars
55
56    install/debathena-gdm-config::
57        dh_gconf --priority 90
58endif
59
60clean::
61        -rm debathena/distro.svg
Note: See TracBrowser for help on using the repository browser.