aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/trac-downloads/Makefile5
-rw-r--r--www/trac-downloads/distinfo4
-rw-r--r--www/trac-downloads/files/patch-tracdownloads_consoleadmin.py15
3 files changed, 20 insertions, 4 deletions
diff --git a/www/trac-downloads/Makefile b/www/trac-downloads/Makefile
index 25c8f4e72030..a3dd1e7a30d5 100644
--- a/www/trac-downloads/Makefile
+++ b/www/trac-downloads/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;:L}
-PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION}
+PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION}.${SVN_REV}
CATEGORIES= www devel python
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= brooks
@@ -22,6 +22,7 @@ BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
TRAC_VERSION= 0.12
PLUGIN_VERSION= 0.3
+SVN_REV= 10047
USE_PYTHON= yes
NO_BUILD= yes
@@ -34,7 +35,7 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PLUGIN_VERSION}-py${
.if defined(BOOTSTRAP)
do-fetch:
${MKDIR} ${WRKDIR}
- svn export http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC}
+ svn export -r ${SVN_REV} http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC}
${MKDIR} ${_DISTDIR}
cd ${WRKDIR} && \
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
diff --git a/www/trac-downloads/distinfo b/www/trac-downloads/distinfo
index 0265908ddef8..93a6b4fb4166 100644
--- a/www/trac-downloads/distinfo
+++ b/www/trac-downloads/distinfo
@@ -1,2 +1,2 @@
-SHA256 (trac/downloadsplugin-0.12.0.3.tar.gz) = 31a3dc9a4198aaf4341d65159a5e81dd3b3cc54c6263853ad05786298497390d
-SIZE (trac/downloadsplugin-0.12.0.3.tar.gz) = 18676
+SHA256 (trac/downloadsplugin-0.12.0.3.10047.tar.gz) = 966b88e4f0b2cbd4da72e5bdec8c592670d2574771460be7780edb18c03e4e7a
+SIZE (trac/downloadsplugin-0.12.0.3.10047.tar.gz) = 18756
diff --git a/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py b/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py
new file mode 100644
index 000000000000..fd163efb432d
--- /dev/null
+++ b/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- tracdownloads/consoleadmin.py.orig
++++ tracdownloads/consoleadmin.py
+@@ -122,7 +122,8 @@
+ self.log.debug(download)
+
+ # Upload file to DB and file storage.
+- api.store_download(context, download, file)
++ api._add_download(context, download, file)
++
+
+ # Close input file and commit changes in DB.
+ file.close()