Meta

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

Meta/Db/db_import.pl
Meta/Db/db_maintain.pl
Meta/Db/db_put_file.pl
Meta/Db/db_sanity.pl
Meta/Demos/demo_bzip2.pl
Meta/Demos/demo_cddb.pl
Meta/Demos/demo_console.pl
Meta/Demos/demo_fam.pl
Meta/Demos/demo_filter.pl
Meta/Demos/demo_ftp.pl
Meta/Demos/demo_gpg.pl
Meta/Demos/demo_groff.pl
Meta/Demos/demo_gtk.pl
Meta/Demos/demo_info.pl
Meta/Demos/demo_iohandle.pl
Meta/Demos/demo_less.pl
Meta/Demos/demo_lwp.pl
Meta/Demos/demo_pgn.pl
Meta/Demos/demo_readline.pl
Meta/Demos/demo_scp.pl
Meta/Demos/demo_string.pl

Makefile.PL  view on Meta::CPAN

		'Meta/Db/db_import.pl',
		'Meta/Db/db_maintain.pl',
		'Meta/Db/db_put_file.pl',
		'Meta/Db/db_sanity.pl',
		'Meta/Demos/demo_bzip2.pl',
		'Meta/Demos/demo_cddb.pl',
		'Meta/Demos/demo_console.pl',
		'Meta/Demos/demo_fam.pl',
		'Meta/Demos/demo_filter.pl',
		'Meta/Demos/demo_ftp.pl',
		'Meta/Demos/demo_gpg.pl',
		'Meta/Demos/demo_groff.pl',
		'Meta/Demos/demo_gtk.pl',
		'Meta/Demos/demo_info.pl',
		'Meta/Demos/demo_iohandle.pl',
		'Meta/Demos/demo_less.pl',
		'Meta/Demos/demo_lwp.pl',
		'Meta/Demos/demo_pgn.pl',
		'Meta/Demos/demo_readline.pl',
		'Meta/Demos/demo_scp.pl',
		'Meta/Demos/demo_string.pl',

Meta/Baseline/base_aegi_backup.pl  view on Meta::CPAN

Meta::Utils::Output::verbose($verb,"started tarring\n");
my($tar)=Meta::Archive::Tar->new();
for(my($i)=0;$i<=$#$list;$i++) {
	my($curr)=$list->[$i];
	$tar->add_deve($curr,$curr);
}
Meta::Utils::Output::verbose($verb,"finished tarring\n");
$scod=$tar->write($dirf."/".$tarf);
if($enc) {
#	my($author)=Meta::Info::Author->new_modu($author_file);
#	my($enc_file)=$dirf."/".$tarf.".gpg";
#	my($gpg)=GnuPG->new();
#	Meta::Utils::Output::verbose($verb,"started encrypting\n");
#	$gpg->encrypt(
#		plaintext=>$dirf."/".$tarf,
#		output=>$enc_file,
#		recipient=>$author->get_default_email(),
#		armor=>$armor,
#		sign=>$sign,
#		passphrase=>$author->get_default_passphrase(),
#	);
#	Meta::Utils::Output::verbose($verb,"finished encrypting\n");
#	if($send) {
#		Meta::Utils::Output::verbose($verb,"started sending\n");
#		my($user)=$author->get_sourceforge_user();
#		my($host)=$author->get_sourceforge_ssh();
#		my($addr)=$user."@".$host.":".$remote_dir."/".$tarf.".gpg";
#		Meta::Utils::Output::verbose($verb,"addr is [".$addr."]\n");
#		my($scp)=Net::SCP->new($host,$user);
#		my($res)=$scp->scp($enc_file,$addr);
#		Meta::Utils::Output::verbose($verb,"res is [".$res."]\n");
#		if(!$res) {
#			throw Meta::Error::Simple("cannot put with error [".$scp->{errstr}."]");
#		}
#		Meta::Utils::Output::verbose($verb,"finished sending\n");
#	}
#	Meta::Utils::File::Remove::rm($enc_file);

Meta/Demos/demo_gpg.pl  view on Meta::CPAN

my($opts)=Meta::Utils::Opts::Opts->new();
$opts->set_standard();
$opts->set_free_allo(0);
$opts->analyze(\@ARGV);

my($file)="xmlx/author/author.xml";
my($module)=Meta::Development::Module->new();
$module->set_name($file);
my($author)=Meta::Info::Author->new_modu($module);

my($gpg)=Crypt::GPG->new();
$gpg->gpgbin('/usr/bin/gpg');
$gpg->armor(1);
$gpg->secretkey($author->get_keyid());
$gpg->passphrase($author->get_passphrase());

my($content);
Meta::Utils::File::File::load("/etc/passwd",\$content);
my($enc)=$gpg->encrypt($content,$author->get_email());
Meta::Utils::Output::print("enc is [".$enc."]\n");

Meta::Utils::System::exit_ok();

__END__

=head1 NAME

demo_gpg.pl - demo Crypt::GPG functionality.

=head1 COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer;
All rights reserved.

=head1 LICENSE

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

Meta/Demos/demo_gpg.pl  view on Meta::CPAN

but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

=head1 DETAILS

	MANIFEST: demo_gpg.pl
	PROJECT: meta
	VERSION: 0.01

=head1 SYNOPSIS

	gpg.pl [options]

=head1 DESCRIPTION

This script demos basic functionality of the Crypt::GPG module.

=head1 OPTIONS

=over 4

=item B<help> (type: bool, default: 0)



( run in 2.683 seconds using v1.01-cache-2.11-cpan-df04353d9ac )