|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: target/tardiba/pkg_lighttpd.conf
|
|
# Copyright (C) 2007 - 2008 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 $sysconfdir/lighttpd $root/var/service/lighttpd
|
|
}
|
|
|
|
hook_add postmake 7 "lighttpd_tardibaconf"
|