Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2007 17:25:01 -0400 (EDT)
From:      Greg Larkin <glarkin@sourcehosting.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clsung@FreeBSD.org
Subject:   ports/111243: [PATCH REQUEST] www/trac: Port updated to install contrib scripts
Message-ID:  <200704042125.l34LP1CR067021@ports.entropy.prv>
Resent-Message-ID: <200704042130.l34LU3jU042741@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111243
>Category:       ports
>Synopsis:       [PATCH REQUEST] www/trac: Port updated to install contrib scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 04 21:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Greg Larkin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
SourceHosting.net, LLC
>Environment:
System: FreeBSD ports.entropy.prv 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC
>Description:
Trac comes with a contrib directory with miscellaneous scripts, including
hooks to be installed into a Subversion repository.  I'm requesting this
change so the scripts will be installed along with the port.

Port maintainer (clsung@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- trac-0.10.3.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/trac.orig/Makefile /usr/ports/www/trac/Makefile
--- /usr/ports/www/trac.orig/Makefile	Wed Apr  4 14:38:52 2007
+++ /usr/ports/www/trac/Makefile	Wed Apr  4 17:18:16 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	trac
 PORTVERSION=	0.10.3.1
+PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	http://ftp.edgewall.com/pub/trac/ \
 		ftp://ftp.edgewall.com/pub/trac/
@@ -36,10 +37,13 @@
 		;s,@dirrm share/man(/.*)?$$,,g \
 		;s,${PYTHON_SITELIBDIR:S,^${PYTHONBASE}/,,},%%PYTHON_SITELIBDIR%%,g \
 		;s,share/trac,%%DATADIR%%,g \
+		;s,share/examples/trac,%%EXAMPLESDIR%%,g \
 		;s,@dirrm (%%PYTHON_SITELIBDIR%%|${PYTHON_LIBDIR:S,${PYTHONBASE}/,,})$$,,g \
 		' | ${TR} -s '\n') > temp-pkg-plist
 
 post-install:
+	@${MKDIR} ${EXAMPLESDIR}
+	@${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
 	@${ECHO_CMD}
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO_CMD}
diff -ruN --exclude=CVS /usr/ports/www/trac.orig/pkg-plist /usr/ports/www/trac/pkg-plist
--- /usr/ports/www/trac.orig/pkg-plist	Wed Apr  4 14:38:52 2007
+++ /usr/ports/www/trac/pkg-plist	Wed Apr  4 17:16:53 2007
@@ -297,6 +297,14 @@
 %%PYTHON_SITELIBDIR%%/trac/wiki/web_ui.py
 %%PYTHON_SITELIBDIR%%/trac/wiki/web_ui.pyc
 %%PYTHON_SITELIBDIR%%/trac/wiki/web_ui.pyo
+%%EXAMPLESDIR%%/README
+%%EXAMPLESDIR%%/bugzilla2trac.py
+%%EXAMPLESDIR%%/emailfilter.py
+%%EXAMPLESDIR%%/htdigest.py
+%%EXAMPLESDIR%%/migrateticketmodel.py
+%%EXAMPLESDIR%%/sourceforge2trac.py
+%%EXAMPLESDIR%%/trac-post-commit-hook
+%%EXAMPLESDIR%%/trac-pre-commit-hook
 %%DATADIR%%/cgi-bin/trac.cgi
 %%DATADIR%%/cgi-bin/trac.fcgi
 %%DATADIR%%/htdocs/README
@@ -433,6 +441,7 @@
 @dirrm %%DATADIR%%/conf
 @dirrm %%DATADIR%%/cgi-bin
 @dirrm %%DATADIR%%
+@dirrm %%EXAMPLESDIR%%
 @dirrm %%PYTHON_SITELIBDIR%%/trac/wiki
 @dirrm %%PYTHON_SITELIBDIR%%/trac/web
 @dirrm %%PYTHON_SITELIBDIR%%/trac/versioncontrol/web_ui
--- trac-0.10.3.1_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704042125.l34LP1CR067021>