From: <de...@de...> - 2011-05-14 01:23:35
|
Author: DipuDeshmukh Date: 2011-05-13 20:23:19 -0500 (Fri, 13 May 2011) New Revision: 21231 Trac url: http://develop.twiki.org/trac/changeset/21231 Added: twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/ twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/Config.spec twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/DEPENDENCIES twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/MANIFEST twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/build.pl Log: Item6721: Add build.pl, MANIFEST, config.spec, move keyfile location configuration into LocalSite.cfg file Added: twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/Config.spec =================================================================== --- twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/Config.spec (rev 0) +++ twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/Config.spec 2011-05-14 01:23:19 UTC (rev 21231) @@ -0,0 +1,4 @@ +# ---+ Extensions +# ---++ TopicCryptPlugin +# Key file location information must be configured here, +$TWiki::cfg{Plugins}{TopicCryptPlugin}{PRIVKEY_FILE}='/var/lib/twiki/cryptkey.priv'; Added: twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/DEPENDENCIES =================================================================== --- twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/DEPENDENCIES (rev 0) +++ twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/DEPENDENCIES 2011-05-14 01:23:19 UTC (rev 21231) @@ -0,0 +1,5 @@ +MIME::Base64>3.13, cpan,Required. Available from the CPAN:Mime archive +Crypt::CBC,>=2.30, cpan,Required. Available from the CPAN:Crypt archive +Crypt::Rijndael_PP>=1.08, cpan,Required. Available from the CPAN:Crypt archive +Crypt::RC4,2.02, cpan,Required. Available from the CPAN:Crypt archive +Crypt::OpenSSL::RSA,>=0.25 cpan,Required. Available from the CPAN:Crypt archive Added: twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/MANIFEST =================================================================== --- twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/MANIFEST (rev 0) +++ twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/MANIFEST 2011-05-14 01:23:19 UTC (rev 21231) @@ -0,0 +1,4 @@ +data/TWiki/TopicCryptPlugin.txt 0644 +lib/TWiki/Plugins/TopicCryptPlugin/Config.spec 0644 +lib/TWiki/Plugins/TopicCryptPlugin.pm 0644 +pub/TWiki/TopicCryptPlugin/uparrow.gif 0644 Added: twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/build.pl =================================================================== --- twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/build.pl (rev 0) +++ twiki/trunk/TopicCryptPlugin/lib/TWiki/Plugins/TopicCryptPlugin/build.pl 2011-05-14 01:23:19 UTC (rev 21231) @@ -0,0 +1,54 @@ +#!/usr/bin/perl -w +# +# Example build class. Copy this file to the equivalent place in your +# plugin or contrib and edit. +# +# Read the comments at the top of lib/TWiki/Plugins/Build.pm for +# details of how the build process works, and what files you +# have to provide and where. +# +# Requires the environment variable TWIKI_LIBS (a colon-separated path +# list) to be set to point at the build system and any required dependencies. +# Usage: ./build.pl [-n] [-v] [target] +# where [target] is the optional build target (build, test, +# install, release, uninstall), test is the default.` +# Two command-line options are supported: +# -n Don't actually do anything, just print commands +# -v Be verbose +# + +# Standard preamble +BEGIN { + foreach my $pc (split(/:/, $ENV{TWIKI_LIBS})) { + unshift @INC, $pc; + } +} + +use TWiki::Contrib::Build; + +# Declare our build package +{ package TopicCryptPluginBuild; + + @TopicCryptPluginBuild::ISA = ( "TWiki::Contrib::Build" ); + + sub new { + my $class = shift; + return bless( $class->SUPER::new( "TopicCryptPlugin", "Build" ), $class ); + } + + # Example: Override the build target + sub target_build { + my $this = shift; + + $this->SUPER::target_build(); + + # Do other build stuff here + } +} + +# Create the build object +$build = new TopicCryptPluginBuild(); + +# Build the target on the command line, or the default target +$build->build($build->{target}); + |