debian/0000755000000000000000000000000012176504664007201 5ustar debian/source/0000755000000000000000000000000012127606335010473 5ustar debian/source/format0000644000000000000000000000001412127606335011701 0ustar 3.0 (quilt) debian/TODO.Debian0000644000000000000000000000060312171564320011037 0ustar Debian packaging TODO for trac: ------------------------------- * package trac-migrate, remove sqlite2pg, recommend trac-migrate instead. (see deprecation warning at http://trac-hacks.org/wiki/SqliteToPgScript) * review Suggests: and Recommends: for versioning/interoperability with trac 1.0 -- Daniel Kahn Gillmor Thu, 28 Mar 2013 04:09:19 -0400 debian/links0000644000000000000000000000136412171564320010236 0ustar /usr/share/javascript/jquery/jquery.min.js /usr/share/pyshared/trac/htdocs/js/jquery.js /usr/share/javascript/excanvas/excanvas.min.js /usr/share/pyshared/trac/htdocs/js/excanvas.js /usr/share/javascript/jquery-ui/jquery-ui.js /usr/share/pyshared/trac/htdocs/js/jquery-ui.js /usr/share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js /usr/share/pyshared/trac/htdocs/js/jquery-ui-addons.js /usr/share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.css /usr/share/pyshared/trac/htdocs/css/jquery-ui-addons.css /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui.css /usr/share/pyshared/trac/htdocs/css/jquery-ui/jquery-ui.css /usr/share/javascript/jquery-ui/css/smoothness/images /usr/share/pyshared/trac/htdocs/css/jquery-ui/images debian/trac.manpages0000644000000000000000000000004612127606335011641 0ustar debian/trac-admin.1 debian/tracd.1 debian/README.Debian0000644000000000000000000001524412171564320011236 0ustar Configuring Trac on Debian ========================== Trac is a web-based project management tool. It can be run as a standalone daemon (tracd) or together with a web server, such as Apache. The web server needs to support either WSGI (Apache with libapache2-mod-wsgi), FCGI (Apache, lighttpd), or CGI (most web servers). Trac is written in the Python programming language and uses Genshi (python-genshi) as templating system and, optionally, Pygments (python-pygments) for source code syntax highlighting. Trac uses either PostgreSQL, MySQL, or SQLite as database. Creating a Project Environment ------------------------------ Trac Environment is the backend storage that contains information related to specific project like settings, wiki pages, tickets, templates, etc. A Trac environment consists of a directory with human-readable configuration file, default SQLite database, log files, attachments, plugins (if any) and custom templates. Trac can visualize contents of many Version Control Systems (vcs) repositories. By default it supports Subversion or Git. Plugins can be added to support bzr (trac-bzr) or Mercurial (trac-mercurial). Trac can work without vcs repository, but you may want to create one for you project before creating a Trac environment. With Subversion this can be made with: $ mkdir /path/to/repos $ svnadmin create /path/to/repos A new Trac environment is created with trac-admin: $ trac-admin /path/to/projectenv initenv NOTE: The web server user (usually "www-data" for Apache) needs write permission to the environment directory and all the files inside. After creating the environment you would need to execute "chown -R www-data /path/to/projectenv" if trac-admin was executed as a different user than "www-data". trac-admin will ask you some questions to setup the environment (defaults should be ok). For using PostgreSQL, you need to enter the database string as postgres://USER:PASSWORD@localhost/PROJECT (see below). Configuring PostgreSQL ====================== PostgreSQL is probably the best option for Trac. The steps are basically: # apt-get install python-psycopg2 postgresql # su - postgres -c 'createuser -U postgres -S -D -R -E -P USER' # su - postgres -c 'createdb -U postgres -O USER -E UTF8 PROJECT' (replace USER and PROJECT with something useful) Configuring Apache Web Server ============================= Apache is the most used webserver, so it's preferred for Trac. It can be configured to be run as CGI application (CGI, WSGI, FCGI) or with mod-python. WSGI is the recommended method. Configuring as CGI, WSGI, FastCGI --------------------------------- For trac >= 0.11 the *gi scripts have to be generated using the deploy command: trac-admin /path/to/env deploy /path/to/www/trac This will generate scripts in the /path/to/www/trac/cgi-bin directory with substituted Trac environment paths. To use trac as an executable script in Apache, just add the according entry: #Trac as CGI on Apache (sluggish, not recommended) #extra info in https://coderanger.net/~coderanger/tracdoc/install/cgi.html #even more info at http://trac.edgewall.org/wiki/TracCgi ScriptAlias /trac /path/to/www/trac/cgi-bin/trac.cgi #Trac as FastCGI on Apache #extra info in https://coderanger.net/~coderanger/tracdoc/install/fastcgi.html ScriptAlias /trac /path/to/www/trac/cgi-bin/trac.fcgi/ #Trac as WSGI on Apache #extra info on http://trac.edgewall.org/wiki/TracModWSGI #info about daemon mode http://code.google.com/p/modwsgi/ # http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac WSGIScriptAlias /trac /path/to/www/trac/cgi-bin/trac.wsgi Configuring to use Apache with ModPython ---------------------------------------- For Modpython just use the following: #Extra info https://coderanger.net/~coderanger/tracdoc/install/mod_python.html # Trac need to know where the database is located SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonInterpreter main PythonOption TracEnv /path/to/env PythonOption TracUriRoot /trac SetEnv PYTHON_EGG_CACHE /tmp Authentication using Apache ------------------------------ # You need this to allow users to authenticate # trac.htpasswd can be created with # cmd 'htpasswd -c trac.htpasswd' (UNIX) # do 'man htpasswd' to see all the options AuthType Basic AuthName "trac" AuthUserFile /somewhere/trac.htpasswd Require valid-user Using Trac ---------- You should now have a working Trac installation at: http:///trac There you should be able to browse your subversion repository, create tickets, view the timeline etc. Keep in mind that anonymous users (not logged in) can only access a restricted subset of all Trac features. Please read TracPermissions (in the wiki) to learn how to grant additional privileges to authenticated users. For further user-documentation, see TracGuide and check coderanger's website [1]. [1] https://coderanger.net/~coderanger/tracdoc/ Notes for users upgrading Trac ============================== Information on how to upgrade Trac can be found in the Trac wiki: http://trac.edgewall.org/wiki/TracUpgrade Running Trac via WSGI etc. -------------------------- If you upgrade Trac and do not use the builtin HTTP daemon (tracd), you must restart your HTTPD manually. E.g. for Apache: # /etc/init.d/apache restart Upgrading from Trac 0.10.x to 0.11.x: SQLite -------------------------------------------- Wookey at toby-churchill.com came across the issue, that the SQLite format between Trac 0.10.x (SQLite v2) and 0.11.x (SQLite v3) has changed. If you happen to use SQLite, use the following update routine by Wookey: $ sqlite db/trac.db .dump | sqlite3 db/trac.db3 With the new file you should be able to run Trac as expected. See http://bugs.debian.org/501338 for details. Debian specifics ================ We added some patches and files, that are useful to most users: 1. A sample script to migrate an SQLite Trac database to PostgreSQL. See http://trac-hacks.org/wiki/SqliteToPgScript (this should probably go away and be replaced by trac-migrate, see TODO.Debian) 2. we rely on javascript from the relevant libjs-* packages in debian, rather than shipping the bundled versions provided by upstream. Enjoy! /The Trac Team Please also consider joining mailing lists at Visit the Trac open source project at Jonas Borgstrom , Sat, 22 May 2004 20:49:22 +0200 Luis Matos , Mon, 21 Jul 2008 21:06:36 +0100 W. Martin Borgert , Sat, 2009-10-10, 11:39 +0000 -- Daniel Kahn Gillmor , Thu, 9 May 2013 17:05:29 -0400 debian/rules0000755000000000000000000000161012171564320010245 0ustar #!/usr/bin/make -f BACKUP_JQUERY_UI_IMAGES = mv trac/htdocs/css/jquery-ui/images debian/images.backup; touch trac/htdocs/css/jquery-ui/images RESTORE_JQUERY_UI_IMAGES = rm -f trac/htdocs/css/jquery-ui/images; mv debian/images.backup trac/htdocs/css/jquery-ui/images %: dh $@ --with python2 --buildsystem=python_distutils override_dh_compress: dh_compress -X.py -X-hook override_dh_fixperms: dh_fixperms find debian/trac/usr/share/pyshared/trac -type f -print0 2>/dev/null | xargs -0r chmod 644 chmod 755 debian/trac/usr/share/pyshared/trac/admin/templates/deploy_trac.* chmod 755 debian/trac/usr/share/pyshared/trac/web/*_frontend.py override_dh_auto_install: $(BACKUP_JQUERY_UI_IMAGES) dh_auto_install --buildsystem=python_distutils $(RESTORE_JQUERY_UI_IMAGES) override_dh_auto_build: $(BACKUP_JQUERY_UI_IMAGES) dh_auto_build --buildsystem=python_distutils $(RESTORE_JQUERY_UI_IMAGES) debian/compat0000644000000000000000000000000212171564320010365 0ustar 9 debian/install0000644000000000000000000000003312127606335010560 0ustar contrib usr/share/doc/trac debian/lintian-overrides0000644000000000000000000000137112127606335012556 0ustar # Make scripts generated by "deploy" command use sys.executable instead of # hard-coding /usr/bin/python so that they work in virtualenv or other setups. trac: interpreter-not-absolute usr/share/pyshared/trac/admin/templates/deploy_trac.cgi #!${executable} trac: unusual-interpreter usr/share/pyshared/trac/admin/templates/deploy_trac.cgi #!${executable} trac: interpreter-not-absolute usr/share/pyshared/trac/admin/templates/deploy_trac.fcgi #!${executable} trac: unusual-interpreter usr/share/pyshared/trac/admin/templates/deploy_trac.fcgi #!${executable} trac: interpreter-not-absolute usr/share/pyshared/trac/admin/templates/deploy_trac.wsgi #!${executable} trac: unusual-interpreter usr/share/pyshared/trac/admin/templates/deploy_trac.wsgi #!${executable} debian/control0000644000000000000000000000475312171564320010603 0ustar Source: trac Section: web Priority: optional Build-Depends: debhelper (>= 9), python-genshi (>= 0.6) Build-Depends-Indep: python (>= 2.6.6-3~), python-babel (>= 0.9.5), python-setuptools (>= 0.6) Maintainer: Python Applications Packaging Team Uploaders: Otavio Salvador , W. Martin Borgert , Daniel Kahn Gillmor Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/trac.git Vcs-Git: git://anonscm.debian.org/collab-maint/trac.git X-Python-Version: >= 2.5 Homepage: http://trac.edgewall.com Package: trac Architecture: all Depends: libjs-excanvas, libjs-jquery, libjs-jquery-ui, libjs-jquery-timepicker, python-genshi (>= 0.6), python-setuptools (>= 0.6), ${misc:Depends}, ${python:Depends} Recommends: apache2 | httpd, python-babel (>= 0.9.5), python-docutils (>= 0.3.9), python-pygments (>= 0.6), python-subversion, python-tz Suggests: libapache2-mod-wsgi, python-psycopg2, python-textile (>= 2.0), trac-accountmanager, trac-authopenid, trac-bitten, trac-bzr (>= 0.2+bzr45), trac-customfieldadmin, trac-email2trac, trac-graphviz, trac-ja-resource, trac-mastertickets, trac-mercurial (>= 0.11.0.4), trac-spamfilter, trac-wikiprint, trac-wikirename, trac-wysiwyg, trac-xmlrpc Description: Enhanced wiki and issue tracking system for software development projects Trac uses a minimalistic approach to web-based software project management. Its mission is to help developers write great software while staying out of the way. Trac should impose as little as possible on a team's established development process and policies. It provides an interface to Subversion (or other version control systems), an integrated Wiki and convenient reporting facilities. Trac allows wiki markup in issue descriptions and commit messages, creating links and seamless references between bugs, tasks, changesets, files and wiki pages. A timeline shows all current and past project events in order, making the acquisition of an overview of the project and tracking progress very easy. The roadmap shows the road ahead, listing the upcoming milestones. debian/patches/0000755000000000000000000000000012171564320010616 5ustar debian/patches/60_do_not_ship_jquery_ui_images.patch0000644000000000000000000000402512171564320020073 0ustar diff --git a/setup.py b/setup.py index 086b969..97bdb83 100755 --- a/setup.py +++ b/setup.py @@ -85,7 +85,7 @@ facilities. 'trac': ['htdocs/*.*', 'htdocs/README', 'htdocs/js/*.*', 'htdocs/js/messages/*.*', 'htdocs/css/*.*', 'htdocs/css/jquery-ui/*.*', - 'htdocs/css/jquery-ui/images/*.*', + 'htdocs/css/jquery-ui/images', 'htdocs/guide/*', 'locale/*/LC_MESSAGES/messages.mo', 'locale/*/LC_MESSAGES/tracini.mo'], 'trac.wiki': ['default-pages/*'], diff --git a/Trac.egg-info/SOURCES.txt b/Trac.egg-info/SOURCES.txt index 3959405..283b079 100644 --- a/Trac.egg-info/SOURCES.txt +++ b/Trac.egg-info/SOURCES.txt @@ -214,22 +214,6 @@ trac/htdocs/css/timeline.css trac/htdocs/css/trac.css trac/htdocs/css/wiki.css trac/htdocs/css/jquery-ui/jquery-ui.css -trac/htdocs/css/jquery-ui/images/ui-bg_diagonals-thick_18_ffddcc_40x40.png -trac/htdocs/css/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png -trac/htdocs/css/jquery-ui/images/ui-bg_flat_00_ffffff_40x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_flat_0_ffffdd_40x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_flat_0_ffffff_40x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_flat_10_000000_40x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_highlight-soft_30_303030_1x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_highlight-soft_75_c0f0c0_1x100.png -trac/htdocs/css/jquery-ui/images/ui-bg_highlight-soft_80_ffffdd_1x100.png -trac/htdocs/css/jquery-ui/images/ui-icons_222222_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_4b954f_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_505050_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_707070_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_9b081d_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_b00000_256x240.png -trac/htdocs/css/jquery-ui/images/ui-icons_d7d7d7_256x240.png trac/htdocs/guide/admin-permissions-TICKET_ADMIN.png trac/htdocs/guide/admin-permissions.png trac/htdocs/guide/admin.png debian/patches/series0000644000000000000000000000013712171564320012034 0ustar 20_add_interpreter_line.patch 50_sqlitetopg_script.patch 60_do_not_ship_jquery_ui_images.patch debian/patches/50_sqlitetopg_script.patch0000755000000000000000000003044612127606335015740 0ustar Author: Description: Add script to migrate from SQlite to PostgreSQL. --- /dev/null +++ b/contrib/sqlitetopgscript/sqlite2pg @@ -0,0 +1,336 @@ +#!/usr/bin/env python + +# -*- coding: utf-8 -*- +# +# Copyright (C) 2008 John Hampton +# All rights reserved. +# +# This software is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at http://trac.edgewall.com/license.html. +# +# This software consists of voluntary contributions made by many +# individuals. For the exact contribution history, see the revision +# history and logs, available at: +# http://trac-hacks.org/wiki/SqliteToPgScript +# +# Basically, it boils down to: feel free to use/modify/distribute/etc. +# However, give me credit where due. Also, if you like the script and +# find it useful, buy me a soda or candy bar or something if ever we +# meet. Thanks and enjoy. +# +# Author: John Hampton + + +import os, os.path, sys +from trac.env import Environment, EnvironmentSetup, IEnvironmentSetupParticipant +from trac.core import ComponentMeta +from trac.db import DatabaseManager +from optparse import OptionParser +from psycopg2 import ProgrammingError, IntegrityError +from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT + +VERSION='0.10' + +class TableMigration(object): + """ + Class to conatin all table migration functions + """ + def __init__(self, sqlenv, pgenv, opts): + """ Create a TableMigration instance. Required are SQLite and + PostgreSQL environment objects + """ + self.sqlenv = sqlenv + self.pgenv = pgenv + self.opts = opts + self.sdb = self.sqlenv.get_db_cnx() + self.pgdb = self.pgenv.get_db_cnx() + self.pgdb_schema = self.pgdb.schema + pass + + def lookupMethod(self, table): + """ Get a reference to the function that handles migration for the + specified table + """ + m = getattr(self, ''.join(['migrate_', table.upper()]), None) + if not m: + m = self.default_copy + return m + + def cleanTable(self, table): + """ Clear the contents of the table """ + cur = self.pgdb.cursor() + delete_from = "DELETE FROM %s" % table + cur.execute(delete_from) + + def migrateTable(self, table): + """ Migrate the table specified. """ + if not self.opts.noclean: + self.cleanTable(table) + m = getattr(self, ''.join(['migrate_', table.upper()]), None) + if not m: + rc = self.default_copy(table) + else: + rc = m() + return rc + + def default_copy(self, table): + """ Copy the table from the sqlite db to the postgresql db """ + select_all = "SELECT * FROM %s" % table + scur = self.sdb.cursor() + pgcur = self.pgdb.cursor() + scur.execute(select_all) + cols = scur.description + if not cols: + return True + subs = ["%s" for x in range(len(cols))] + insert_into = ''.join([ "INSERT INTO ", table, " VALUES (", + ','.join(subs), ")"]) + rows = row_exists = 0 + for row in scur: + rows += 1 + try: + pgcur.execute(insert_into, row) + except (ProgrammingError, IntegrityError): + row_exists += 1 + continue + if row_exists: + print "%s of %s rows already existed in the %s table" % \ + (str(row_exists), str(rows), table) + self.pgdb.commit() + return row_exists > 0 + + def migrate_TICKET(self): + """ Migrate the ticket table and adjust the sequences properly """ + self.default_copy('ticket') + select_maxticket = "SELECT max(id) FROM ticket" + pgcur = self.pgdb.cursor() + pgcur.execute(select_maxticket) + r = pgcur.fetchone() + if r: + pgcur.execute("SELECT setval('ticket_id_seq', %s)", r) + self.pgdb.commit() + + def migrate_REPORT(self): + """ Migrate the report table and adjust the sequences properly """ + self.default_copy('report') + select_maxreport = "SELECT max(id) FROM report" + pgcur = self.pgdb.cursor() + pgcur.execute(select_maxreport) + r = pgcur.fetchone() + if r: + pgcur.execute("SELECT setval('report_id_seq', %s)", r) + self.pgdb.commit() + + def migrate_PERMISSION(self): + """ + Migrate permission table + """ + scur = self.sdb.cursor() + pgcur = self.pgdb.cursor() + rows = row_exists = 0 + if not self.opts.plist: + sql_select = "SELECT * FROM permission" + else: + subs = [] + for x in range(len(self.opts.plist)): + subs.append("%s") + continue + sql_select = ''.join([ "SELECT * FROM permission ", + "WHERE username NOT IN (", + ','.join(subs), + ")", + ]) + + scur.execute(sql_select, self.opts.plist) + sql_insert = "INSERT INTO permission VALUES (%s, %s)" + for row in scur: + rows += 1 + try: + pgcur.execute(sql_insert, row) + except (ProgrammingError, IntegrityError): + row_exists += 1 + continue + if row_exists: + print "%s of %s rows already existed in the permission table" % (str(row_exists), str(rows)) + self.pgdb.commit() + return row_exists > 0 + + def migrate_WIKI(self): + """ + Migrate wiki table + """ + scur = self.sdb.cursor() + pgcur = self.pgdb.cursor() + rows = row_exists = 0 + if not self.opts.wlist: + sql_select = "SELECT * FROM wiki" + else: + subs = [] + for x in range(len(self.opts.wlist)): + subs.append("%s") + continue + sql_select = ''.join([ "SELECT * FROM wiki ", + "WHERE name NOT IN (", + ','.join(subs), + ")", + ]) + + scur.execute(sql_select, self.opts.wlist) + sql_insert = "INSERT INTO wiki VALUES (%s, %s, %s, %s, %s, %s, %s, %s)" + for row in scur: + rows += 1 + try: + pgcur.execute(sql_insert, row) + except (ProgrammingError, IntegrityError): + row_exists += 1 + continue + if row_exists: + print "%s of %s rows already existed in the wiki table" % (str(row_exists), str(rows)) + self.pgdb.commit() + return row_exists > 0 + + +def getSQLiteEnvironment(opts): + """ Create an Environment connected to the SQLite database """ + + dburi = opts.sqlite_uri + env = Environment(opts.tracenv) + env.config.set('trac', 'database', dburi) + return env + +def getPostgreSQLEnvironment(opts): + """ Create an Environment connected to the PostgreSQL database """ + + dburi = opts.pg_uri + env = Environment(opts.tracenv) + env.config.set('trac', 'database', dburi) + try: + cnx = env.get_db_cnx() + cur = cnx.cursor() + cur.execute("select value from system where name = 'database_version'"); + except ProgrammingError: + cnx.rollback() + DatabaseManager(env).init_db() + DatabaseManager(env).shutdown() + for x in filter(None, [env.compmgr[cls] for cls in + ComponentMeta._registry.get( + IEnvironmentSetupParticipant, [])]): + if isinstance(x, EnvironmentSetup): + x.environment_created() + if env.needs_upgrade(): + env.upgrade() + return env + +def getAllTables(env): + """ Queries the PostgreSQL database for a list of tables """ + cnx = env.get_db_cnx() + schema = cnx.schema or u'public' + cur = cnx.cursor() + select_tables = """SELECT tablename + FROM pg_catalog.pg_tables + WHERE schemaname = %s""" + cur.execute(select_tables, (schema,)) + cnx.commit() + return [table[0] for table in cur] + +def Main(opts): + """ + Migrate data from SQLite to PostgreSQL + """ + rc = 0 + + sqlenv = getSQLiteEnvironment(opts) + pgenv = getPostgreSQLEnvironment(opts) + tmigration = TableMigration(sqlenv, pgenv, opts) + if not opts.tlist: + opts.tlist = getAllTables(pgenv) + for tname in opts.tlist: + try: + rc = tmigration.migrateTable(tname) or rc + except AttributeError: + print "Migration of %s has not been implemented" % tname + pass + continue + + return rc + +def doArgs(argv): + """ Look if you can't guess what this function does, just give up now. """ + global VERSION + + version = "%%prog %s" % VERSION + usage ="usage: %prog [options] [site]" + description="%prog is used to migrate data from SQLite to PostgreSQL." + + parser = OptionParser(usage=usage, version=version, description=description) + + parser.add_option("-t", "--tracbase", dest="tracbase", type="string", + help="Parent path for trac sites", + metavar="") + parser.add_option("-e", "--tracenv", dest="tracenv", type="string", + help="Path to trac environment", + metavar="") + parser.add_option("-m", "--migrate", dest="migrate", type="string", + help="Comma separated list of tables to migrate", + metavar="", default=None) + parser.add_option("", "--exclude_perms", dest="perms_exclude", + type="string", help="Comma separated list of users to " + "exclude from permission migration", metavar="") + parser.add_option("-w", "--wikipages", dest="wikipages", type="string", + help="Comma separated list of wiki page names to " + "ommit from the migration", metavar="") + parser.add_option("-p", "--pg_uri", dest="pg_uri", type="string", + help="DB URI for PostgreSQL database", + metavar="") + parser.add_option("-s", "--sqlite_uri", dest="sqlite_uri", type="string", + help="DB URI for SQLite database", + metavar="", default="sqlite:db/trac.db") + parser.add_option("", "--noclean", dest="noclean", action="store_true", + help="Do not clear PostgreSQL tables before transfer", + default=False) + + (options, args) = parser.parse_args(argv) + if not options.tracenv: + if not options.tracbase: + print ("You must specify the --tracenv or the --tracbase option") + sys.exit(1) + else: + if len(args) < 1: + print ("You must specify a project name\n") + sys.exit(1) + options.project = args[0] + options.tracenv = os.path.join(options.tracbase, args[0]) + + if not options.pg_uri or not options.pg_uri.startswith('postgres://'): + print ("You must specify a valid URI for the PostgreSQL database.") + print (" eg. postgres://user:password@localhost/dbname") + sys.exit(1) + + if not options.sqlite_uri or not options.sqlite_uri.startswith('sqlite:'): + print ("You must specify a valid URI for the SQLite database.") + print (" eg. sqlite:db/trac.db") + sys.exit(1) + + + options.args = args + options.tlist = options.migrate and \ + [t.strip() for t in options.migrate.strip().split(',')] + options.wlist = options.wikipages and \ + [w.strip() for w in options.wikipages.strip().split(',')] \ + or [] + options.plist = options.perms_exclude and \ + [p.strip() for p in options.perms_exclude.strip().split(',')] \ + or [] + + return options + + +def main(argv): + opts = doArgs(argv) + Main(opts) + return 0 + +if __name__ == '__main__': + sys.exit(main(sys.argv[1:])) + debian/patches/20_add_interpreter_line.patch0000755000000000000000000000045012127606335016330 0ustar Author: Description: Adds the Python interpreter shebang line to modpython_frontend.py. --- a/trac/web/modpython_frontend.py +++ b/trac/web/modpython_frontend.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2004-2009 Edgewall Software debian/changelog0000644000000000000000000005745412171564320011060 0ustar trac (1.0.1-2) unstable; urgency=low [ Daniel Kahn Gillmor ] * upload to unstable * clean up README.Debian -- Daniel Kahn Gillmor Thu, 09 May 2013 17:05:50 -0400 trac (1.0.1-1) experimental; urgency=low [ Daniel Kahn Gillmor ] * New Upstream Release (Closes: #690018) * bumped debhelper to version 9 * added myself to Uploaders * dropped 30_default_charset_utf8.patch, incorporated upstream. * bumped Standard-Versions to 3.9.4 (no changes needed) * switched Vcs-*: to collab-maint git -- Daniel Kahn Gillmor Thu, 28 Mar 2013 04:56:50 -0400 trac (0.12.5-1) experimental; urgency=low [ W. Martin Borgert ] * New upstream 0.12.5 (long term support). -- W. Martin Borgert Sun, 24 Feb 2013 19:03:11 +0000 trac (0.12.4-1) experimental; urgency=low [ W. Martin Borgert ] * New upstream 0.12.4 (long term support). -- W. Martin Borgert Sun, 07 Oct 2012 12:05:25 +0000 trac (0.12.3-1) unstable; urgency=low * new upstream version (Closes: #658963) * remove embedded jQuery copy, again (Closes: #645235) * new policy version, no changes * suggest python-psycopg2, add some hints about using Trac with PostgreSQL in README.Debian [ Daniel Kahn Gillmor ] * add Build-Dep on python-babel so that translations will be shipped (Closes: #644401) -- W. Martin Borgert Thu, 31 May 2012 20:55:24 +0000 trac (0.12.2-1) unstable; urgency=low * Team upload. * New upstream release (Closes: #563391) (LP: #696284) - fixes search highlighting (Closes: #621488) * Drop 15_remove_jquery_file.dpatch because Trac requires a specific version of jQuery (Closes: #592734, #610557) (LP: #526810, #610205). (also drop postinst and prerm code for using the provided version) * Drop 40_timeline_author_filter.dpatch: fixed upstream. * Drop 60_fix_nameerror.dpatch: fixed upstream. * Drop 70_cache_control_typo.dpatch: fixed upstream * Drop 80_correct_plugin_names.dpatch: upstream changed mechanism which probably also fixes the original issue. * Switch to 3.0 (quilt) source format. * Update Vcs-Browser field (Closes: #629651). * Moved packaging from python-central to dh_python2 (Closes: #617126). * Dropped conflicts on libapache2-mod-python2.3 because that package was removed before the lenny release. * Switch to dh-style debian/rules. * Bump standards-version to 3.9.2; no changes required. * No longer include empty /etc/trac directory. * Re-organise dependencies, removing deprecated things and adding things for Trac 0.12. * Make package lintian clean. * Update debian/copyright file. -- Arthur de Jong Wed, 13 Jul 2011 23:00:00 +0200 trac (0.11.7-4) unstable; urgency=low * No longer reference site-packages (Closes: #588136, #591593). Thanks to Ara Pulido for reporting and patch. * Use changeset 9403, missing imports (Closes: #583154). Thanks to Anatoly . * Lintian cleanups in debian/control. * New policy version, no changes. -- W. Martin Borgert Wed, 04 Aug 2010 20:26:31 +0000 trac (0.11.7-3) unstable; urgency=low * Correced accidently moved DEBHELPER line (Closes: #576988). Thanks to Marc J. Driftmeyer . -- W. Martin Borgert Thu, 08 Apr 2010 19:56:26 +0000 trac (0.11.7-2) unstable; urgency=low * Removed Luis and Jesus from uploaders. Thanks for your work! * Create symlink for jquery.js (Closes: #495053). Thanks to Max V. Stotsky" . -- W. Martin Borgert Thu, 08 Apr 2010 08:25:08 +0000 trac (0.11.7-1) unstable; urgency=low * New upstream release (Closes: #573260). * Added more Trac plugins as suggestions. * Removed obsolete patches. -- W. Martin Borgert Wed, 17 Feb 2010 08:38:41 +0100 trac (0.11.6-3) unstable; urgency=low [ Jakub Wilk ] * Replace deprecated > operator with >=. [ W. Martin Borgert ] * Fix problem with wrong plugin names (Closes: #562963). Thanks to Anatoly Techtonik for providing the patch. * Added some Trac plugins as suggestions. -- W. Martin Borgert Sun, 07 Feb 2010 13:06:32 +0000 trac (0.11.6-2) unstable; urgency=low * Create jQuery symlink at install time, as the file might not exist at that moment. (Closes: #562145). Thanks, Clint Adams. * Fix a typo in tracd HTTP header, thanks to Sebastien Couret for fixing. (Closes: #561406). -- W. Martin Borgert Thu, 24 Dec 2009 08:43:08 +0000 trac (0.11.6-1) unstable; urgency=low * New upstream release (Closes: #558976). * Fix version of build dependency (Closes: #551688), thanks, Kumar Appaiah. * Fix a potential pysqlite cursor problem, thanks, Grzegorz Sobanski. See debian/patches/60_roadmap_dbx_cursor_fix.dpatch -- W. Martin Borgert Mon, 07 Dec 2009 17:19:33 +0000 trac (0.11.5-5) unstable; urgency=low * Include SqliteToPg script in contrib (Closes: #505680). * Advice user to restart HTTPD after upgrade in README.Debian (Closes: #519670). * Add patch to support user filter for timeline (Closes: #550469). -- W. Martin Borgert Sat, 10 Oct 2009 12:00:50 +0000 trac (0.11.5-4) unstable; urgency=low * Revert the change: Depend on python-setuptools instead of python-pkg-resources (Closes: #546426). In theory setuptools should not be needed (only used in env.py and requires.txt). -- W. Martin Borgert Tue, 29 Sep 2009 01:34:38 +0200 trac (0.11.5-3) unstable; urgency=low [ W. Martin Borgert ] * Improved package description. * Fixed another lintian. * Use python.mk and its macros py_setup_install_args and py_libdir_sh for Python 2.6, thanks to Chris Coulson for the patch (Closes: #547865). * Relax dependencies on JQuery and Subversion (Closes: #547450). * Depend on python-pkg-resources instead of python-setuptools (Closes: #546426). * Add suggestions for trac-accountmanager and trac-email2trac. * Add some words about sqlite upgrade to README.Debian (Closes: #501338). * Use UTF-8 as default charset instead of ISO-8859-15. [ anatoly techtonik ] * README.Debian update for 0.11.x - Trac can work without repository - warn that CGI setup is sluggish - other minor edits -- W. Martin Borgert Mon, 28 Sep 2009 20:27:54 +0000 trac (0.11.5-2) unstable; urgency=low * Set exec bit for *_frontends (Closes: #510441), thanks to Torsten Landschoff for the patch. * Move python-psycopg2 and python-mysql from Suggests to Depends as alternative to python-psqlite2 (Closes: #513117). * Use debhelper 7 (Closes: #497862). * Don't compress *-hook files and don't install MS-Windows *.cmd files (Closes: #526142), thanks to Jan Dittberner for the patch. * Add README.source to point to dpatch. -- W. Martin Borgert Tue, 15 Sep 2009 21:43:38 +0000 trac (0.11.5-1) unstable; urgency=low * New upstream release (Closes: #521513). * Fixed pysqlite dependency (Closes: #518560), thanks to Alban Browaeys for the patch. * Fixed missing contrib files (Closes: #495019), thanks to Alexander Gerasiov for the patch. * Maintenance goes to python apps team. The pre-history is here: VCS-Git: git://git.debian.org/git/pkg-trac/trac.git VCS-Browser: http://git.debian.org/?p=pkg-trac/trac.git * Removed patches/10_remove_trac_suffix_from_title - it seems that the string "Trac" only is used now when no project name is set. * Removed patches/17_SA32652.dpatch - this fix was already a back port of an upstream change. -- W. Martin Borgert Tue, 15 Sep 2009 00:11:31 +0000 trac (0.11.1-2.1) unstable; urgency=high * Non-maintainer upload. * Fix Trac Multiple Vulnerabilities (SA32652) (Closes: #505197) -- Giuseppe Iuculano Sun, 16 Nov 2008 18:34:25 +0100 trac (0.11.1-2) unstable; urgency=low * Upstream version "Trac 0.11.1 contains a number of bug fixes and minor enhancements." * Patch setup.py to install the contrib dir ( Closes: #495019 ) * Modified compatible version of trac-bzr so that trac 0.11.1 an be used with the current trac-bzr version. -- Luis Matos Sat, 16 Aug 2008 00:08:30 +0100 trac (0.11.1-1) experimental; urgency=low * New upstream version * Added dh_link to debian/rules Closes: #494003. * Adding $(PYVER) in rules also Closes: #493079. * Trac 0.11 also seems to close old bugs. ( Closes: #436293, #400774, #435321 ). -- Luis Matos Thu, 07 Aug 2008 02:06:25 +0100 trac (0.11+svn7384-1) experimental; urgency=low * updated SOURCES.txt for the svn revision version * Updated patch 15_remove_jquery_file for jquery 1.2.6 * Updated source to revision 7384 * Added a version dependency on trac-bzr because 0.2 is not trac 0.11 compatible. * Changed debian/control because trac supports both mod-python and mod-wsgi. * Dropped hardcoded python version. This will please bzed! * Added lintian overrides because of deploy handling the interpreter's path -- Luis Matos Thu, 24 Jul 2008 01:22:53 +0100 trac (0.11-3) unstable; urgency=low * Updated Readme.Debian - Thanks to W. Martin Borgert. Closes: #490926 * added the coderanger's website as trac info source * Removed php-cli and clearsilver from suggests * Upstream prefers psycopg2 for postgresql backend * Removed the jquery.js file, added a dependency for jquery * Updated the watch file since now trac packages start with a T * Added Homepage field in debian/control * Added a suggests on libapache2-mod-wsgi * Added me as Uploader so lintian won't complain about NMU's -- Luis Matos Mon, 21 Jul 2008 21:23:12 +0100 trac (0.11-2) unstable; urgency=low * Re-added python-setup-tools to build dependences. Closes: #490320 #468705 * New upstream release Closes: 489727 * Added sugestion for other vcs support available: git bazaar mercurial * Added spamfilter plugin to sugests * Moved packaging from python-support to python-central * Added an entry to the NEWS about the cgi Closes: #490275 * Updated 10_remove_trac_suffix_from_title patch to be used in 0.11 -- Luis Matos Sun, 13 Jul 2008 23:46:20 +0100 trac (0.11-1) unstable; urgency=low [ Luis Matos ] * New Upstream release Closes: #463201 * Does not work with PostgreSQL 8.3 - column type conflict (Closes: #464168) * s/python-setuptools/python-pkg-resources/ dependency (Closes: #468705) * Updated Depends and Recommends to follow bug report. Closes: #487150 -- Otavio Salvador Tue, 08 Jul 2008 20:17:04 -0300 trac (0.11~rc1-1) experimental; urgency=low * New upstream release * Bump standards-version to 3.7.3; no changes required * Fix typos and break a long line on extended descriptions * Drop binary-post-install rule since it's not required anymore * Add a build-depends on python-setuptools * Add patch to remove ' - Trac' from title. Thanks Sam Hocevar . Closes: #482181 * Drop 01_use_global_config.dpatch since Trac now offers a better and more flexible way to handle it * Add a NEWS note about the change regarting system-wide trac.ini handling -- Otavio Salvador Sat, 07 Jun 2008 19:17:43 -0300 trac (0.10.4-2) unstable; urgency=low [ Otavio Salvador ] * Remove trac/siteconfig.py on package clean up * debian/control: Add XS-VCS-{Git,Browser} fields. * Change maintainer to Debian Trac Team and move Jesus to uploaders field. [ Luis Matos ] * Add php5-cli to Suggests field (Closes: #407118) * changed README.Debian. (Closes: #405903) * Trac shouls at least suggest postgresql-client or mysql-client (Closes: #393933) * Moved python-psycopg2 from depends to suggests * workaround for instance.__dict__ not accessible in restricted mode (Closes: #389826) -- Otavio Salvador Mon, 04 Jun 2007 17:39:51 -0300 trac (0.10.4-1) unstable; urgency=low * New upstream release (Closes: #414134, #420219) * Fixed typo in debian/copyright file (Closes: #422409) -- Luis Matos Sun, 20 May 2007 22:46:56 +0100 trac (0.10.3-1) unstable; urgency=low * New upstream upload. Final 0.10.3 release that will hopefully make it into Debian 4.0 etch. * Add a NEWS entry for trac.ini being moved to /etc/trac/trac.ini (Closes: #402937) -- Jesus Climent Wed, 13 Dec 2006 23:18:45 +0200 trac (0.10.3~rc1-1) unstable; urgency=low * This is the "Luis Matos" release. Without his help and dedication we would have never had it. Thanks. * New upstream release candidate. * Change the global path for the config file from /usr/share to /etc/trac (Closes: #393226, #337243, #386415, #400826) * The "NoSuchChangeset" problem is solved in this release (Closes: #400489) -- Jesus Climent Tue, 12 Dec 2006 00:20:33 +0200 trac (0.10.2-1) unstable; urgency=high * New upstream release, fixing 3 RC bugs introduced at 0.10.1, which were not triggered in normal conditions. - Fixes deadlock when using authz_file config option - Makes the CSRF code play nice with the XmlRpcPlugin - Fixes Timeline breakage after svn commit when using sqlite -- Jesus Climent Mon, 13 Nov 2006 22:46:59 +0200 trac (0.10.1.svn4235-1) unstable; urgency=high * Subversion stable checkout to get a fix for Timeline and Browse Source. * Urgency high because this is an RC candidate. -- Jesus Climent Fri, 11 Nov 2006 14:25:36 +0200 trac (0.10.1-1) unstable; urgency=high * New Upstream Release (Closes: #397683) * Depend on python-psycopg2 (Closes: #397725) * Security fix, hence urgency=high. No DSA or CVS available yet. * Upstream changes (most important ones): - fixed CSRF vulnerability - better database handling - only TICKET_ADMIN can assign a passed milestone to a ticket - failed to upload attachments - more (comprehensive list can be found at http://trac.edgewall.org/query?status=closed&milestone=0.10.1) -- Jesus Climent Thu, 9 Nov 2006 11:53:53 +0200 trac (0.10-3) unstable; urgency=low * debian/control: changed the Conflicts: entry with a versioned oned (Closes: #393842, #384381) -- Jesus Climent Wed, 18 Oct 2006 11:47:41 +0300 trac (0.10-2) unstable; urgency=medium * debian/control: Added a Conflicts: against libapache2-mod-python2.3 to avoid breakage if using it through apache2 (Closes: #384381). * Urgency = high to get it back in etch. * Added missing changelog entries from Andres Salomon. -- Jesus Climent Mon, 16 Oct 2006 21:58:29 +0300 trac (0.10-1) unstable; urgency=low * New upstream release * Add a watch file * Add a NEWS entry to remember user that he needs to handle the upgrade byhand -- Otavio Salvador Thu, 5 Oct 2006 13:51:10 -0300 trac (0.10~b1-1) experimental; urgency=low * New upstream release, finally. * Incorporate new python policy magic (closes: #384969). -- Andres Salomon Wed, 30 Aug 2006 01:36:55 +0000 trac (0.9.99+0.10svn20060710-1) experimental; urgency=low * New snapshot of 0.10dev (revision 3519). Note that this includes the security update that was in the 0.9.6 release. -- Andres Salomon Mon, 10 Jul 2006 15:36:51 -0400 trac (0.9.99+0.10svn20060626-1) experimental; urgency=low * New snapshot of 0.10dev (revision 3488). -- Andres Salomon Mon, 26 Jun 2006 17:33:41 -0400 trac (0.9.99+0.10svn20060610-1) experimental; urgency=low * New upstream release; stick a snapshot of 0.10dev (revision 3390) into experimental (closes: #370657). -- Andres Salomon Sat, 10 Jun 2006 18:29:25 -0400 trac (0.9.6-3) unstable; urgency=low * Make the python-support build-dep-indep a normal build-depends, and drop the python dep (python-support pulls in python). * Reset permissions on wikitoolbar.js during build. * Drop old usr/lib/python2.3/site-packages/trac/ path from package, which cdbs seemed to be picking up for some reason (closes: #385166). -- Andres Salomon Wed, 30 Aug 2006 01:53:25 +0000 trac (0.9.6-2) unstable; urgency=low * Upgraded to the new Python policy (Closes: #380977) * Standards updated to 3.7.2, no changes needed. -- Jesus Climent Thu, 10 Aug 2006 21:41:04 +0300 trac (0.9.6-1) unstable; urgency=high * New upstream release. * Security upload, hence urgency set to high. - Fixed reStructuredText breach of privacy and denial of service vulnerability found by Felix Wiemann. - trac-post-commit-hook fix. * Added -f to rm to enforce removal of file, even if it does not exist. -- Jesus Climent Thu, 6 Jul 2006 23:28:04 +0300 trac (0.9.5-2) unstable; urgency=low * Add myself to uploaders. * Ack NMU; thanks Lars! * Drop debian-specific manpages; upstream already includes them. Allow debhelper to create manpage directory, as well. * Change the path for test.py in debian/rules to match regardless of the python version. * Fix grammar errors in README.Debian; thanks to Micah Anderson for the patch (closes: #372188). -- Andres Salomon Sat, 10 Jun 2006 05:44:19 +0000 trac (0.9.5-1.1) unstable; urgency=low * Non-maintainer upload. * Fix debian/rules clean target so it doesn't break by trying to remove files even when they don't exist. Closes: #366827. * Updated build dependency for debhelper to be at leat 4.1.0, since that is required for cdbs's debhelper.mk to work (according to linda, at least). -- Lars Wirzenius Sun, 21 May 2006 07:41:47 +0300 trac (0.9.5-1) unstable; urgency=high * New upstream release. * Security upload, hence urgency set to HIGH. - Fixed wiki macro XSS vulnerability. - Smaller memory usage when accessing subversion history. - Fixed issue with incorrectly generated urls when installed behind a web proxy. -- Jesus Climent Tue, 18 Apr 2006 20:04:25 +0000 trac (0.9.4-3) unstable; urgency=low * Set a proper python-subversion dependency (Closes: #356797) -- Jesus Climent Tue, 28 Mar 2006 18:49:06 +0000 trac (0.9.4-2) unstable; urgency=low * Revert db_default.py move. (Reopen: #332657) -- Otavio Salvador Thu, 16 Feb 2006 10:45:24 -0200 trac (0.9.4-1) unstable; urgency=low * New upstream release. * Revert back compatibility level to 4 allowing easier backporting to Sarge. * Move db_default.py to /etc/trac allowing better user customizability (Closes: #332657). -- Otavio Salvador Thu, 16 Feb 2006 10:12:23 -0200 trac (0.9.3-1) unstable; urgency=high * New upstream release. * Security update (thus urgengy high), fixing: - Fixed XSS vulnerabilities. * Also, fixes: - Timeline RSS feed validity issue resolved. - "trac-admin initenv" now handles empty repositories. - Textile unicode support. -- Jesus Climent Sun, 8 Jan 2006 20:24:43 +0000 trac (0.9.2-1) unstable; urgency=high * New upstream release. * Security update (urgency high), fixing: - an SQL injection vulnerability in the search module. - broken email ticket notifications. -- Jesus Climent Mon, 5 Dec 2005 19:36:02 +0000 trac (0.9.1-2) unstable; urgency=low * The new version solves upgrade problems from experimental (Closes: #338122) * Tras was relicensed as with a modified BSD license. Change "copyright" accordingly. * Added ${python:Depends} to handle dependencies. * Compat updated to 5. -- Jesus Climent Thu, 1 Dec 2005 21:46:10 +0000 trac (0.9.1-1) unstable; urgency=HIGH * New upstream release - Fix a SQL injection security bug. -- Otavio Salvador Thu, 1 Dec 2005 20:02:37 -0200 trac (0.9-1) unstable; urgency=low * New upstream release - 10_stolen_from_0.8-branch.patch: not need anymore. - 11_fix_misleading_error.patch: not need anymore. - Fix leak of temporary files; (Closes: #327803) - Apache configuration snip was improved; (Closes: #327206) * debian/control: - Add recommends of python2.3-setuptools to support plugins; - Add python2.3-pysqlite2 and python2.3-psycopg as alternatives to python2.3-sqlite; - Add suggests of libapache2-mod-python; - Add depends of python2.3 package to leave lintain happy. * debian/README.Debian: cite the need of a ready to use Subversion repository to setup Trac environment. (Closes: #327205) -- Otavio Salvador Mon, 31 Oct 2005 18:02:30 -0200 trac (0.8.4-2) unstable; urgency=low * Add 10_stolen_from_0.8-branch.patch sync with r2041. * Add 11_fix_misleading_error.patch. (Closes: #320926) * Bumb Standards-Version to 3.6.2. -- Otavio Salvador Tue, 2 Aug 2005 07:18:11 -0300 trac (0.8.4-1) unstable; urgency=critical * New upstream release. - Fixed file upload vulnerability. Trac could be tricked into uploading files outside the environment directory. -- Otavio Salvador Sun, 19 Jun 2005 16:06:42 -0300 trac (0.8.3-1) unstable; urgency=low * New upstream release: - 01_sync_from_0.8-branch.diff droped since all patches was included on this release. - Support Subversion 1.2 was add (Closes: #314200) -- Otavio Salvador Wed, 15 Jun 2005 19:57:06 -0300 trac (0.8.1-3) unstable; urgency=low * debian/patches/01_sync_from_0.8-branch.diff: - Sync with r1520. This have all previous fixes and more. -- Otavio Salvador Sun, 17 Apr 2005 19:09:59 -0300 trac (0.8.1-2) unstable; urgency=low * debian/rules: - Add support for patching in build process; - Include contrib/ on doc directory. (Closes: #298969) * debian/patches/01_sync_from_0.8-branch.diff: - Added in sync with r1461. This include the fix for AssertionError raised when visiting WikiRestructuredTextLinks after clean install bug. (Closes: #301151) -- Otavio Salvador Tue, 29 Mar 2005 20:44:07 -0300 trac (0.8.1-1) unstable; urgency=low * debian/control: - Add suggestion of enscript and python-docutils (Closes: #284094) - Change debhelper build-dependencie to build-depends-indep and set it to be (>= 4.0.0) - Recommends a http server instead of depends of it (Closes: #294674) * New upstream release (Closes: #298011) -- Otavio Salvador Sat, 5 Mar 2005 17:29:21 -0300 trac (0.8-1) unstable; urgency=low * New upstream release (Closes: #282010) -- Otavio Salvador Mon, 20 Dec 2004 22:49:48 -0200 trac (0.7.1-4) unstable; urgency=low * debian/control - changed the order httpd<>apache2 - added python as build-dependency (Closes: #270180) -- Jesus Climent Mon, 6 Sep 2004 09:06:28 +0000 trac (0.7.1-3) unstable; urgency=low * debian/control: Depends: changed to include virtual httpd (Closes: #267890) -- Jesus Climent Sat, 28 Aug 2004 17:48:55 +0300 trac (0.7.1-2) unstable; urgency=low * debian/control: - Fixed typo (Closes: #266868) -- Jesus Climent Thu, 19 Aug 2004 17:03:39 +0000 trac (0.7.1-1) unstable; urgency=low * First package upload. * Man pages taken from trunk. -- Jesus Climent Mon, 19 Jul 2004 12:01:17 +0000 debian/NEWS0000644000000000000000000000345012127606335007674 0ustar trac (0.11-2) unstable; urgency=low Trac no longer provides standalone cgi. CGI sripts must be generated using trac-admin: trac-admin path/to/env deploy /path/to/deploy_dir deploy_dir has the cgi-bin and the htdocs bin. -- Luis Matos Mon, 14 Jul 2008 00:29:56 +0100 trac (0.11~rc1-1) unstable; urgency=low Trac no longer implicitly assumes nor installs global data in the /etc/trac/trac.ini. Instead, you'll have to modify the configuration of your project environments to explicitly "inherit" a global configuration in trac.ini, for example: [inherit] file = /etc/trac/trac.ini This will load the configuration from the /etc/trac/trac.ini file, while of course allowing to override any global settings in the environment's configuration. In that global configuration, you can specify shared directories for templates and plugins, e.g.: [inherit] plugins_dir = /etc/trac/plugins/ templates_dir = /etc/trac/templates/ -- Otavio Salvador Wed, 21 May 2008 13:58:10 -0300 trac (0.10.3-1) unstable; urgency=low This release has a new system-wide configuration path, under /etc/trac/ If your installation uses /usr/share/trac/conf/trac.ini, you have to manually move the file to /etc/trac/trac.ini to take effect, or otherwise your system-wide configuration will stop working. -- Jesus Climent Wed, 13 Dec 2006 23:25:32 +0200 trac (0.10-1) unstable; urgency=low This release requires that you handle the upgrade process for each project by hand. To do that, you should do two steps on each project: $: trac-admin /path/to/your/project upgrade $: trac-admin /path/to/your/project wiki upgrade -- Otavio Salvador Thu, 5 Oct 2006 13:52:10 -0300 debian/watch0000644000000000000000000000012012127606335010215 0ustar version=3 http://ftp.edgewall.com/pub/trac/Trac-([\d\.]*).tar.gz debian uupdate debian/trac-admin.10000644000000000000000000000127312127606335011277 0ustar .\" You can view this file with: .\" nroff -man [filename] .\" .TH trac-admin 1 .SH NAME trac-admin \- Trac administration tool .SH SYNOPSIS .TP \fBtrac-admin\fP \fI\fP [\fIcommand\fP [\fIsubcommand\fP] [\fIoption ...\fP]] .SH OVERVIEW Trac is a minimalistic web-based software project management and bug/issue tracking system. It provides an interface to the Subversion revision control systems, an integrated wiki, flexible issue tracking and convenient report facilities. Documentation for Trac, including detailed usage explanations and tutorials can be be found in the Trac wiki at http://trac.edgewall.com/. Run `trac-admin help' to access the built-in tool documentation. debian/clean0000644000000000000000000000015212127614660010176 0ustar trac/htdocs/js/messages/*.js trac/locale/*/LC_MESSAGES/messages*.mo trac/locale/*/LC_MESSAGES/tracini*.mo debian/tracd.10000644000000000000000000000144012127606335010351 0ustar .\" You can view this file with: .\" nroff -man [filename] .\" .TH tracd 1 .SH NAME tracd \- Stand alone Trac HTTP server .SH SYNOPSIS .TP \fBtracd\fP \fI[options]\fP <\fIprojenv\fP> [\fIprojenv\fP] ... .SH OVERVIEW \fBtracd\fP is a simple stand alone Trac HTTP server. It can be used as an alternative to using \fBtrac.cgi\fP with apache. Trac is a minimalistic web-based software project management and bug/issue tracking system. It provides an interface to the Subversion revision control systems, an integrated wiki, flexible issue tracking and convenient report facilities. Documentation for tracd, Trac in general, including detailed usage explanations and tutorials can be be found in the Trac wiki at http://trac.edgewall.com/. Run `tracd \-h' to access the built\-in tool documentation. debian/copyright0000644000000000000000000001042112171564320011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Trac Source: http://trac.edgewall.org/ Upstream-Contact: Edgewall Software Comment: upstream source ships with minified versions of several javascript libraries, all of which have distinct copyright holders and their own free licensing terms and are not shipped in the debian trac binary package. Please see those packages for copyright and licensing details: libjs-excanvas, libjs-jquery, libjs-jquery-ui, libjs-jquery-timepicker Files: * Copyright: 2003-2013 Edgewall Software , Daniel Lundin , Jonas Borgström , Alec Thomas , Christian Boos , Christopher Lenz , Jeff Weiss , Andres Salomon , Matthew Good , Emmanuel Blot , Brian Meeker, Oliver Rutherfurd, Noah Kantrowitz , Allan Saddi , Francois Harvey , Stephen Hansen, Herbert Valerio Riedel License: BSD Files: sample-plugins/workflow/MilestoneOperation.py Copyright: 2012 Franz Mayer License: BEER-WARE Files: contrib/sourceforge2trac.py Copyright: Mark Rowe , anatoly techtonik , Christian Boos License: BSD Files: contrib/bugzilla2trac.py Copyright: Dmitry Yusupov Bill Soudan Florent Guillaume Jeroen Ruigrok van der Werven Jeff Moreland License: BSD Files: debian/* Copyright: anatoly techtonik , Andres Salomon , Arthur de Jong , Daniel Kahn Gillmor , Giuseppe Iuculano , Jakub Wilk , Jesus Climent , Lars Wirzenius , Luis Matos , Otavio Salvador , Piotr Ożarowski , W. Martin Borgert License: BSD Files: debian/patches/50_sqlitetopg_script.patch Copyright: 2008 John Hampton License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BEER-WARE "THE BEER-WARE LICENSE" (Revision 42): wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Franz Mayer