aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-02-21 20:52:43 +0800
committerrafan <rafan@FreeBSD.org>2007-02-21 20:52:43 +0800
commit1a1c66f7b99e8288cb4d0e377812727f07ddfdd1 (patch)
tree1b14ab2fb6450e4c227e55609b49e7139a2af6b6 /www
parent20e93c6c8782fa27463b96565d8b2195752e7262 (diff)
downloadfreebsd-ports-gnome-1a1c66f7b99e8288cb4d0e377812727f07ddfdd1.tar.gz
freebsd-ports-gnome-1a1c66f7b99e8288cb4d0e377812727f07ddfdd1.tar.zst
freebsd-ports-gnome-1a1c66f7b99e8288cb4d0e377812727f07ddfdd1.zip
Add trac-privatetickets 1.0.1, modified ticket security for Trac.
PR: ports/109348 Submitted by: Li-Wen Hsu <lwhsu at lwhsu.org>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/trac-privatetickets/Makefile37
-rw-r--r--www/trac-privatetickets/distinfo3
-rw-r--r--www/trac-privatetickets/pkg-descr12
-rw-r--r--www/trac-privatetickets/pkg-plist3
5 files changed, 56 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 278eed8b27dc..df3126348776 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1094,6 +1094,7 @@
SUBDIR += trac-gantt
SUBDIR += trac-nav
SUBDIR += trac-pagetopdf
+ SUBDIR += trac-privatetickets
SUBDIR += trac-tags
SUBDIR += trac-webadmin
SUBDIR += trac-wikinotification
diff --git a/www/trac-privatetickets/Makefile b/www/trac-privatetickets/Makefile
new file mode 100644
index 000000000000..c72305268a8c
--- /dev/null
+++ b/www/trac-privatetickets/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: trac-privatetickets
+# Date created: Feb. 20, 2007
+# Whom: Li-Wen Hsu <lwhsu@lwhsu.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= privatetickets
+PORTVERSION= 1.0.1
+CATEGORIES= www devel python
+MASTER_SITES= http://cheeseshop.python.org/packages/source/T/TracPrivateTickets/
+PKGNAMEPREFIX= trac-
+DISTNAME= TracPrivateTickets-${PORTVERSION}
+
+MAINTAINER= lwhsu@lwhsu.org
+COMMENT= Modified ticket security for Trac
+
+BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
+ tracd:${PORTSDIR}/www/trac
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
+
+PYDISTUTILS_BUILD_TARGET= bdist_egg
+PYDISTUTILS_INSTALL_TARGET= easy_install
+PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${TRACPRIVATETICKETS_EGG}
+
+TRACPRIVATETICKETS_EGG= TracPrivateTickets-${PORTVERSION}-py${PYTHON_VER}.egg
+
+PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+ TRACPRIVATETICKETS_EGG=${TRACPRIVATETICKETS_EGG} \
+ TRACPRIVATETICKETS_EGG_VER="TracPrivateTickets==${PORTVERSION}"
+
+.include <bsd.port.mk>
diff --git a/www/trac-privatetickets/distinfo b/www/trac-privatetickets/distinfo
new file mode 100644
index 000000000000..531b15ff9561
--- /dev/null
+++ b/www/trac-privatetickets/distinfo
@@ -0,0 +1,3 @@
+MD5 (TracPrivateTickets-1.0.1.tar.gz) = ac8bc58b5c6eb5ef8deda0ddfeb70ac7
+SHA256 (TracPrivateTickets-1.0.1.tar.gz) = d406f879f1364c428e3d730c4514fca057979a7f922249aef0cb3e581d3846c6
+SIZE (TracPrivateTickets-1.0.1.tar.gz) = 3337
diff --git a/www/trac-privatetickets/pkg-descr b/www/trac-privatetickets/pkg-descr
new file mode 100644
index 000000000000..cb93cd92cf43
--- /dev/null
+++ b/www/trac-privatetickets/pkg-descr
@@ -0,0 +1,12 @@
+Allow users to only see tickets they are associated with.
+
+There are three new permissions for this plugin: TICKET_VIEW_REPORTER,
+TICKET_VIEW_CC, and TICKET_VIEW_OWNER. TICKET_VIEW_SELF is an alias
+for all three of these.
+
+With each permission, users will only be able to see tickets where they are
+the person mentioned in the permission. So if a user has TICKET_VIEW_REPORTER,
+they can only see tickets they reported. For TICKET_VIEW_CC, they just have to
+be included in the CC list.
+
+WWW: http://trac-hacks.org/wiki/PrivateTicketsPlugin
diff --git a/www/trac-privatetickets/pkg-plist b/www/trac-privatetickets/pkg-plist
new file mode 100644
index 000000000000..21b9d1ca78e8
--- /dev/null
+++ b/www/trac-privatetickets/pkg-plist
@@ -0,0 +1,3 @@
+@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%TRACPRIVATETICKETS_EGG_VER%%
+%%PYTHON_SITELIBDIR%%/%%TRACPRIVATETICKETS_EGG%%
+@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%TRACPRIVATETICKETS_EGG_VER%%