From 4f03f189194a26d799668c25f59434cfd239a010 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Tue, 5 Jun 2007 17:41:44 +0000 Subject: [PATCH] * improved tardiba target, added pkg_lighttpd.conf git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@56 471cc25b-571d-0410-8e29-1f4f9b506cef --- pkg_lighttpd.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkg_lighttpd.conf diff --git a/pkg_lighttpd.conf b/pkg_lighttpd.conf new file mode 100644 index 0000000..4924b54 --- /dev/null +++ b/pkg_lighttpd.conf @@ -0,0 +1,33 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: target/tardiba/pkg_lighttpd.conf +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +. $confdir/lighttpd.conf +. $base/target/mnemosyne/pkg_conf/lighttpd.conf + +lighttpd_tardibaconf() { + + tardibadocroot=$localstatedir/document-root + mkdir -p $tardibadocroot/vhost/ + + sed -e "s,^server.document-root =\ \"/var/empty\",server.document-root\t=\ \"$tardibadocroot\"," \ + -e "s,^#simple-vhost.server-root .*,simple-vhost.server-root\t=\ \"$tardibadocroot/vhost\"," \ + -e "s,^#simple-vhost.document-root .*,simple-vhost.document-root\t=\ \"/pages/\"," \ + -e "s,^#.*\"mod_fastcgi\",\t\t\t\t\"mod_fastcgi\","\ + -e "s,^#.*\"mod_simple_vhost\",\t\t\t\t\"mod_simple_vhost\","\ + $root$sysconfdir/lighttpd.conf-dist > $root$sysconfdir/lighttpd.conf + + ln -svnf /etc/opt/lighttpd/lighttpd /service/lighttpd +} + +hook_add postmake 7 "lighttpd_tardibaconf"