1 | #!/usr/bin/make -f |
---|
2 | |
---|
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) |
---|
5 | |
---|
6 | ifneq ($(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 |
---|
9 | else |
---|
10 | GDM_CONFFILE = /etc/gdm/gdm.conf.debathena |
---|
11 | endif |
---|
12 | |
---|
13 | DEB_DIVERT_EXTENSION = .debathena |
---|
14 | DEB_TRANSFORM_SCRIPT_${GDM_CONFFILE} = debian/transform_gdm.conf.debathena |
---|
15 | DEB_DIVERT_FILES_debathena-gdm-config += \ |
---|
16 | /etc/gdm/PreSession/Default.debathena \ |
---|
17 | /etc/gdm/PostSession/Default.debathena |
---|
18 | DEB_REMOVE_FILES_debathena-gdm-config += \ |
---|
19 | /usr/share/xsessions/ssh.desktop |
---|
20 | |
---|
21 | ifneq ($(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 |
---|
26 | endif |
---|
27 | |
---|
28 | include /usr/share/cdbs/1/rules/debhelper.mk |
---|
29 | include /usr/share/cdbs/1/rules/config-package.mk |
---|
30 | |
---|
31 | common-build-indep:: debathena/distro.svg |
---|
32 | |
---|
33 | debathena/distro.svg: debian/distro.svg.sh |
---|
34 | sh $< > $@ |
---|
35 | |
---|
36 | ifneq ($(NEW_GDM),y) |
---|
37 | install/debathena-gdm-config:: |
---|
38 | dh_install debian/default.desktop.debathena usr/share/gdm/BuiltInSessions |
---|
39 | else |
---|
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 |
---|
53 | endif |
---|
54 | |
---|
55 | clean:: |
---|
56 | -rm debathena/distro.svg |
---|