From 9ac27c3a82ebf1b246e4d0cd0e55dda29a37255b 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_httpd@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/apache2 | 12 +++++++ etc/init/httpd.conf | 14 ++++++++ etc/sysconfig/profile.d/apache2 | 30 ++++++++++++++++ init/genpkg | 47 ++++++++++++++++++++++++ tmp/postinstall | 64 +++++++++++++++++++++++++++++++++ tmp/postremove | 60 +++++++++++++++++++++++++++++++ 6 files changed, 227 insertions(+) create mode 100644 etc/init.d/apache2 create mode 100644 etc/init/httpd.conf create mode 100644 etc/sysconfig/profile.d/apache2 create mode 100644 init/genpkg create mode 100644 tmp/postinstall create mode 100644 tmp/postremove diff --git a/etc/init.d/apache2 b/etc/init.d/apache2 new file mode 100644 index 0000000..53fb40e --- /dev/null +++ b/etc/init.d/apache2 @@ -0,0 +1,12 @@ +#!/bin/sh +#apache2 startup des systemvinit prozesses +# +#$Author$ +#$Date$ +#$Revision$ +# + +source /etc/init.d/functions + +loadproc /opt/apache2/bin/apachectl $1 + diff --git a/etc/init/httpd.conf b/etc/init/httpd.conf new file mode 100644 index 0000000..26ccc3f --- /dev/null +++ b/etc/init/httpd.conf @@ -0,0 +1,14 @@ +description "Start the apache web server" +author "Harald Kueller " +version 1.0 +emits none special + +start on (runlevel [345] and (started ifup)) +stop on runlevel [0126] + +console none + +expect fork + +exec /opt/apache2/bin/httpd -k start + diff --git a/etc/sysconfig/profile.d/apache2 b/etc/sysconfig/profile.d/apache2 new file mode 100644 index 0000000..19ec672 --- /dev/null +++ b/etc/sysconfig/profile.d/apache2 @@ -0,0 +1,30 @@ +#!/bin/bash +# Initialisierungen fuer apache +# (c) Rainmaker MultiMedia OHG +# +# $Author$ +# $Date$ +# $Revision$ +# +# $Log$ +# Revision 1.2 2006/09/12 08:11:00 kueller +# pkgconfig path wird jetzt korrekt gesetzt +# +# Revision 1.1.1.1 2006/05/11 09:22:16 kueller +# Apache2 archive kommt als httpd daher - neues module, neue initialisierungs addons +# +# Revision 1.2 2002/01/12 01:07:53 kueller +# Anpassungen an neues Apache Layout +# +# Revision 1.1 2002/01/12 01:06:41 kueller +# Setzen des Pfades fuer Apache +# +# + +PATH=$PATH:/opt/apache2/bin +MANPATH=$MANPATH:/opt/apache/man +PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/apache2/lib/pkgconfig +if [ -d /opt/apache2/lib64/pkgconfig ]; then + PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/apache2/lib64/pkgconfig +fi +export PATH MANPATH diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..aa73ccb --- /dev/null +++ b/init/genpkg @@ -0,0 +1,47 @@ +#!/bin/bash +#Automatische Generierung von glibc +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.4 2006/05/28 21:49:18 segler +#eine tilde zuviel +# +#Revision 1.3 2006/05/28 21:37:39 segler +#chmod apache changed to chmod apache2 +# +#Revision 1.2 2006/05/23 12:08:05 segler +#apache wird zu apache2 +# +#Revision 1.1.1.1 2006/05/11 09:22:16 kueller +#Apache2 archive kommt als httpd daher - neues module, neue initialisierungs addons +# +#Revision 1.3 2001/10/17 08:16:53 kueller +#Berechtigungen (start/stop Script) werden richtig gesetzt +# +#Revision 1.2 2001/10/08 08:38:19 kueller +#Header hinzugefügt, bzw. korrigiert +# +# + +if [ -d /var/install/sysvinit* ]; then + WDIR=`pwd` + cd etc/init.d + chmod 755 apache2 + mkdir rc{0,1,2,3,4,5,6}.d + for i in 0 1 6; do + cd rc$i.d + ln -s ../apache2 K02apache2 + cd .. + done + for i in 2 3 4 5; do + cd rc$i.d + ln -s ../apache2 S21apache2 + cd .. + done + cd $WDIR +fi diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..b944018 --- /dev/null +++ b/tmp/postinstall @@ -0,0 +1,64 @@ +#!/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 für kde. Erzeugt für kdm die Einträge der bekannten +#windowmanager (derzeit: xfce, WMaker, Haze und kde3). Ausserdem +#werden die notwendigen Einträge für /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/04/29 12:21:56 kueller +#GID=27, UID=50 festgelegt +# +#Revision 1.3 2006/09/12 07:47:38 kueller +#Anpassung an 32 /64 Bit Viitor +# +#Revision 1.2 2006/06/28 08:38:26 segler +#Apache will unter User "www" Gruppe "www" laufen +# +#Revision 1.1.1.1 2006/05/11 09:22:16 kueller +#Apache2 archive kommt als httpd daher - neues module, neue initialisierungs addons +# +# + +#/opt/kde/lib in ldconfig aufnehmen +LIBINST=`grep "/opt/apache2/lib" /etc/ld.so.conf` +if [ ! "$LIBINST" ]; then + echo "/opt/apache2/lib" >>/etc/ld.so.conf + if [ -d /opt/apache2/lib64 ]; then + echo "/opt/apache2/lib64" >>/etc/ld.so.conf + fi +fi + +if ! getent group www; then + groupadd -g 27 www +fi +if ! getent passwd www; then + useradd -u 50 -g www -d /opt/apache2 -s /bin/false www +fi diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..10a99bc --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,60 @@ +#!/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 für kde. Erzeugt für kdm die Einträge der bekannten +#windowmanager (derzeit: xfce, WMaker, Haze und kde3). Ausserdem +#werden die notwendigen Einträge für /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/04/29 12:21:56 kueller +#GID=27, UID=50 festgelegt +# +#Revision 1.3 2006/09/12 07:47:38 kueller +#Anpassung an 32 /64 Bit Viitor +# +#Revision 1.2 2006/06/28 08:38:26 segler +#Apache will unter User "www" Gruppe "www" laufen +# +#Revision 1.1.1.1 2006/05/11 09:22:16 kueller +#Apache2 archive kommt als httpd daher - neues module, neue initialisierungs addons +# +# + +#/opt/kde/lib in ldconfig aufnehmen + +sed -i -e "/\/opt\/apache2\/lib/d" /etc/ld.so.conf +sed -i -e "/\/opt\/apache2\/lib64/d" /etc/ld.so.conf + +if getent passwd www; then + userdel www +fi +if getent group www; then + groupdel www +fi