aboutsummaryrefslogtreecommitdiff
path: root/x11/gdm2/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-09 22:13:43 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-09 22:13:43 +0000
commit45803d45a401a99720fe1f6e2a98ef79ddb697f0 (patch)
treebfb0326d9af9d0d4ad7ecbed9f04739747165617 /x11/gdm2/files
parentb038a6711f8b9ea1274001547152bdddcea27bb6 (diff)
downloadports-45803d45a401a99720fe1f6e2a98ef79ddb697f0.tar.gz
ports-45803d45a401a99720fe1f6e2a98ef79ddb697f0.zip
Notes
Diffstat (limited to 'x11/gdm2/files')
-rw-r--r--x11/gdm2/files/gdm.sh.sample21
-rw-r--r--x11/gdm2/files/patch-ab21
-rw-r--r--x11/gdm2/files/patch-config_Makefile.in101
-rw-r--r--x11/gdm2/files/patch-gui::gdmsetup.c11
4 files changed, 149 insertions, 5 deletions
diff --git a/x11/gdm2/files/gdm.sh.sample b/x11/gdm2/files/gdm.sh.sample
new file mode 100644
index 000000000000..6390bea233ee
--- /dev/null
+++ b/x11/gdm2/files/gdm.sh.sample
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+PREFIX=%%PREFIX%%
+
+case "$1" in
+start)
+ ${PREFIX}/bin/gdm
+ ;;
+stop)
+ /usr/bin/killall gdm 2>/dev/null
+ ;;
+*)
+ echo "Usage: `basename $0` start | stop"
+ exit 64
+ ;;
+
+esac
+
+exit 0
diff --git a/x11/gdm2/files/patch-ab b/x11/gdm2/files/patch-ab
index e98b9c539a34..bf064d59ae71 100644
--- a/x11/gdm2/files/patch-ab
+++ b/x11/gdm2/files/patch-ab
@@ -1,12 +1,12 @@
---- config/gdm.conf.in.orig Sat Jun 1 12:10:13 2002
-+++ config/gdm.conf.in Tue Jun 11 16:45:25 2002
+--- config/gdm.conf.in.orig Wed Aug 7 23:50:26 2002
++++ config/gdm.conf.in Fri Aug 9 17:13:47 2002
@@ -17,7 +17,7 @@
# want gdm to kill/restart the server, turn this on
AlwaysRestartServer=false
Configurator=@EXPANDED_GDMCONFIGDIR@/gdmsetup --disable-sound --disable-crash-dialog
-GnomeDefaultSession=@EXPANDED_DATADIR@/gnome/default.session
+GnomeDefaultSession=@EXPANDED_DATADIR@/default.session
- Chooser=@EXPANDED_BINDIR@/gdmchooser --disable-sound --disable-crash-dialog
+ Chooser=@EXPANDED_BINDIR@/gdmchooser
DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
DisplayInitDir=@EXPANDED_SYSCONFDIR@/gdm/Init
@@ -26,7 +26,7 @@
@@ -44,7 +44,7 @@
[gui]
-GtkRC=@EXPANDED_DATADIR@/themes/Default/gtk/gtkrc
-+GtkRC=@EXPANDED_DATADIR@/../themes/Default/gtk/gtkrc
++GtkRC=@EXPANDED_DATADIR@/../themes/Default/gtk-2.0/gtkrc
MaxIconWidth=128
MaxIconHeight=128
@@ -57,10 +57,21 @@
# These are things excluded from the face browser, not from logging in
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,gdm,postgres,pvm,rpm
GlobalFaceDir=@EXPANDED_DATADIR@/faces/
-@@ -151,5 +151,5 @@
+@@ -159,7 +159,7 @@
[server-Standard]
name=Standard server
-command=/usr/X11R6/bin/X
+command=@EXPANDED_BINDIR@/X
flexible=true
+
+ # To use this server type you should add -query host or -indirect host
+@@ -167,7 +167,7 @@
+ [server-Terminal]
+ name=Terminal server
+ # Add -terminate to make things behave more nicely
+-command=/usr/X11R6/bin/X -terminate
++command=@EXPANDED_BINDIR@/X -terminate
+ # Make this not appear in the flexible servers (we need extra params
+ # anyway, and terminate would be bad for xdmcp)
+ flexible=false
diff --git a/x11/gdm2/files/patch-config_Makefile.in b/x11/gdm2/files/patch-config_Makefile.in
new file mode 100644
index 000000000000..9eeef7f7cf7c
--- /dev/null
+++ b/x11/gdm2/files/patch-config_Makefile.in
@@ -0,0 +1,101 @@
+--- config/Makefile.in.orig Fri Aug 9 17:14:27 2002
++++ config/Makefile.in Fri Aug 9 17:34:18 2002
+@@ -282,71 +282,73 @@
+ fi
+ $(INSTALL_DATA) gdm.conf $(DESTDIR)$(confdir)/factory-gdm.conf
+
+- $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/XKeepsCrashing
++ if test '!' -f $(DESTDIR)$(confdir)/XKeepsCrashing; then \
++ $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/XKeepsCrashing; \
++ fi
++ $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/factory-XKeepsCrashing
+
+- -if test -f $(DESTDIR)$(localedir)/locale.alias; then \
+- cp $(DESTDIR)$(localedir)/locale.alias $(DESTDIR)$(localedir)/locale.alias.orig; \
++ if test '!' -f $(DESTDIR)$(localedir)/locale.alias; then \
++ $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/locale.alias; \
+ fi
+- $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/locale.alias
++ $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/factory-locale.alias
+
+ if test '!' -d $(DESTDIR)$(sessdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(sessdir); \
+ chmod 755 $(DESTDIR)$(sessdir); \
+ fi
+
+- -if test -f $(DESTDIR)$(sessdir)/Xsession; then \
+- cp $(DESTDIR)$(sessdir)/Xsession $(DESTDIR)$(sessdir)/Xsession.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Xsession; then \
++ $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/Xsession; \
+ fi
+- $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/Xsession
++ $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/factory-Xsession
+
+- -if test -f $(DESTDIR)$(sessdir)/Gnome; then \
+- cp $(DESTDIR)$(sessdir)/Gnome $(DESTDIR)$(sessdir)/Gnome.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Gnome; then \
++ $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/Gnome; \
+ fi
+- $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/Gnome
++ $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/factory-Gnome
+
+ -if test -f /usr/bin/switchdesk; then \
+- if test -f $(DESTDIR)$(sessdir)/Default; then \
+- cp $(DESTDIR)$(sessdir)/Default $(DESTDIR)$(sessdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Default; then \
++ $(LN_S) -f $(sessdir)/Xsession $(DESTDIR)$(sessdir)/Default; \
+ fi; \
+- $(LN_S) -f $(sessdir)/Xsession $(DESTDIR)$(sessdir)/Default; \
+ fi
+
+ if test '!' -d $(DESTDIR)$(initdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(initdir); \
+ chmod 755 $(DESTDIR)$(initdir); \
+ fi
+- -if test -f $(DESTDIR)$(initdir)/Default; then \
+- cp $(DESTDIR)$(initdir)/Default $(DESTDIR)$(initdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(initdir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(predir); then \
+ $(mkinstalldirs) $(DESTDIR)$(predir); \
+ chmod 755 $(DESTDIR)$(predir); \
+ fi
+- -if test -f $(DESTDIR)$(predir)/Default; then \
+- cp $(DESTDIR)$(predir)/Default $(DESTDIR)$(predir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(predir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(postdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(postdir); \
+ chmod 755 $(DESTDIR)$(postdir); \
+ fi
+- -if test -f $(DESTDIR)$(postdir)/Default; then \
+- cp $(DESTDIR)$(postdir)/Default $(DESTDIR)$(postdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(postdir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(gnomercdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(gnomercdir); \
+ chmod 755 $(DESTDIR)$(gnomercdir); \
+ fi
+
+- -if test -f $(DESTDIR)$(gnomercdir)/gnomerc; then \
+- cp $(DESTDIR)$(gnomercdir)/gnomerc $(DESTDIR)$(gnomercdir)/gnomerc.orig; \
++ if test '!' -f $(DESTDIR)$(gnomercdir)/gnomerc; then \
++ $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/gnomerc; \
+ fi
+- $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/gnomerc
++ $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/factory-gnomerc
+
+ if test '!' -d $(DESTDIR)$(authdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(authdir); \
diff --git a/x11/gdm2/files/patch-gui::gdmsetup.c b/x11/gdm2/files/patch-gui::gdmsetup.c
new file mode 100644
index 000000000000..33924be670f7
--- /dev/null
+++ b/x11/gdm2/files/patch-gui::gdmsetup.c
@@ -0,0 +1,11 @@
+--- gui/gdmsetup.c.orig Sun Aug 4 16:08:52 2002
++++ gui/gdmsetup.c Sun Aug 4 16:09:09 2002
+@@ -1512,7 +1512,7 @@
+ success = TRUE;
+
+ /* HACK! */
+- cmd = g_strdup_printf ("/bin/chown -R root.root %s", dir);
++ cmd = g_strdup_printf ("/usr/sbin/chown -R gdm:gdm %s", dir);
+ system (cmd);
+ g_free (cmd);
+