From: freetz Date: Mon, 15 May 2006 17:26:57 +0000 (+0000) Subject: - don't change any rights at build time! X-Git-Tag: auto/th/gdm-2_15_5-1~7 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=764265f4153d46fe14594d2b08a06f1edbd0a4cb;p=packages%2Fgdm.git - don't change any rights at build time! Changed files: gdm-install.patch -> 1.1 --- diff --git a/gdm-install.patch b/gdm-install.patch new file mode 100644 index 0000000..84fbd50 --- /dev/null +++ b/gdm-install.patch @@ -0,0 +1,127 @@ +diff -aurN gdm-2.14.6.orig/config/Makefile.am gdm-2.14.6/config/Makefile.am +--- gdm-2.14.6.orig/config/Makefile.am 2006-05-09 21:47:17.000000000 +0200 ++++ gdm-2.14.6/config/Makefile.am 2006-05-15 19:20:27.691255168 +0200 +@@ -98,19 +97,15 @@ + install-data-hook: gdm.conf gdm.conf-custom Xsession Init PostSession PreSession $(DESKTOP_FILES) $(GDMPREFETCHLIST) + if test '!' -d $(DESTDIR)$(confdir); then \ + $(mkinstalldirs) $(DESTDIR)$(confdir); \ +- chmod 755 $(DESTDIR)$(confdir); \ + fi + if test '!' -d $(DESTDIR)$(dmconfdir); then \ + $(mkinstalldirs) $(DESTDIR)$(dmconfdir); \ +- chmod 755 $(DESTDIR)$(dmconfdir); \ + fi + if test '!' -d `dirname $(DESTDIR)$(GDM_DEFAULTS_CONF)`; then \ + $(mkinstalldirs) `dirname $(DESTDIR)$(GDM_DEFAULTS_CONF)`; \ +- chmod 755 `dirname $(DESTDIR)$(GDM_DEFAULTS_CONF)`; \ + fi + if test '!' -d `dirname $(DESTDIR)$(GDM_CUSTOM_CONF)`; then \ + $(mkinstalldirs) `dirname $(DESTDIR)$(GDM_CUSTOM_CONF)`; \ +- chmod 755 `dirname $(DESTDIR)$(GDM_CUSTOM_CONF)`; \ + fi + if test -f $(DESTDIR)$(confdir)/gdm.conf; then \ + if ! cmp -s $(DESTDIR)$(confdir)/gdm.conf $(DESTDIR)$(confdir)/factory-gdm.conf > /dev/null 2>&1 ; then \ +@@ -122,10 +117,8 @@ + fi; \ + fi + $(INSTALL_DATA) gdm.conf $(DESTDIR)$(GDM_DEFAULTS_CONF) +- chmod 444 $(DESTDIR)$(GDM_DEFAULTS_CONF) + if test '!' -f $(DESTDIR)$(GDM_CUSTOM_CONF); then \ + $(INSTALL_DATA) $(srcdir)/gdm.conf-custom $(DESTDIR)$(GDM_CUSTOM_CONF); \ +- chmod 644 $(DESTDIR)$(GDM_CUSTOM_CONF); \ + fi + $(INSTALL_DATA) gdm.conf `dirname $(DESTDIR)$(GDM_DEFAULTS_CONF)`/factory-`basename $(DESTDIR)$(GDM_DEFAULTS_CONF)` + +@@ -139,12 +132,10 @@ + + if test '!' -d $(DESTDIR)$(bisessdir); then \ + $(mkinstalldirs) $(DESTDIR)$(bisessdir); \ +- chmod 755 $(DESTDIR)$(bisessdir); \ + fi + + if test '!' -d $(DESTDIR)$(instsessdir); then \ + $(mkinstalldirs) $(DESTDIR)$(instsessdir); \ +- chmod 755 $(DESTDIR)$(instsessdir); \ + fi + + -if test -f $(DESTDIR)$(bisessdir)/Default.desktop; then \ +@@ -154,7 +145,6 @@ + cp -f $(DESTDIR)$(bisessdir)/default.desktop $(DESTDIR)$(bisessdir)/default.desktop.orig; \ + fi + $(INSTALL_DATA) default.desktop $(DESTDIR)$(bisessdir)/default.desktop +- chmod 644 $(DESTDIR)$(bisessdir)/default.desktop + + -if test -f $(DESTDIR)$(bisessdir)/gnome.desktop; then \ + mv -f $(DESTDIR)$(bisessdir)/gnome.desktop $(DESTDIR)$(bisessdir)/gnome.desktop.orig; \ +@@ -163,7 +153,6 @@ + cp -f $(DESTDIR)$(instsessdir)/gnome.desktop $(DESTDIR)$(instsessdir)/gnome.desktop.orig; \ + fi + $(INSTALL_DATA) gnome.desktop $(DESTDIR)$(instsessdir)/gnome.desktop +- chmod 644 $(DESTDIR)$(instsessdir)/gnome.desktop + + -if test -f /usr/dt/bin/Xsession; then \ + if test -f $(DESTDIR)$(bisessdir)/CDE.desktop; then \ +@@ -177,7 +166,6 @@ + + if test '!' -d $(DESTDIR)$(initdir); then \ + $(mkinstalldirs) $(DESTDIR)$(initdir); \ +- chmod 755 $(DESTDIR)$(initdir); \ + fi + -if test -f $(DESTDIR)$(initdir)/Default; then \ + cp -f $(DESTDIR)$(initdir)/Default $(DESTDIR)$(initdir)/Default.orig; \ +@@ -186,13 +174,11 @@ + + if test '!' -d $(DESTDIR)$(postlogindir); then \ + $(mkinstalldirs) $(DESTDIR)$(postlogindir); \ +- chmod 755 $(DESTDIR)$(postlogindir); \ + fi + $(INSTALL_SCRIPT) $(srcdir)/PostLogin $(DESTDIR)$(postlogindir)/Default.sample + + if test '!' -d $(DESTDIR)$(predir); then \ + $(mkinstalldirs) $(DESTDIR)$(predir); \ +- chmod 755 $(DESTDIR)$(predir); \ + fi + -if test -f $(DESTDIR)$(predir)/Default; then \ + cp -f $(DESTDIR)$(predir)/Default $(DESTDIR)$(predir)/Default.orig; \ +@@ -201,7 +187,6 @@ + + if test '!' -d $(DESTDIR)$(postdir); then \ + $(mkinstalldirs) $(DESTDIR)$(postdir); \ +- chmod 755 $(DESTDIR)$(postdir); \ + fi + -if test -f $(DESTDIR)$(postdir)/Default; then \ + cp -f $(DESTDIR)$(postdir)/Default $(DESTDIR)$(postdir)/Default.orig; \ +@@ -210,26 +195,20 @@ + + if test '!' -d $(DESTDIR)$(gnomercdir); then \ + $(mkinstalldirs) $(DESTDIR)$(gnomercdir); \ +- chmod 755 $(DESTDIR)$(gnomercdir); \ + fi + + if test '!' -d $(DESTDIR)$(logdir); then \ + $(mkinstalldirs) $(DESTDIR)$(logdir); \ +- chmod 755 $(DESTDIR)$(logdir); \ +- chown root:root $(DESTDIR)$(logdir); \ + fi + + if test '!' -d $(DESTDIR)$(authdir); then \ + $(mkinstalldirs) $(DESTDIR)$(authdir); \ +- chmod 1770 $(DESTDIR)$(authdir); \ +- chown root:gdm $(DESTDIR)$(authdir); \ + fi + + system=`uname`; \ + if test -f /usr/include/security/pam_appl.h; then \ + if test '!' -d $(DESTDIR)$(PAM_PREFIX)/pam.d; then \ + $(mkinstalldirs) $(DESTDIR)$(PAM_PREFIX)/pam.d; \ +- chmod 755 $(DESTDIR)$(PAM_PREFIX)/pam.d; \ + fi; \ + if test $$system = Linux && test '!' -f $(DESTDIR)$(PAM_PREFIX)/pam.d/gdm; then \ + $(INSTALL_DATA) gdm $(DESTDIR)$(PAM_PREFIX)/pam.d/gdm; \ +@@ -251,6 +230,5 @@ + cp -f $(DESTDIR)$(instsessdir)/ssh.desktop $(DESTDIR)$(instsessdir)/ssh.desktop.orig; \ + fi; \ + $(INSTALL_SCRIPT) ssh.desktop $(DESTDIR)$(instsessdir)/ssh.desktop; \ +- chmod 644 $(DESTDIR)$(instsessdir)/ssh.desktop; \ + fi +