]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm-DESTDIR.patch
- 2.8.0.1, %%files update
[packages/gdm2.20.git] / gdm-DESTDIR.patch
1 --- gdm-2.3.90.2/config/Makefile.am.wiget       Mon May 20 03:08:44 2002
2 +++ gdm-2.3.90.2/config/Makefile.am     Mon May 20 03:16:27 2002
3 @@ -31,84 +31,84 @@
4         cat $^ | $(srcdir)/extract-shell.sh > gettextfoo.h
5  
6  install-data-hook: gdm.conf gnomerc Gnome
7 -       if test '!' -d $(confdir); then \
8 -               $(mkinstalldirs) $(confdir); \
9 -               chmod 755 $(confdir); \
10 +       if test '!' -d $(DESTDIR)$(confdir); then \
11 +               $(mkinstalldirs) $(DESTDIR)$(confdir); \
12 +               chmod 755 $(DESTDIR)$(confdir); \
13         fi
14 -       if test '!' -f $(confdir)/gdm.conf; then \
15 -               $(INSTALL_DATA) gdm.conf $(confdir)/gdm.conf; \
16 +       if test '!' -f $(DESTDIR)$(confdir)/gdm.conf; then \
17 +               $(INSTALL_DATA) gdm.conf $(DESTDIR)$(confdir)/gdm.conf; \
18         fi
19 -       $(INSTALL_DATA) gdm.conf $(confdir)/factory-gdm.conf
20 +       $(INSTALL_DATA) gdm.conf $(DESTDIR)$(confdir)/factory-gdm.conf
21  
22 -       $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(confdir)/XKeepsCrashing
23 +       $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/XKeepsCrashing
24  
25 -       -if test -f $(localedir)/locale.alias; then \
26 -               cp $(localedir)/locale.alias $(localedir)/locale.alias.orig; \
27 +       -if test -f $(DESTDIR)$(localedir)/locale.alias; then \
28 +               cp $(DESTDIR)$(localedir)/locale.alias $(DESTDIR)$(localedir)/locale.alias.orig; \
29         fi
30 -       $(INSTALL_DATA) $(srcdir)/locale.alias $(localedir)/locale.alias
31 +       $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/locale.alias
32  
33 -       if test '!' -d $(sessdir); then \
34 -               $(mkinstalldirs) $(sessdir); \
35 -               chmod 755 $(sessdir); \
36 +       if test '!' -d $(DESTDIR)$(sessdir); then \
37 +               $(mkinstalldirs) $(DESTDIR)$(sessdir); \
38 +               chmod 755 $(DESTDIR)$(sessdir); \
39         fi
40  
41 -       -if test -f $(sessdir)/Xsession; then \
42 -               cp $(sessdir)/Xsession $(sessdir)/Xsession.orig; \
43 +       -if test -f $(DESTDIR)$(sessdir)/Xsession; then \
44 +               cp $(DESTDIR)$(sessdir)/Xsession $(DESTDIR)$(sessdir)/Xsession.orig; \
45         fi
46 -       $(INSTALL_SCRIPT) $(srcdir)/Xsession $(sessdir)/Xsession
47 +       $(INSTALL_SCRIPT) $(srcdir)/Xsession $(DESTDIR)$(sessdir)/Xsession
48  
49 -       -if test -f $(sessdir)/Gnome; then \
50 -               cp $(sessdir)/Gnome $(sessdir)/Gnome.orig; \
51 +       -if test -f $(DESTDIR)$(sessdir)/Gnome; then \
52 +               cp $(DESTDIR)$(sessdir)/Gnome $(DESTDIR)$(sessdir)/Gnome.orig; \
53         fi
54 -       $(INSTALL_SCRIPT) Gnome $(sessdir)/Gnome
55 +       $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/Gnome
56  
57         -if test -f /etc/redhat-release; then \
58 -               if test -f $(sessdir)/Default; then \
59 -                       cp $(sessdir)/Default $(sessdir)/Default.orig; \
60 +               if test -f $(DESTDIR)$(sessdir)/Default; then \
61 +                       cp $(DESTDIR)$(sessdir)/Default $(DESTDIR)$(sessdir)/Default.orig; \
62                 fi; \
63 -               $(INSTALL_SCRIPT) $(srcdir)/Default.redhat $(sessdir)/Default; \
64 +               $(INSTALL_SCRIPT) $(srcdir)/Default.redhat $(DESTDIR)$(sessdir)/Default; \
65         fi
66  
67 -       if test '!' -d $(initdir); then \
68 -               $(mkinstalldirs) $(initdir); \
69 -               chmod 755 $(initdir); \
70 +       if test '!' -d $(DESTDIR)$(initdir); then \
71 +               $(mkinstalldirs) $(DESTDIR)$(initdir); \
72 +               chmod 755 $(DESTDIR)$(initdir); \
73         fi
74 -       -if test -f $(initdir)/Default; then \
75 -               cp $(initdir)/Default $(initdir)/Default.orig; \
76 +       -if test -f $(DESTDIR)$(initdir)/Default; then \
77 +               cp $(DESTDIR)$(initdir)/Default $(DESTDIR)$(initdir)/Default.orig; \
78         fi
79 -       $(INSTALL_SCRIPT) $(srcdir)/Default $(initdir)/Default
80 +       $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/Default
81  
82 -       if test '!' -d $(predir); then \
83 -               $(mkinstalldirs) $(predir); \
84 -               chmod 755 $(predir); \
85 +       if test '!' -d $(DESTDIR)$(predir); then \
86 +               $(mkinstalldirs) $(DESTDIR)$(predir); \
87 +               chmod 755 $(DESTDIR)$(predir); \
88         fi
89 -       -if test -f $(predir)/Default; then \
90 -               cp $(predir)/Default $(predir)/Default.orig; \
91 +       -if test -f $(DESTDIR)$(predir)/Default; then \
92 +               cp $(DESTDIR)$(predir)/Default $(DESTDIR)$(predir)/Default.orig; \
93         fi
94 -       $(INSTALL_SCRIPT) $(srcdir)/PreSession $(predir)/Default
95 +       $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/Default
96  
97 -       if test '!' -d $(postdir); then \
98 -               $(mkinstalldirs) $(postdir); \
99 -               chmod 755 $(postdir); \
100 +       if test '!' -d $(DESTDIR)$(postdir); then \
101 +               $(mkinstalldirs) $(DESTDIR)$(postdir); \
102 +               chmod 755 $(DESTDIR)$(postdir); \
103         fi
104 -       -if test -f $(postdir)/Default; then \
105 -               cp $(postdir)/Default $(postdir)/Default.orig; \
106 +       -if test -f $(DESTDIR)$(postdir)/Default; then \
107 +               cp $(DESTDIR)$(postdir)/Default $(DESTDIR)$(postdir)/Default.orig; \
108         fi
109 -       $(INSTALL_SCRIPT) $(srcdir)/PostSession $(postdir)/Default
110 +       $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/Default
111  
112 -       if test '!' -d $(gnomercdir); then \
113 -               $(mkinstalldirs) $(gnomercdir); \
114 -               chmod 755 $(gnomercdir); \
115 +       if test '!' -d $(DESTDIR)$(gnomercdir); then \
116 +               $(mkinstalldirs) $(DESTDIR)$(gnomercdir); \
117 +               chmod 755 $(DESTDIR)$(gnomercdir); \
118         fi
119  
120 -       if test '!' -f $(gnomercdir)/gnomerc; then \
121 -               $(INSTALL_SCRIPT) gnomerc $(gnomercdir)/gnomerc; \
122 +       if test '!' -f $(DESTDIR)$(gnomercdir)/gnomerc; then \
123 +               $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/gnomerc; \
124         fi
125  
126 -       if test '!' -d $(authdir); then \
127 -               $(mkinstalldirs) $(authdir); \
128 -               chown gdm.gdm $(authdir); \
129 -               chmod 750 $(authdir); \
130 +       if test '!' -d $(DESTDIR)$(authdir); then \
131 +               $(mkinstalldirs) $(DESTDIR)$(authdir); \
132 +               chown gdm.gdm $(DESTDIR)$(authdir) || true ; \
133 +               chmod 750 $(DESTDIR)$(authdir); \
134         fi
135  
136         system=`uname`; \
This page took 0.257817 seconds and 3 git commands to generate.