1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add trac-privatetickets 1.0.1, modified ticket security for Trac.

PR:		ports/109348
Submitted by:	Li-Wen Hsu <lwhsu at lwhsu.org>
This commit is contained in:
Rong-En Fan 2007-02-21 12:52:43 +00:00
parent cae0dd9492
commit 32dd33e576
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185615
5 changed files with 56 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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%%