ktec-subtrac 0.1.41 → 0.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -47,10 +47,8 @@ Install jeos (hardy)
47
47
  sudo easy_install http://trac-hacks.org/svn/clientsplugin/0.11
48
48
  sudo easy_install http://trac-hacks.org/svn/emailtotracscript/trunk
49
49
  sudo easy_install http://trac-hacks.org/svn/finegrainedpageauthzeditorplugin/0.11
50
- sudo easy_install http://trac-hacks.org/svn/gnomebrtheme/0.11
51
- sudo easy_install http://trac-hacks.org/svn/irresistibletheme/0.11
52
50
  sudo easy_install http://trac-hacks.org/svn/themeengineplugin/0.11 http://trac-hacks.org/svn/crystalxtheme/0.11
53
-
51
+ sudo easy_install http://trac-hacks.org/svn/tagsplugin/tags/0.6
54
52
 
55
53
  ## install gems and update
56
54
  sudo apt-get install rubygems
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 41
4
+ :patch: 43
data/lib/subtrac.rb CHANGED
@@ -268,10 +268,15 @@ module Subtrac
268
268
  exit 0 if !confirm
269
269
 
270
270
  create_environment_directories(overwrite)
271
- #create_virtual_host()
271
+
272
+ #create a new virtual host
272
273
  apache = Apache.new(binding)
273
274
  apache.create_virtual_host()
274
275
 
276
+ # create the trac site
277
+ trac = Trac.new(trac_dir, binding)
278
+ trac.install_common_files()
279
+
275
280
  install_common_files()
276
281
  configure_admin_user()
277
282
 
@@ -300,6 +305,7 @@ module Subtrac
300
305
  trac.create_project(project)
301
306
 
302
307
  # create the apache configuration
308
+ apache = Apache.new(binding)
303
309
  apache.create_project(project)
304
310
 
305
311
  # fix privileges
@@ -331,7 +337,6 @@ module Subtrac
331
337
  # TODO: implement a mask for .svn folders
332
338
  # TODO: refactor /common to the app config
333
339
  FileUtils.cp_r(Dir.glob(File.join(subtrac_path, "common/.")),docs_dir)
334
- FileUtils.cp_r(Dir.glob(File.join(subtrac_path, "shared/.")),File.create_if_missing(File.join(trac_dir, ".shared")))
335
340
  end
336
341
 
337
342
  def self.configure_admin_user
@@ -12,7 +12,6 @@ development: &non_production_settings
12
12
  :default_project_type: "blank"
13
13
  :default_client: "Subtrac"
14
14
  :default_project: "Public"
15
- :shared_trac_ini: "shared/trac.ini"
16
15
 
17
16
  :apache_conf_dir: /etc/apache2/sites-available
18
17
 
data/lib/subtrac/trac.rb CHANGED
@@ -16,6 +16,15 @@ module Subtrac
16
16
  @temp_dir = Subtrac::temp_dir
17
17
  @binding = binding
18
18
  end
19
+
20
+ # Install the shared trac.ini file
21
+ def install_common_files
22
+ File.create_if_missing(File.join(@trac_dir, ".shared"))
23
+ # install trac.ini
24
+ trac_ini_template = Template.new(File.join(File.dirname(__FILE__), "trac", "common.trac.ini.erb"))
25
+ trac_ini_template.write(File.join(@trac_dir,".shared","trac.ini"),@binding)
26
+ end
27
+
19
28
  def create_project(project)
20
29
 
21
30
  client = project.client
@@ -161,3 +161,31 @@ max_size = 262144
161
161
  render_unsafe_content = false
162
162
  split_page_names = false
163
163
 
