diff options
author | brian <brian@FreeBSD.org> | 2005-06-07 05:22:25 +0800 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2005-06-07 05:22:25 +0800 |
commit | 79d730cd55b896f934b3dd729463eeba93282c80 (patch) | |
tree | ea03ffd5161e228c2e9e9b1609114158ea47959a /www/p5-Kwiki-Edit-RequireUserName | |
parent | 40d95872e9a95feae09a7ba843d3c8dcb0dd1c1e (diff) | |
download | freebsd-ports-gnome-79d730cd55b896f934b3dd729463eeba93282c80.tar.gz freebsd-ports-gnome-79d730cd55b896f934b3dd729463eeba93282c80.tar.zst freebsd-ports-gnome-79d730cd55b896f934b3dd729463eeba93282c80.zip |
A kwiki plugin to force users to provide a KwikiUserName
I've added a small patch -- submitting to the maintainer now...
Diffstat (limited to 'www/p5-Kwiki-Edit-RequireUserName')
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/Makefile | 36 | ||||
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/distinfo | 2 | ||||
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/files/patch-aa | 11 | ||||
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/pkg-descr | 7 | ||||
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/pkg-message | 13 | ||||
-rw-r--r-- | www/p5-Kwiki-Edit-RequireUserName/pkg-plist | 6 |
6 files changed, 75 insertions, 0 deletions
diff --git a/www/p5-Kwiki-Edit-RequireUserName/Makefile b/www/p5-Kwiki-Edit-RequireUserName/Makefile new file mode 100644 index 000000000000..42404505cb94 --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/Makefile @@ -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> diff --git a/www/p5-Kwiki-Edit-RequireUserName/distinfo b/www/p5-Kwiki-Edit-RequireUserName/distinfo new file mode 100644 index 000000000000..bdbb7169fa95 --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/distinfo @@ -0,0 +1,2 @@ +MD5 (Kwiki-Edit-RequireUserName-0.02.tar.gz) = 23b7d1839371904d32cca91c2acbcd79 +SIZE (Kwiki-Edit-RequireUserName-0.02.tar.gz) = 3264 diff --git a/www/p5-Kwiki-Edit-RequireUserName/files/patch-aa b/www/p5-Kwiki-Edit-RequireUserName/files/patch-aa new file mode 100644 index 000000000000..b4f3617a7f2a --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/files/patch-aa @@ -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 diff --git a/www/p5-Kwiki-Edit-RequireUserName/pkg-descr b/www/p5-Kwiki-Edit-RequireUserName/pkg-descr new file mode 100644 index 000000000000..0dd69b509095 --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/pkg-descr @@ -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> diff --git a/www/p5-Kwiki-Edit-RequireUserName/pkg-message b/www/p5-Kwiki-Edit-RequireUserName/pkg-message new file mode 100644 index 000000000000..2d26397dc59d --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/pkg-message @@ -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. + +/* ================================================================= */ diff --git a/www/p5-Kwiki-Edit-RequireUserName/pkg-plist b/www/p5-Kwiki-Edit-RequireUserName/pkg-plist new file mode 100644 index 000000000000..2007990b8455 --- /dev/null +++ b/www/p5-Kwiki-Edit-RequireUserName/pkg-plist @@ -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 |