--- trac-git-0.0.20080122.orig/debian/copyright +++ trac-git-0.0.20080122/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Jonny Lamb on +Mon, 19 May 2008 13:55:33 +0100. + +The upstream tarball was created from a Git repository clone of: + + http://nanosleep.org/git/trac-git-plugin + +Upstream Author: + + Hans Petter Jansson + +Copyright: + + Copyright (C) 2006 Herbert Valerio Riedel + +License: + + You are free to distribute this software under the terms of + the GNU General Public License either version 2 of the License, + or (at your option) any later version. + + On Debian systems, the complete text of the GNU General Public + License, version 2, can be found in /usr/share/common-licenses/GPL-2 + +The Debian packaging is (C) 2008, Jonny Lamb and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- trac-git-0.0.20080122.orig/debian/compat +++ trac-git-0.0.20080122/debian/compat @@ -0,0 +1 @@ +5 --- trac-git-0.0.20080122.orig/debian/rules +++ trac-git-0.0.20080122/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +PYVER=$(shell python -c 'import sys; print sys.version[:3]') + +include /usr/share/quilt/quilt.make + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + rm -rf dist build + -find . -name *\.py[co] -exec rm {} \; + dh_clean + +build: build-stamp patch + +build-stamp: + dh_testdir + cd 0.10 && python setup.py build && cd .. + touch $@ + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cd 0.10 && python setup.py install \ + --root=$(CURDIR)/debian/trac-git \ + --single-version-externally-managed && cd .. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_pycentral + dh_compress -X.py + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install configure --- trac-git-0.0.20080122.orig/debian/control +++ trac-git-0.0.20080122/debian/control @@ -0,0 +1,20 @@ +Source: trac-git +Maintainer: Jonny Lamb +Section: python +Priority: optional +Build-Depends: debhelper (>= 5.0), quilt (>= 0.40) +Build-Depends-Indep: python, python-all-dev, python-central (>= 0.5), python-setuptools +Standards-Version: 3.7.3 +XS-Python-Version: all +Homepage: http://nanosleep.org/proj/trac-git-plugin/ +Vcs-Git: git://git.jonnylamb.com/git/packaging/trac-git.git +Vcs-Browser: http://git.jonnylamb.com/?p=packaging/trac-git.git;a=summary + +Package: trac-git +Architecture: all +Depends: ${python:Depends}, trac (>= 0.10), git-core +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Description: Git version control backend for Trac + A plugin that provides support for the Git source code management + tool for Edgewall Software's Trac. --- trac-git-0.0.20080122.orig/debian/postinst +++ trac-git-0.0.20080122/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +chown www-data /var/cache/trac-git > /dev/null 2>&1 || true +chmod 755 /var/cache/trac-git > /dev/null 2>&1 || true + +#DEBHELPER# + +exit 0 --- trac-git-0.0.20080122.orig/debian/changelog +++ trac-git-0.0.20080122/debian/changelog @@ -0,0 +1,5 @@ +trac-git (0.0.20080122-1) unstable; urgency=low + + * Initial release. (Closes: #482334) + + -- Jonny Lamb Mon, 19 May 2008 14:33:23 +0100 --- trac-git-0.0.20080122.orig/debian/README.Debian +++ trac-git-0.0.20080122/debian/README.Debian @@ -0,0 +1,53 @@ +trac-git for Debian +------------------- + +(This document "borrowed" and altered from the trac-bzr package.) + +CONTENTS +1. Enabling trac-git globally +2. Enabling trac-git per project +3. Using a Git repository in a Trac project. + +-- + +Enabling trac-git globally + + To enable, create or edit /etc/trac.ini and add: + + [components] + gitplugin.* = enabled + + You must restart tracd for changes to take effect. + +-- + +Enabling trac-git per project + + Edit the /conf/trac.ini file: + + 2. Add the following: + + [components] + gitplugin.* = enabled + + You must restart tracd for changes to take effect. + +-- + +Using a Git repository in a Trac project. + + Edit the /conf/trac.ini file: + + 1. Ensure that the repository_type is set to "git" (without the + quotes). This is also asked when creating a Trac environment + with the 'trac-admin initenv' command. + + 2. Set repository_dir to the directory of the Git repository to + be used. Note: the directory should point to the .git part + of a Git repository, so if the repository is _not_ bare, it + should have a "/.git" suffix. + + 3. Ensure the /var/cache/trac-git/ directory is writeable by + Trac. + + -- Jonny Lamb Mon, 19 May 2008 14:17:39 +0100 --- trac-git-0.0.20080122.orig/debian/patches/disable-installing-docs.diff +++ trac-git-0.0.20080122/debian/patches/disable-installing-docs.diff @@ -0,0 +1,16 @@ +Documentation is installed by dh_installdocs, so this is unnecessary. + +This prevents COPYING and README being installed into /usr. + +diff -Nruad -Nruad trac-git-0.0.20080122.orig/0.10/setup.py trac-git-0.0.20080122/0.10/setup.py +--- trac-git-0.0.20080122.orig/0.10/setup.py 2008-05-19 14:07:05.000000000 +0100 ++++ trac-git-0.0.20080122/0.10/setup.py 2008-05-19 14:07:24.000000000 +0100 +@@ -18,6 +18,5 @@ + entry_points = {'trac.plugins': + ['git = gitplugin.git_fs'], + }, +- data_files=['COPYING','README'], + install_requires=[], + ) + + --- trac-git-0.0.20080122.orig/debian/patches/series +++ trac-git-0.0.20080122/debian/patches/series @@ -0,0 +1 @@ +disable-installing-docs.diff --- trac-git-0.0.20080122.orig/debian/dirs +++ trac-git-0.0.20080122/debian/dirs @@ -0,0 +1 @@ +/var/cache/trac-git --- trac-git-0.0.20080122.orig/debian/docs +++ trac-git-0.0.20080122/debian/docs @@ -0,0 +1 @@ +0.10/README