Tardiba - The Tasmanian Devil Database Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/tardiba/pkg_lighttpd.conf
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. . $confdir/lighttpd.conf
  15. . $base/target/mnemosyne/pkg_conf/lighttpd.conf
  16. lighttpd_tardibaconf() {
  17. tardibadocroot=$localstatedir/document-root
  18. mkdir -p $tardibadocroot/vhost/
  19. sed -e "s,^server.document-root =\ \"/var/empty\",server.document-root\t=\ \"$tardibadocroot\"," \
  20. -e "s,^#simple-vhost.server-root .*,simple-vhost.server-root\t=\ \"$tardibadocroot/vhost\"," \
  21. -e "s,^#simple-vhost.document-root .*,simple-vhost.document-root\t=\ \"/pages/\"," \
  22. -e "s,^#.*\"mod_fastcgi\",\t\t\t\t\"mod_fastcgi\","\
  23. -e "s,^#.*\"mod_simple_vhost\",\t\t\t\t\"mod_simple_vhost\","\
  24. $root$sysconfdir/lighttpd.conf-dist > $root$sysconfdir/lighttpd.conf
  25. ln -svnf $sysconfdir/lighttpd $root/var/service/lighttpd
  26. }
  27. hook_add postmake 7 "lighttpd_tardibaconf"