164
+ [components]
165
+ trac.web.auth.LoginModule = disabled
166
+ acct_mgr.web_ui.LoginModule = enabled
167
+ acct_mgr.web_ui.RegistrationModule = disabled
168
+ acct_mgr.admin.accountmanageradminpage = enabled
169
+ acct_mgr.htfile.htpasswdstore = disabled
170
+ acct_mgr.web_ui.registrationmodule = enabled
171
+ batchmod.web_ui.batchmodifymodule = enabled
172
+ crystalxtheme.theme.crystalxtheme = enabled
173
+ ldapplugin.* = enabled
174
+ themeengine.admin.simplethemeadminmodule = enabled
175
+ themeengine.api.themeenginesystem = enabled
176
+ themeengine.web_ui.themeenginemodule = enabled
177
+ acct_mgr.htfile.HtPasswdStore = enabled
178
+
179
+ [account-manager]
180
+ ; configure the plugin to store passwords in the htpasswd format:
181
+ password_store = HtPasswdStore
182
+ ; with Trac < 0.10 use this instead:
183
+ password_format = htpasswd
184
+
185
+ ; the file where user accounts are stored
186
+ ; the webserver will need write permissions to this file
187
+ ; and its parent folder
188
+ password_file = /var/subtrac/.passwd
189
+
190
+ [theme]
191
+ theme = CrystalX
@@ -7,7 +7,7 @@ file = ../../../.shared/trac.ini
7
7
  name = <%= project.display_name %>
8
8
  admin =
9
9
  admin_trac_url = .
10
- descr = My example project
10
+ descr = <%= project.display_name %>
11
11
  footer = Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a>
12
12
  icon = /favicon.ico
13
13
  url =
@@ -22,17 +22,6 @@ width = -1
22
22
  [trac]
23
23
  repository_dir = ../../../svn/<%= client.path %>/<%= project.path %>
24
24
 
25
- [components]
26
- batchmod.web_ui.batchmodifymodule = enabled
27
- ldapplugin.* = enabled
28
- themeengine.admin.simplethemeadminmodule = enabled
29
- themeengine.api.themeenginesystem = enabled
30
- themeengine.web_ui.themeenginemodule = enabled
31
- crystalxtheme.theme.crystalxtheme = enabled
32
-
33
- [theme]
34
- theme = CrystalX
35
-
36
25
  <% if @APP_CONFIG[:ldap][:enable] then %>
37
26
  [ldap]
38
27
  enable = <%= @APP_CONFIG[:ldap][:enable] %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ktec-subtrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.41
4
+ version: 0.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Salisbury
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-01 00:00:00 -07:00
12
+ date: 2009-05-02 00:00:00 -07:00
13
13
  default_executable: subtrac
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -62,7 +62,6 @@ files:
62
62
  - lib/subtrac/project/blank/trac/wiki/WikiStart
63
63
  - lib/subtrac/project/new/svn/trunk/trac/wiki/WikiStart
64
64
  - lib/subtrac/project/new/trac/wiki/WikiStart
65
- - lib/subtrac/shared/trac.ini
66
65
  - lib/subtrac/svn.rb
67
66
  - lib/subtrac/template.rb
68
67
  - lib/subtrac/trac.rb
