1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

A kwiki plugin to force users to provide a KwikiUserName

I've added a small patch -- submitting to the maintainer now...
This commit is contained in:
Brian Somers 2005-06-06 21:22:25 +00:00
parent 7c619d015f
commit dcdf9f1eef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136943
7 changed files with 76 additions and 0 deletions

View File

@ -533,6 +533,7 @@
SUBDIR += p5-Kwiki-Archive-SVK
SUBDIR += p5-Kwiki-Atom
SUBDIR += p5-Kwiki-Diff
SUBDIR += p5-Kwiki-Edit-RequireUserName
SUBDIR += p5-Kwiki-GDGraphGenerator
SUBDIR += p5-Kwiki-Icons-Gnome
SUBDIR += p5-Kwiki-Infobox

View File

@ -0,0 +1,36 @@
# New ports collection makefile for: p5-Kwiki-Edit-RequireUserName
# Date created: Jun 6 2005
# Whom: brian
#
# $FreeBSD$
#
PORTNAME= Kwiki-Edit-RequireUserName
PORTVERSION= 0.02
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Kwiki
PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
COMMENT= Require a KwikiUserName for edits
BUILD_DEPENDS= ${SITE_PERL}/Kwiki.pm:${PORTSDIR}/www/p5-Kwiki \
${SITE_PERL}/Kwiki/UserName.pm:${PORTSDIR}/www/p5-Kwiki-UserName \
${SITE_PERL}/Kwiki/UserPreferences.pm:${PORTSDIR}/www/p5-Kwiki-UserPreferences
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Kwiki::Edit::RequireUserName.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
IGNORE= This port requires perl 5.6.x or later. Install lang/perl5 then try again
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (Kwiki-Edit-RequireUserName-0.02.tar.gz) = 23b7d1839371904d32cca91c2acbcd79
SIZE (Kwiki-Edit-RequireUserName-0.02.tar.gz) = 3264

View File

@ -0,0 +1,11 @@
--- lib/Kwiki/Edit/RequireUserName.pm.orig Mon Jun 6 12:28:29 2005
+++ lib/Kwiki/Edit/RequireUserName.pm Mon Jun 6 12:34:42 2005
@@ -30,7 +30,7 @@
sub have_UserName {
my $current_name = $self->hub->users->current->name ||
- die "Can't determine current UserName";
+ return undef;
my $anonymous_name = $self->config->user_default_name ||
die "Can't determine local name of anonymous user"; # set in
# config/user.yaml

View File

@ -0,0 +1,7 @@
Kwiki::Edit::RequireUserName -
Updates Kwiki::Edit to require a user name to edit
WWW: http://search.cpan.org/dist/Kwiki-Edit-RequireUserName/
Author: James Peregrino <jperegrino at post dot harvard dot edu>

View File

@ -0,0 +1,13 @@
/* ================================================================= */
Note:
Kwiki-Edit-RequireUserName plugin installed! Now you should add
to your kwiki from your kwiki installation directory:
$ cd cgi-bin/my-kwiki
$ kwiki -add Kwiki::Edit::UserName
$ kwiki -add Kwiki::Edit::UserPreferences
$ kwiki -add Kwiki::Edit::RequireUserName
(Always) perldoc Kwiki::Edit::RequireUserName for details.
/* ================================================================= */

View File

@ -0,0 +1,6 @@
%%SITE_PERL%%/Kwiki/Edit/RequireUserName.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Kwiki/Edit/RequireUserName/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Kwiki/Edit/RequireUserName
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Kwiki/Edit 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Kwiki/Edit 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Kwiki 2>/dev/null || true