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 +# +# $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 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%%