summaryrefslogtreecommitdiff
path: root/ikiwiki.setup
blob: 44c4f3106467b6c497e2b6326838cd1033196608 (plain)
  1. #!/usr/bin/perl
  2. # Configuration file for ikiwiki.
  3. # Passing this to ikiwiki --setup will make ikiwiki generate tw
  4. # wrapper programs, one for cgi and one for a subversion post-commit hook.
  5. #
  6. # Remember to re-run ikiwiki --setup any time you edit this file.
  7. my %common=(
  8. wikiname => "MyWiki",
  9. # Be sure to customise these..
  10. srcdir => "/path/to/source",
  11. templatedir => "/path/to/templates",
  12. destdir => "/var/www/wiki",
  13. url => "http://myhost/wiki",
  14. cgiurl => "http://myhost/ikiwiki.cgi",
  15. historyurl => "$webdir/cgi-bin/viewcvs?[[]]"
  16. # Whether to integrate with svn.
  17. svn => 1,
  18. svnrepo => "/svn/wiki",
  19. # Can anonymous web users edit pages?
  20. #anonok => 1,
  21. );
  22. gen_wrapper(
  23. %common,
  24. cgi => 1,
  25. wrapper => "$common{destdir}/ikiwiki.cgi",
  26. wrappermode => 06755,
  27. );
  28. gen_wrapper(
  29. %common,
  30. # Note that this will overwrite any exsting post-commit hoo
  31. # script, which may not be what you want.
  32. wrapper => "$common{svnrepo}/hooks/post-commit",
  33. wrappermode => 04755,
  34. ) if $common{$svn};