linamh/net-misc/nxnode/files/nxnode-3.4.0-setup.patch
Mario Fetka 9f3c9b2c2a Change ebuild layout
Package-Manager: portage-2.2.20
RepoMan-Options: --force
2016-01-10 20:24:36 +01:00

40 lines
1.2 KiB
Diff

--- scripts/setup/nxnode.orig 2009-09-24 18:12:36.000000000 +0200
+++ scripts/setup/nxnode 2009-12-15 21:22:27.000000000 +0100
@@ -481,7 +481,7 @@
echo "#
# Specify path and name of the command to start the GNOME session.
#
-CommandStartGnome=\"$DBUS_PATH --exit-with-session gnome-session\"
+CommandStartGnome=\"/etc/X11/Sessions/Gnome\"
" >> $CONFIG_FILE;
fi
@@ -525,7 +525,7 @@
cmdGnome="/etc/X11/Xsession gnome-session"
elif [ $DBUS = "1" ] && [ "x$DBUS_PATH" != "x" ];
then
- cmdGnome="$DBUS_PATH --exit-with-session gnome-session"
+ cmdGnome="/etc/X11/Sessions/Gnome"
else
cmdGnome="gnome-session"
fi
@@ -2489,6 +2497,10 @@
system=fedora
fi
+if [ -d /usr/portage ]; then
+ system=gentoo
+fi
+
if [ "x$system" = "x" -a -f /etc/release ];
then
system=solaris
@@ -2523,6 +2535,7 @@
"fedora" ) ;;
"debian" ) ;;
"solaris" ) ;;
+ "gentoo" );;
"" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;;
* ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;;
esac