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
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/-[^-]*$$//')
7
MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
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
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)
14
configure_flags += --disable-dependency-tracking \
16
--mandir=\$${prefix}/share/man \
17
--infodir=\$${prefix}/share/info \
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 \
27
--enable-secureremote=yes
29
ifeq (linux,$(DEB_HOST_ARCH_OS))
30
configure_flags += --with-selinux
32
configure_flags += --without-selinux
13
35
MANPAGES += $(patsubst %.pod,%,$(wildcard debian/*.pod))
14
INSTDIR = $(CURDIR)/debian/gdm
16
MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
18
build/gdm:: $(MANPAGES)
22
perl -pi -e 's#^/etc/gdm/factory-gdm.conf\n##sm' debian/gdm/DEBIAN/conffiles
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
37
PATCH_DIR := debian/patches
39
CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
45
QUILT_PATCHES=$(PATCH_DIR) \
46
quilt --quiltrc /dev/null push -a || test $$? = 2
49
configure: configure-stamp
50
configure-stamp: patch-stamp
52
./configure $(configure_flags) CFLAGS="$(CFLAGS)"
56
build-stamp: configure-stamp $(MANPAGES)
59
sh debian/debian-moreblue.shar
62
install: install-stamp
63
install-stamp: build-stamp
67
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
70
binary-indep: build install
72
binary-arch: build install
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
84
#dh_installlogrotate -a
88
# additional PAM file to install
89
dh_installpam -pgdm --name=gdm-autologin
90
dh_installinit -a --noscripts
92
dh_installchangelogs -a ChangeLog
38
rm -f $(MANPAGES) po/*.gmo po/.intltool-merge-cache config/*.desktop
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
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
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" \
122
| sed -e 's/debian:://' >$@
124
binary: binary-indep binary-arch
125
.PHONY: patch configure build install clean binary-indep binary-arch binary