Retourner au contenu. Retourner à la navigation

 

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 version
Remplacez 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/timebreach
Puis 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


Vous pouvez voir cet exemple qui est un site de test sur http://mibs.dyndns.org/repository/timebreach.
Par admin Dernière modification 22/03/2007 15:41
Navigation
Actualités
25/05/2009 Install-Party Mandriva Linux 2009 Spring
30/04/2009 Sortie de Mandriva 2009 Spring
13/03/2009 Soirée Open Source - Performances Open Storage / ZFS
13/03/2009 Conférence Symfony avec Fabien Potencier
18/02/2009 Wine 1.1.15
Plus d'actualités...
Articles
22/05/2008 Première approche de Qmail
19/05/2008 Test de la distribution Elive 1.0 Gem
14/05/2008 GNUPG introduction à la cryptographie et utilisation de GnuPG
21/02/2008 GNU / Screen
03/09/2007 The Linux File System Encryption API
More articles
Tips
02/02/2009 Des favoris synchronisés
27/01/2009 OpenSUSE: Comment supprimer les icônes d'aide
23/01/2009 Beep en ligne de commande
21/01/2009 Connaître son ip public derrière un routeur
28/04/2008 Mozilla Firefox : Google Talk et Facebook Chat
More tips
Codes
09/04/2008 Chapitre 13 - Administration DNS et DHCP
09/04/2008 Chapitre 06 - Service web avec Apache
04/04/2008 Chapitre 09 - PureFTPd
04/04/2008 Chapitre 06 - Scripting Bash
01/04/2008 Chapitre 20 - Haute Disponibilité
More codes
Courses
13/09/2006 Module 3
23/02/2006 Module 2
23/02/2006 Module 1
More courses
Formation Linux

Supinfo Training Center has the first Linux Certification. The training is 13 days and allow you to pass the LPI 101 and 102.

more info
 
 
Vous êtes ici :
Articles Trac, wiki pour le développement communautaire Configuration de Trac