~darkxst/ubuntu/saucy/gdm/lp1212408

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-12-11 15:34:43 UTC
  • mfrom: (1.4.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20071211153443-ndi1b5u2d6oybb7p
Tags: 2.20.2-1ubuntu1
* Sync with Debian
* debian/control.in:
  - Breaks on packages using the previous socket location
  - Depend on kbd | console-tools for fgconsole
  - Depends on alsa-utils for gdmplay
  - Recommends ubuntu-artwork | edubuntu-artwork | xubuntu-default-settings, 
    ubuntu-sounds
  - the package in maintained by the desktop team on Ubuntu
* debian/control.in, debian/gdm.dirs, debian/gdm.install:
  - don't install the Debian theme
* debian/gdm.init:
  - use the Ubuntu init version
* debian/gdm.install:
  - list gdmplay binary
* debian/gdm.templates:
  - Fix template to point to /usr/sbin/gdm not /usr/bin. (LP: 129017)
* debian/gdmplay:
  - small asound wrapper
* debian/patches/01_xconfigoptions.patch:
  - patch configure to use "-br" (Ubuntu: #12985).
* debian/patches/01_xrdb_nocpp.patch:
  - call xrdb with the "nocpp" option (Ubuntu: #14268).
* debian/patches/04_menu_changes.patch:
  - don't display some of the menu items
* debian/patches/06_no_conffile_diff_due_to_comment_change.patch:
  - don't change comments to gdm.conf-custom to not get a conffile change
    on upgrade (Ubuntu: #92302)
* debian/patches/08_notify_ck_about_static_server.patch:
  - "Notify ck about initial static server."
* debian/patches/10_noxkeepcrashing.patch:
  - option NoXKeepsCrashing to disable all XKeepsCrashing code.
* debian/patches/11_powermanagement.patch:
  - add hibernate action
  - fix typo in the hibernate command configuration (LP: #151788)
  - make the hibernate action being listed (LP: #151848)
* debian/patches/15_usplash.patch:
  - Log that we're starting up gdm before stopping usplash. If usplash was
    running, don't bother logging successful startup, as it will look
    weird on the console.
  - If usplash was running, wait a short while for the active console to
    change after starting up gdm, to try to avoid visible console noise
    from later init scripts
* debian/patches/16_configure_menu_item.patch:
  - drop the configure option from gdmsetup, it's not sudo friendly
* debian/patches/18_combo_box_language_selector.patch:
  - use a combo box for the language selector
* debian/patches/19_remove_drop_shadows.patch:
  - removed the black drop shadow from GDM windows, 
* debian/patches/20_timedlogindelay_min_value_change.patch:
  - change minimal TimedLoginDelay to 1 (Ubuntu: #84239)
* debian/patches/35_gdm.conf.patch:
  - SuspendCommand=/usr/sbin/pmi action sleep
  - HibernateCommand=/usr/sbin/pmi action hibernate
  - SoundProgram=/usr/lib/gdmplay
  - GtkTheme=Human
  - ConfigAvailable=false
  - BackgroundColor=#dab08
  - GraphicalThemedColor=#dab082
  - use "Browser=true" so the users lists work correctly (LP: 115952)
  - set SoundOnLoginFile value to question.wav (LP: 131601)
* debian/patches/41_config-files.patch:
  - dropped, don't use Debian configuration file location hack
* debian/patches/56_xnest-wrapper.patch:
  - updated
* debian/patches/63_xrandr_virtual.patch:
  - on randr1.0 drivers, set the virtual to the screen resolution in 
    order to avoid panning setups (part of LP: 137517)
* debian/patches/70_mandatory-relibtoolize.patch:
  - updated
* debian/patches/90_workaround_init_color.patch:
  - set the color to use in the PreSession to workaround a bug
* debian/rules:
  - change custom configuration file naming
  - set the standard configuration location
  - specify the correct at-spi directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/make -f
2
 
 
3
 
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/cdbs/1/class/gnome.mk
5
 
include /usr/share/cdbs/1/rules/simple-patchsys.mk
6
 
include /usr/share/cdbs/1/rules/utils.mk
 
1
#!/usr/bin/make -f
 
2
 
 
3
DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
 
4
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
 
5
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
 
6
 
 
7
MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
 
8
 
7
9
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
8
10
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
9
11
 
10
 
DEB_CONFIGURE_EXTRA_FLAGS := --disable-dependency-tracking --localstatedir=/var/lib --with-selinux --with-xdmcp --disable-scrollkeeper --enable-ipv6=yes --with-prefetch=yes --with-defaults-conf=/etc/gdm/gdm.conf --with-custom-conf=/etc/gdm/gdm.conf-custom --with-console-kit=yes --with-atspi-dir=/usr/lib/at-spi
11
 
DEB_DH_INSTALLINIT_ARGS := --noscripts
 
12
DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
13
 
 
14
configure_flags += --disable-dependency-tracking \
 
15
                --prefix=/usr \
 
16
                --mandir=\$${prefix}/share/man \
 
17
                --infodir=\$${prefix}/share/info \
 
18
                --sysconfdir=/etc \
 
19
                --libexecdir=/usr/lib/gdm \
 
20
                --localstatedir=/var/lib \
 
21
                --with-defaults-conf=/etc/gdm/gdm.conf \
 
22
                --with-custom-conf=/etc/gdm/gdm.conf-custom \
 
23
                --with-atspi-dir=/usr/lib/at-spi \
 
24
                --disable-scrollkeeper \
 
25
                --enable-ipv6=yes \
 
26
                --with-prefetch=yes \
 
27
                --enable-secureremote=yes
 
28
 
 
29
ifeq (linux,$(DEB_HOST_ARCH_OS))
 
30
        configure_flags += --with-selinux
 
31
else
 
32
        configure_flags += --without-selinux
 
33
endif
12
34
 
13
35
MANPAGES += $(patsubst %.pod,%,$(wildcard debian/*.pod))
14
 
INSTDIR = $(CURDIR)/debian/gdm
15
 
 
16
 
MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
17
 
 
18
 
build/gdm:: $(MANPAGES)
19
 
        cd docs; make pot
20
 
 
21
 
binary-predeb/gdm::
22
 
        perl -pi -e 's#^/etc/gdm/factory-gdm.conf\n##sm' debian/gdm/DEBIAN/conffiles
23
 
 
24
 
binary-post-install/gdm::
25
 
        cd $(INSTDIR)/etc/gdm && rm locale.alias
26
 
        cd $(INSTDIR)/usr/sbin && rm gdm-stop gdm-restart gdm-safe-restart
27
 
        cd $(INSTDIR)/usr/sbin && mv gdm-binary gdm
28
 
        cd $(INSTDIR)/usr/lib/gtk-2.0/modules && rm -f *.a *.la
29
 
        rm -rf $(INSTDIR)/var/lib/log
30
 
        rm -rf $(INSTDIR)/etc/dm
31
 
        rm -f $(INSTDIR)/usr/share/xsessions/gnome.desktop
32
 
        install -m755 debian/gdmplay $(CURDIR)/debian/gdm/usr/lib/gdmplay
33
 
        install -m755 debian/Xsession $(CURDIR)/debian/gdm/etc/gdm/Xsession
34
 
        install -m644 debian/gdm-autologin.pam debian/gdm/etc/pam.d/gdm-autologin
 
36
 
 
37
PATCH_DIR := debian/patches
 
38
 
 
39
CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 
40
 
 
41
patch: patch-stamp
 
42
patch-stamp:
 
43
        dh_testdir
 
44
        # apply patches
 
45
        QUILT_PATCHES=$(PATCH_DIR) \
 
46
                quilt --quiltrc /dev/null push -a || test $$? = 2
 
47
        touch $@
 
48
 
 
49
configure: configure-stamp
 
50
configure-stamp: patch-stamp
 
51
        dh_testdir
 
52
        ./configure $(configure_flags) CFLAGS="$(CFLAGS)"
 
53
        touch configure-stamp
 
54
 
 
55
build: build-stamp
 
56
build-stamp: configure-stamp $(MANPAGES)
 
57
        dh_testdir
 
58
        $(MAKE)
 
59
        sh debian/debian-moreblue.shar
 
60
        touch build-stamp
 
61
 
 
62
install: install-stamp
 
63
install-stamp: build-stamp
 
64
        dh_testdir
 
65
        dh_testroot
 
66
        mkdir debian/tmp
 
67
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 
68
        touch $@
 
69
 
 
70
binary-indep: build install
 
71
 
 
72
binary-arch: build install
 
73
        dh_testdir
 
74
        dh_testroot
 
75
        dh_installdirs -a
 
76
        dh_install -a
35
77
        chmod 755 debian/gdm/usr/share/gdm/gdmXnestWrapper
 
78
        # special environment settings should be done in /etc/default/gdm
 
79
        mv debian/gdm/usr/sbin/gdm-binary debian/gdm/usr/sbin/gdm
 
80
        chmod 755 debian/gdm/etc/gdm/Xsession
 
81
        dh_installdebconf -a
 
82
        dh_installdocs -a
 
83
        dh_installmenu -a
 
84
        #dh_installlogrotate -a
 
85
        dh_scrollkeeper -a
 
86
        dh_desktop -a
 
87
        dh_installpam -a
 
88
        # additional PAM file to install
 
89
        dh_installpam -pgdm --name=gdm-autologin
 
90
        dh_installinit -a --noscripts
 
91
        dh_installman -a
 
92
        dh_installchangelogs -a ChangeLog
 
93
        dh_strip -a
 
94
        dh_compress -a
 
95
        dh_fixperms -a
 
96
        dh_installdeb -a
 
97
        dh_shlibdeps -a
 
98
        dh_gencontrol -a
 
99
        dh_md5sums -a
 
100
        dh_builddeb -a
36
101
 
37
102
clean::
38
 
        rm -f $(MANPAGES) po/*.gmo po/.intltool-merge-cache config/*.desktop
 
103
        dh_testdir
 
104
        dh_testroot
 
105
        rm -rf debian/tmp
 
106
        [ ! -f Makefile ] || $(MAKE) distclean
 
107
        # unapply patches, if any
 
108
        QUILT_PATCHES=$(PATCH_DIR) \
 
109
                quilt --quiltrc /dev/null pop -a -R || test $$? = 2
 
110
        -rm -rf .pc
 
111
        rm -f install-stamp build-stamp configure-stamp patch-stamp
 
112
        rm -rf debian/debian-moreblue
 
113
        dh_clean $(MANPAGES) \
 
114
                po/*.gmo po/.intltool-merge-cache \
 
115
                config/gnome.desktop config/CDE.desktop config/default.desktop
39
116
 
40
117
%: %.pod
41
 
        pod2man --section=$(shell echo $@ | sed 's/.*\.//') --release="GNOME $(MAJOR_MINOR)" --center="Ubuntu" $< | sed -e 's/debian:://'> $@
 
118
        pod2man --section=$(shell echo $@ | sed 's/.*\.//') \
 
119
                --release="GNOME $(MAJOR_MINOR)" \
 
120
                --center="Debian GNU/Linux" \
 
121
                $< \
 
122
                | sed -e 's/debian:://' >$@
 
123
 
 
124
binary: binary-indep binary-arch
 
125
.PHONY: patch configure build install clean binary-indep binary-arch binary