@@ -1,163 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- [attachment]
4
- max_size = 262144
5
- render_unsafe_content = false
6
-
7
- [browser]
8
- color_scale = True
9
- downloadable_paths = /trunk, /branches/*, /tags/*
10
- hide_properties = svk:merge
11
- intermediate_color =
12
- intermediate_point =
13
- newest_color = (255, 136, 136)
14
- oldest_color = (136, 136, 255)
15
- oneliner_properties = trac:summary
16
- render_unsafe_content = false
17
- wiki_properties = trac:description
18
-
19
- [changeset]
20
- max_diff_bytes = 10000000
21
- max_diff_files = 0
22
- wiki_format_messages = true
23
-
24
- [inherit]
25
- plugins_dir =
26
- templates_dir =
27
-
28
- [logging]
29
- log_file = trac.log
30
- # log_format = <inherited>
31
- log_level = DEBUG
32
- log_type = none
33
-
34
- [milestone]
35
- stats_provider = DefaultTicketGroupStatsProvider
36
-
37
- [mimeviewer]
38
- enscript_modes = text/x-dylan:dylan:4
39
- enscript_path = enscript
40
- max_preview_size = 262144
41
- mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
42
- php_path = php
43
- tab_width = 8
44
-
45
- [notification]
46
- admit_domains =
47
- always_notify_owner = false
48
- always_notify_reporter = false
49
- always_notify_updater = true
50
- ignore_domains =
51
- mime_encoding = base64
52
- smtp_always_bcc =
53
- smtp_always_cc =
54
- smtp_default_domain =
55
- smtp_enabled = false
56
- smtp_from = trac@localhost
57
- smtp_from_name =
58
- smtp_password =
59
- smtp_port = 25
60
- smtp_replyto = trac@localhost
61
- smtp_server = localhost
62
- smtp_subject_prefix = __default__
63
- smtp_user =
64
- ticket_subject_template = $prefix #$ticket.id: $summary
65
- use_public_cc = false
66
- use_short_addr = false
67
- use_tls = false
68
-
69
- [query]
70
- default_anonymous_query = status!=closed&cc~=$USER
71
- default_query = status!=closed&owner=$USER
72
- items_per_page = 100
73
-
74
- [report]
75
- items_per_page = 100
76
- items_per_page_rss = 0
77
-
78
- [revisionlog]
79
- default_log_limit = 100
80
-
81
- [roadmap]
82
- stats_provider = DefaultTicketGroupStatsProvider
83
-
84
- [search]
85
- min_query_length = 3
86
-
87
- [svn]
88
- branches = trunk,branches/*
89
- tags = tags/*
90
-
91
- [ticket]
92
- default_cc =
93
- default_component =
94
- default_description =
95
- default_keywords =
96
- default_milestone =
97
- default_owner =
98
- default_priority = major
99
- default_resolution = fixed
100
- default_severity =
101
- default_summary =
102
- default_type = defect
103
- default_version =
104
- max_comment_size = 262144
105
- max_description_size = 262144
106
- preserve_newlines = default
107
- restrict_owner = false
108
- workflow = ConfigurableTicketWorkflow
109
-
110
- [ticket-workflow]
111
- accept = new,assigned,accepted,reopened -> accepted
112
- accept.operations = set_owner_to_self
113
- accept.permissions = TICKET_MODIFY
114
- leave = * -> *
115
- leave.default = 1
116
- leave.operations = leave_status
117
- reassign = new,assigned,accepted,reopened -> assigned
118
- reassign.operations = set_owner
119
- reassign.permissions = TICKET_MODIFY
120
- reopen = closed -> reopened
121
- reopen.operations = del_resolution
122
- reopen.permissions = TICKET_CREATE
123
- resolve = new,assigned,accepted,reopened -> closed
124
- resolve.operations = set_resolution
125
- resolve.permissions = TICKET_MODIFY
126
-
127
- [timeline]
128
- abbreviated_messages = True
129
- changeset_collapse_events = false
130
- changeset_long_messages = false
131
- changeset_show_files = 0
132
- default_daysback = 30
133
- max_daysback = 90
134
- newticket_formatter = oneliner
135
- ticket_show_details = false
136
-
137
- [trac]
138
- authz_file =
139
- authz_module_name =
140
- auto_reload = False
141
- base_url =
142
- check_auth_ip = false
143
- database = sqlite:db/trac.db
144
- default_charset = iso-8859-15
145
- htdocs_location =
146
- ignore_auth_case = false
147
- mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
148
- metanav = login,logout,prefs,help,about
149
- permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy
150
- permission_store = DefaultPermissionStore
151
- repository_type = svn
152
- secure_cookies = False
153
- show_email_addresses = false
154
- show_ip_addresses = false
155
- timeout = 20
156
- use_base_url_for_redirect = False
157
-
158
- [wiki]
159
- ignore_missing_pages = false
160
- max_size = 262144
161
- render_unsafe_content = false
162
- split_page_names = false
163
-