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

Revision 24645, 1.8 KB checked in by lizdenys, 15 years ago (diff)
In gdm-config: * Cleaned up a mess created by a typo in version 1.20 (Trac: #573).
  • 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
46    binary-predeb/debathena-gdm-config:: debathena-gdm-config-substvars
47    debathena-gdm-config-substvars::
48        echo "debathena-gdm-gconf-depends=debathena-gconf2-config (>= 1.8~)" \
49            >> debian/debathena-gdm-config.substvars
50
51    install/debathena-gdm-config::
52        dh_gconf --priority 90
53endif
54
55clean::
56        -rm debathena/distro.svg
Note: See TracBrowser for help on using the repository browser.