From e8c428421d2b501175bce93295b3b949f5963d43 Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 3 Jan 2011 10:48:06 +0000 Subject: [PATCH] Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_qt-4@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/sysconfig/profile.d/qtlib | 30 +++++++++++++++ tmp/postinstall | 69 +++++++++++++++++++++++++++++++++++ tmp/postremove | 63 ++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 etc/sysconfig/profile.d/qtlib create mode 100644 tmp/postinstall create mode 100644 tmp/postremove diff --git a/etc/sysconfig/profile.d/qtlib b/etc/sysconfig/profile.d/qtlib new file mode 100644 index 0000000..8d9e028 --- /dev/null +++ b/etc/sysconfig/profile.d/qtlib @@ -0,0 +1,30 @@ +#!/bin/bash +#System Initialisierungen für QT Library +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.3 2007/03/06 09:38:40 kueller +#Abfrage ueber pfad tiefe sicherer gemacht +# +#Revision 1.2 2007/02/10 22:15:39 kueller +#Anpassung an 32/64 Bit Version +# +#Revision 1.1.1.1 2001/09/23 12:36:10 kueller +#Neustart wg. Datenverlust +# +#Revision 1.2 2001/08/17 21:39:38 kueller +# +#Header hinzugefügt +# +# + + +QTDIR=/opt/qt-4 +MANPATH=$MANPATH:/opt/qt-4/doc/man +PATH=$PATH:/opt/qt-4/bin +PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt-4/lib/pkgconfig +export QTDIR MANPATH PATH PKG_CONFIG_PATH diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..a1c0366 --- /dev/null +++ b/tmp/postinstall @@ -0,0 +1,69 @@ +#!/bin/bash +#Framework, welches ein komplettes Linux System aus den Sourcen erstellt +#dieses Framework wird im CVS Repository +#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt +# +#Lage dieser Datei im Archiv: $Source$ +# +#(c) Rainmaker MultiMedia OHG +#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. +# +#Beschreibung: +#postinstall script für die qt library. Es werden die notwendigen +#Einträge in /etc/ld.so.conf erzeugt +# +#Aufrufparameter: +#keine +# +#Letzte Änderung von: $Author$ +#Datum der letzten Änderung: $Date$ +#Version der Datei: $Revision$ +# +#$Log$ +#Revision 1.4 2007/02/10 22:36:10 kueller +#lib64 wird jetzt mit in ld.so.conf uebernommen. +# +#Revision 1.3 2002/10/09 08:09:57 kueller +#Anpassung an neues chroot Verhalten des installpkg scriptes. +#Ausserdem Einsatz des neuen GPL Monsum Projekt Headers. +# +#Revision 1.2 2002/10/04 22:02:43 kueller +#$1 nicht überall verwendet (check von ld.so.conf!!) -> korrigiert +# +#Revision 1.1.1.1 2001/09/23 12:36:10 kueller +#Neustart wg. Datenverlust +# +#Revision 1.3 2001/09/09 00:30:45 cvs +# +#Bugfix - erste Zeile sollte keine Leerzeile sein +# +#Revision 1.2 2001/08/17 21:43:34 kueller +# +#Nach Erweiterung von ld.so.conf muß ldconfig laufen, um die neuen Librarys +#ins System einzubinden. +# +#Revision 1.1.1.1 2001/08/17 21:38:32 kueller +#AddOns fuer QT-Library +# +# + +INSTALLED=`grep "/opt/qt-4/lib" /etc/ld.so.conf` +if [ ! "$INSTALLED" ]; then + echo "/opt/qt-4/lib" >>/etc/ld.so.conf + if [ -d /opt/qt-4/lib64 ]; then + echo "/opt/qt-4/lib64" >>/etc/ld.so.conf + fi +fi +ldconfig diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..f8b4ba5 --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,63 @@ +#!/bin/bash +#Framework, welches ein komplettes Linux System aus den Sourcen erstellt +#dieses Framework wird im CVS Repository +#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt +# +#Lage dieser Datei im Archiv: $Source$ +# +#(c) Rainmaker MultiMedia OHG +#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. +# +#Beschreibung: +#postinstall script für die qt library. Es werden die notwendigen +#Einträge in /etc/ld.so.conf erzeugt +# +#Aufrufparameter: +#keine +# +#Letzte Änderung von: $Author$ +#Datum der letzten Änderung: $Date$ +#Version der Datei: $Revision$ +# +#$Log$ +#Revision 1.4 2007/02/10 22:36:10 kueller +#lib64 wird jetzt mit in ld.so.conf uebernommen. +# +#Revision 1.3 2002/10/09 08:09:57 kueller +#Anpassung an neues chroot Verhalten des installpkg scriptes. +#Ausserdem Einsatz des neuen GPL Monsum Projekt Headers. +# +#Revision 1.2 2002/10/04 22:02:43 kueller +#$1 nicht überall verwendet (check von ld.so.conf!!) -> korrigiert +# +#Revision 1.1.1.1 2001/09/23 12:36:10 kueller +#Neustart wg. Datenverlust +# +#Revision 1.3 2001/09/09 00:30:45 cvs +# +#Bugfix - erste Zeile sollte keine Leerzeile sein +# +#Revision 1.2 2001/08/17 21:43:34 kueller +# +#Nach Erweiterung von ld.so.conf muß ldconfig laufen, um die neuen Librarys +#ins System einzubinden. +# +#Revision 1.1.1.1 2001/08/17 21:38:32 kueller +#AddOns fuer QT-Library +# +# + +sed -i -e "/^\/opt\/qt-4\/lib/d" /etc/ld.so.conf +sed -i -e "/^\/opt\/qt-4\/lib64/d" /etc/ld.so.conf