Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.releng/modules/trac/templates')
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.digest.erb3
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.erb4
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.cgi.erb27
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.conf.erb50
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.fcgi.erb28
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.ini.erb212
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/templates/tracadmin.erb3
7 files changed, 327 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.digest.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.digest.erb
new file mode 100644
index 000000000..fbda2c837
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.digest.erb
@@ -0,0 +1,3 @@
+tests@mylyn.eclipse.org:Trac Test Project:63d78997f661b28e4b91404a76b65a37
+admin@mylyn.eclipse.org:Trac Test Project:ffebde5da7ca431679b04ce864809365
+user@mylyn.eclipse.org:Trac Test Project:10fdbd2a591d2a63cc836b8cc3383fc5
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.erb
new file mode 100644
index 000000000..491a3f27d
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/htpasswd.erb
@@ -0,0 +1,4 @@
+admin@mylyn.eclipse.org:5yUpJH.QCH6Do
+tests@mylyn.eclipse.org:.CAxi0rlje7BY
+user@mylyn.eclipse.org:lulvvCcnsxqOg
+/C=CA/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=tests@mylyn.eclipse.org:xxj31ZMTZzkVA
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.cgi.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.cgi.erb
new file mode 100644
index 000000000..979544c04
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.cgi.erb
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+import glob, os, sys
+for i in glob.glob( os.path.join('<%= prefix %>/lib', '*.egg') ):
+ sys.path = [i] + sys.path
+sys.path = ['<%= prefix %>/lib'] + sys.path
+
+try:
+ from trac.web import cgi_frontend
+ cgi_frontend.run()
+except SystemExit:
+ raise
+except Exception, e:
+ import sys
+ import traceback
+
+ print>>sys.stderr, e
+ traceback.print_exc(file=sys.stderr)
+
+ print 'Status: 500 Internal Server Error'
+ print 'Content-Type: text/plain'
+ print
+ print 'Oops...'
+ print
+ print 'Trac detected an internal error:', e
+ print
+ traceback.print_exc(file=sys.stdout)
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.conf.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.conf.erb
new file mode 100644
index 000000000..ead771571
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.conf.erb
@@ -0,0 +1,50 @@
+#ScriptAlias /<%= envid %> <%= base %>/bin/trac-<%= version %>.cgi
+ScriptAlias /<%= envid %> <%= envbase %>/trac-<%= version %>.fcgi
+Alias /<%= envid %>-htdocs <%= prefix %>/htdocs/
+
+<Location /<%= envid %>>
+ SetEnv PYTHON_EGG_CACHE /tmp/eggs
+ SetEnv TRAC_ENV <%= env %>
+ Order allow,deny
+ Allow from all
+
+<% if @allbasicauth %>
+ AuthType Basic
+ AuthName "Trac Test Project"
+ AuthUserFile <%= envbase %>/htpasswd
+ Require valid-user
+<% end %>
+</Location>
+
+<% if @allbasicauth == false %>
+<% if @accountmanagerplugin == "" %>
+<Location /<%= envid %>/login>
+<% if @certauth %>
+ SSLOptions +FakeBasicAuth
+ SSLVerifyClient require
+ SSLVerifyDepth 1
+<% end %>
+
+<% if @digestauth %>
+ AuthType Digest
+ AuthName "Trac Test Project"
+ AuthUserFile <%= envbase %>/htpasswd.digest
+ Require valid-user
+<% end %>
+
+<% if @digestauth == false %>
+ AuthType Basic
+ AuthName "Trac Test Project"
+ AuthUserFile <%= envbase %>/htpasswd
+ Require valid-user
+<% end %>
+</Location>
+<% end %>
+<% end %>
+
+<Directory <%= prefix %>/htdocs/>
+ Options Indexes MultiViews +FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+</Directory>
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.fcgi.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.fcgi.erb
new file mode 100644
index 000000000..7f1ba6ebf
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.fcgi.erb
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+import glob, os, sys
+for i in glob.glob( os.path.join('<%= prefix %>/lib', '*.egg') ):
+ sys.path = [i] + sys.path
+sys.path = ['<%= prefix %>/lib'] + sys.path
+
+import os
+os.environ['TRAC_ENV'] = "<%= env %>"
+
+try:
+ from trac.web import fcgi_frontend
+ fcgi_frontend.run()
+except SystemExit:
+ raise
+except Exception, e:
+ print 'Content-Type: text/plain\r\n\r\n',
+ print 'Oops...'
+ print
+ print 'Trac detected an internal error:'
+ print
+ print e
+ print
+ import traceback
+ import StringIO
+ tb = StringIO.StringIO()
+ traceback.print_exc(file=tb)
+ print tb.getvalue()
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.ini.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.ini.erb
new file mode 100644
index 000000000..e57ea7022
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/trac.ini.erb
@@ -0,0 +1,212 @@
+# -*- coding: utf-8 -*-
+
+[attachment]
+max_size = 262144
+max_zip_size = 2097152
+render_unsafe_content = false
+
+[browser]
+color_scale = True
+downloadable_paths = /trunk, /branches/*, /tags/*
+hide_properties = svk:merge
+intermediate_color =
+intermediate_point =
+newest_color = (255, 136, 136)
+oldest_color = (136, 136, 255)
+oneliner_properties = trac:summary
+render_unsafe_content = false
+wiki_properties = trac:description
+
+[changeset]
+max_diff_bytes = 10000000
+max_diff_files = 0
+wiki_format_messages = true
+
+[components]
+tracopt.versioncontrol.svn.* = enabled
+tracrpc.* = enabled
+tracrpc.json_rpc.* = disabled
+<% if @accountmanagerplugin != "" %>
+trac.web.auth.LoginModule = disabled
+acct_mgr.htfile.HtPasswdStore = enabled
+acct_mgr.web_ui.LoginModule = enabled
+acct_mgr.web_ui.RegistrationModule = disabled
+<% end %>
+
+<% if @accountmanagerplugin != "" %>
+[account-manager]
+password_format = htpasswd
+password_store = HtPasswdStore
+password_file = <%= envbase %>/htpasswd
+<% end %>
+
+[header_logo]
+alt =
+height = -1
+link = http://eclipse.org/mylyn
+src = common/trac_banner.png
+width = -1
+
+[logging]
+log_file = trac.log
+log_level = ERROR
+log_type = file
+
+[milestone]
+stats_provider = DefaultTicketGroupStatsProvider
+
+[mimeviewer]
+enscript_modes = text/x-dylan:dylan:4
+enscript_path = enscript
+max_preview_size = 262144
+mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
+mime_map_patterns = text/plain:README|INSTALL|COPYING.*
+php_path = php
+silvercity_modes =
+tab_width = 8
+treat_as_binary = application/octet-stream, application/pdf, application/postscript, application/msword,application/rtf,
+
+[notification]
+always_notify_owner = false
+always_notify_reporter = false
+always_notify_updater = true
+mime_encoding = base64
+smtp_always_bcc =
+smtp_always_cc =
+smtp_default_domain =
+smtp_enabled = false
+smtp_from = trac@localhost
+smtp_password =
+smtp_port = 25
+smtp_replyto = trac@localhost
+smtp_server = localhost
+smtp_user =
+use_public_cc = false
+use_short_addr = false
+use_tls = false
+
+[project]
+descr = My example project
+footer = Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a>
+icon = common/trac.ico
+name = My Project
+url = http://example.org/
+
+[query]
+default_anonymous_query = status!=closed&cc~=$USER
+default_query = status!=closed&owner=$USER
+items_per_page = 100
+ticketlink_query = ?status=!closed
+
+[report]
+items_per_page = 100
+items_per_page_rss = 0
+
+[revisionlog]
+default_log_limit = 100
+graph_colors = ['#cc0', '#0c0', '#0cc', '#00c', '#c0c', '#c00']
+
+[roadmap]
+stats_provider = DefaultTicketGroupStatsProvider
+
+[search]
+min_query_length = 3
+
+[ticket]
+default_cc =
+default_component =
+default_description =
+default_keywords =
+default_milestone =
+default_owner = < default >
+default_priority = major
+default_resolution = fixed
+default_severity =
+default_summary =
+default_type = defect
+default_version =
+max_comment_size = 262144
+max_description_size = 262144
+preserve_newlines = default
+restrict_owner = false
+workflow = ConfigurableTicketWorkflow
+
+[ticket-custom]
+custom_checkbox_field = checkbox
+custom_checkbox_field.label = Checkbox
+custom_checkbox_field.value = 1
+custom_radio_field = radio
+custom_radio_field.label = Radio
+custom_radio_field.options = foo|bar|baz
+custom_radio_field.value = 2
+custom_select_field = select
+custom_select_field.label = Select
+custom_select_field.options = one|two|three|four
+custom_select_field.value = 1
+custom_text_field = text
+custom_text_field.label = Text
+custom_text_field.value = default value
+custom_textarea_field = textarea
+custom_textarea_field.cols = 60
+custom_textarea_field.label = Textarea
+custom_textarea_field.rows = 5
+custom_textarea_field.value = default text
+
+[ticket-workflow]
+accept = new -> assigned
+accept.operations = set_owner_to_self
+accept.permissions = TICKET_MODIFY
+leave = * -> *
+leave.default = 1
+leave.operations = leave_status
+reassign = new,assigned,reopened -> new
+reassign.operations = set_owner
+reassign.permissions = TICKET_MODIFY
+reopen = closed -> reopened
+reopen.operations = del_resolution
+reopen.permissions = TICKET_CREATE
+resolve = new,assigned,reopened -> closed
+resolve.operations = set_resolution
+resolve.permissions = TICKET_MODIFY
+
+[timeline]
+abbreviated_messages = True
+changeset_collapse_events = false
+changeset_long_messages = false
+changeset_show_files = 0
+default_daysback = 30
+max_daysback = 90
+newticket_formatter = oneliner
+ticket_show_details = false
+
+[trac]
+auth_cookie_lifetime = 0
+auth_cookie_path =
+authz_file =
+authz_module_name =
+auto_preview_timeout = 2.0
+auto_reload = False
+backup_dir = db
+base_url =
+check_auth_ip = true
+database = sqlite:db/trac.db
+default_charset = iso-8859-15
+default_handler = WikiModule
+htdocs_location = /<%= envid %>-htdocs
+ignore_auth_case = false
+mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
+metanav = login,logout,settings,help,about
+permission_store = DefaultPermissionStore
+repository_dir = <%= envbase %>/svn
+repository_type = svn
+request_filters = None
+
+[versioncontrol]
+allowed_repository_dir_prefixes =
+
+[wiki]
+ignore_missing_pages = false
+max_size = 262144
+render_unsafe_content = false
+safe_schemes = cvs, file, ftp, git, irc, http, https, news, sftp, smb, ssh, svn, svn+ssh
+split_page_names = false
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/templates/tracadmin.erb b/org.eclipse.mylyn.trac.releng/modules/trac/templates/tracadmin.erb
new file mode 100644
index 000000000..86aa4067c
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/templates/tracadmin.erb
@@ -0,0 +1,3 @@
+#!/bin/sh
+export PYTHONPATH=<%= prefix %>/lib
+<%= prefix %>/bin/trac-admin $@

Back to the top