Trac, wiki pour le développement communautaire
by
admin
@ 11/10/2005
Configuration de Trac
Configurer et mettre en place Trac pour votre projet.
Configuration globale de Trac
Pour intialiser et installer l'habillage de trac tapez:root@localhost # webapps-config -I -h localhost -d trac trac versionRemplacez version par la version installée de trac pour ma part 0.9 .
Ce qui donne:
root@localhost # webapps-config -I -h localhost -d trac trac 0.9
Initialisation d'un projet Trac
Initialiser maintenant un repository subversion pour le projet TimeBreach par exemple :root@localhost # mkdir -p /data/svn/timebreach
root@localhost # svnadmin create /data/svn/timebreach
Ensuite nous allons créer le dossier trac du projet et initialiser trac pour ce projet :
root@localhost # mkdir /data/trac
root@localhost # trac-admin /data/trac/timebreach initenv
Demarrer Trac
Vous pouvez ensuite démarrer trac par:root@localhost # tracd --port 8000 /data/trac/timebreachPuis tester trac en tapant dans un navigateur web :
root@localhost # http://localhost:8000
Vous personnaliser votre configuration de trac via le fichier trac.ini.
Voici un exemple utilisant doxygen, ganttchart, account-manager, graphviz et webadmin.
#options concernant le fonctionnement du wiki
[wiki]
ignore_missing_pages = false
#configuration générale du projet pour l'interface web
[project]
name = Time Breach
descr = Time Breach Repository
footer = Visit the TimeBreach open source project at<br /><a href="http://timebreach.sourceforge.net/">http://timebreach.sourceforge.net/</a>
url = http://timebreach.sourceforge.net/
icon = common/trac.ico
#enregistremment des fichiers de log
#ainsi que du niveau de détails de ces fichiers
[logging]
log_file = trac.log
log_level = DEBUG
log_type = none
#configuration fonctionnelle de trac
[trac]
default_charset = iso-8859-15
ignore_auth_case = false
permission_store = DefaultPermissionStore
check_auth_ip = true
database = sqlite:db/trac.db
templates_dir = /usr/share/trac/templates
default_handler = WikiModule
#éléments du menu qui apparaissent en haut à droite
metanav = login,logout,settings,help,about
#éléments du menu dans la barre horizontal
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
#chemin vers le repository subversion
repository_dir = /data/svn/timebreach
[notification]
always_notify_owner = false
smtp_port = 25
smtp_password =
smtp_enabled = false
smtp_replyto = trac@localhost
smtp_always_cc =
always_notify_reporter = false
smtp_from = trac@localhost
smtp_server = localhost
smtp_user =
#Logo du site
[header_logo]
src = site/TimeBreachTrac.png
height = 225
width = 527
link = http://timebreach.sourceforge.net/
alt = Time Breach
#affichage d'icônes pour les différents type du projet
[mimeviewer]
php_path = php
enscript_path = enscript
tab_width = 8
max_preview_size = 262144
#condition sur les fichiers attachés aux pages
[attachment]
render_unsafe_content = false
max_size = 262144
#activation des plugins vous pouvez trouver le nom du plugin dans sa documentation
[components]
webadmin.* = enabled
tracgantt.* = enabled
trac.web.auth.loginmodule = disabled
acct_mgr.web_ui.loginmodule = enabled
#configuration pour les diagrammes de Gantt
[gantt-charts]
date_format = %m/%d/%Y
#personnalisation des tâches pour l'intégration dans les diagrammes de Gantt
[ticket-custom]
include_gantt.label = Include in GanttChart
due_assign.label = Due to assign
include_gantt = checkbox
dependencies.value =
include_gantt.value =
due_assign.value = MM/DD/YYYY
due_close.value = MM/DD/YYYY
dependencies = text
dependencies.label = Dependencies
due_assign = text
due_close.label = Due to close
due_close = text
[timeline]
changeset_show_files = 0
ticket_show_details = false
default_daysback = 30
#informations concernant le plugin account manager
[account-manager]
password_format = htpasswd
password_file = /data/trac/timebreach/trac.htpasswd
[ticket]
default_version = 0.1
default_component = component1
default_type = defect
restrict_owner = false
default_milestone =
default_priority = major
[browser]
hide_properties = svk:merge
#informations concernant le plugin graphviz
[graphviz]
cache_dir = /data/trac/timebreach/htdocs/graphviz
prefix_url = http://mibs.dyndns.org/repository/timebreach/graphviz
cmd_path = /usr/bin
out_format = png
png_antialias = true
rsvg_path = /usr/bin/rsvg
default_graph_fontname = "Andale Mono"
default_graph_fontsize = 10
cache_manager = yes
cache_max_size = 10000000
cache_min_size = 5000000
cache_max_count = 2000
cache_min_count = 1500