commit cfa49d66c6b03a964165777f89139a97aee5b99d Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_gnomeconf@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/sysconfig/profile.d/gnome b/etc/sysconfig/profile.d/gnome new file mode 100644 index 0000000..66c9ff1 --- /dev/null +++ b/etc/sysconfig/profile.d/gnome @@ -0,0 +1,13 @@ +#!/bin/bash + +export GNOME_PREFIX=/opt/gnome +export LIBGLADE_EXE_PREFIX=${GNOME_PREFIX} + +if [ $EUID -eq 0 ]; then + export PATH="${PATH}:${GNOME_PREFIX}/sbin" +fi +export PATH="${PATH}:${GNOME_PREFIX}/bin" + +export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${GNOME_PREFIX}/lib/pkgconfig" +export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${GNOME_PREFIX}/share" +export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg" diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..0950af8 --- /dev/null +++ b/tmp/postinstall @@ -0,0 +1,8 @@ +sed -i "//a\ /opt/gnome/share/dbus-1/services" /etc/sysconfig/dbus-1/session.conf + +if ! grep -q "/opt/gnome/lib" /etc/ld.so.conf; then + echo "/opt/gnome/lib" >>/etc/ld.so.conf + if [ -d /lib64 ]; then + echo "/opt/gnome/lib64" >>/etc/ld.so.conf + fi +fi diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..32230a8 --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,58 @@ +#!/bin/bash +#Framework, welches ein komplettes Linux System aus den Sourcen erstellt +#dieses Framework wird im CVS Repository +#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt +# +#Lage dieser Datei im Archiv: $Source$ +# +#(c) 2003 Harald Kueller, Germany +#This program is free software; you can redistribute it and/or +#modify ist under the terms of the GNU General Public License +#as published by the Free Software Foundation; either version +#2 of the License, or (at your option) any later version. +# +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +#See the GNU General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not write to the Free Software Foundation, +#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +#Postinstall für WindowManager: +# +#Letzte Änderung von: $Author: kueller $ +#Datum der letzten Änderung: $Date: 2009-06-03 17:22:14 +0000 (Mi, 03 Jun 2009) $ +#Version der Datei: $Revision: 4785 $ +# +#$Log$ +#Revision 1.5 2007/03/26 07:41:47 kueller +#An neue Java Version angepasst. Wenn irgendwann 64 Bit plugin support +#fuer netscape/firefox existiert, funktioniert das hoffentlicha auch +# +#Revision 1.4 2007/02/14 19:28:51 kueller +#Anpassung an 32/64 Bit Environment +# +#Revision 1.3 2006/06/22 10:36:02 kueller +#javaplugin wird erst installiert, wenn auch wirklich vorhanden +# +#Revision 1.2 2006/06/14 22:20:59 kueller +#java plugin wird nun per postinstall aktiviert +# +#Revision 1.1.1.1 2006/06/07 12:20:55 kueller +#Mozilla wird durch firefox und thunderbird ersetzt. +# +#Revision 1.2 2003/12/03 07:59:49 kueller +#Standart installation von "make install" funktioniert nicht. Es muessen +#Alle libs und binarys ins gleiche Verzeichniss (Hier: /opt/mozilla) gespielt +#werden. Systemkonfig wird nun entsprechend erstellt +# +#Revision 1.1 2003/11/29 09:16:26 kueller +#Mozilla braucht inzwischen auch eine eintragung in /etc/ld.so.conf +# +# + +sed -i -e "/^\/opt\/gnome\/lib/d" /etc/ld.so.conf +sed -i -e "/^\/opt\/gnome\/lib64/d" /etc/ld.so.conf +sed -i "/\/opt\/gnome\/share\/dbus-1\/services<\/servicedir>/d" /etc/sysconfig/dbus-1/session.conf