Commit aad6c1c7 authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Packaging updates

parent 2785e03d
Revision history for RT-Extension-LDAPImport-MuliEmail
0.02 - 2014-01-27
Initial release
Changes
inc/Module/Install.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
......
......@@ -23,4 +23,4 @@ requires:
RT::Extension::MergeUsers: 0
resources:
license: http://opensource.org/licenses/gpl-license.php
version: 0.01
version: 0.02
......@@ -5,7 +5,7 @@ all_from 'lib/RT/Extension/LDAPImport/MultiEmail.pm';
readme_from 'lib/RT/Extension/LDAPImport/MultiEmail.pm';
license 'gplv2';
requires_rt("4.0.0"); # XXX should become 4.2.0
requires_rt("4.0.0");
requires "RT::Extension::LDAPImport";
requires "RT::Extension::MergeUsers";
......
......@@ -8,7 +8,7 @@ no warnings 'once';
use Module::Install::Base;
use base 'Module::Install::Base';
our $VERSION = '0.30';
our $VERSION = '0.32';
use FindBin;
use File::Glob ();
......@@ -136,6 +136,7 @@ install ::
$has_etc{acl}++;
}
if ( -e 'etc/initialdata' ) { $has_etc{initialdata}++; }
if ( -d 'etc/upgrade/' ) { $has_etc{upgrade}++; }
$self->postamble("$postamble\n");
unless ( $subdirs{'lib'} ) {
......@@ -164,6 +165,12 @@ install ::
.
$self->postamble("initdb ::\n$initdb\n");
$self->postamble("initialize-database ::\n$initdb\n");
if ($has_etc{upgrade}) {
print "To upgrade from a previous version of this extension, use 'make upgrade-database'\n";
my $upgradedb = qq|\t\$(NOECHO) \$(PERL) -Ilib -I"$local_lib_path" -I"$lib_path" -Minc::Module::Install -e"RTxInitDB(qw(upgrade \$(NAME) \$(VERSION)))"\n|;
$self->postamble("upgrade-database ::\n$upgradedb\n");
$self->postamble("upgradedb ::\n$upgradedb\n");
}
}
}
......@@ -209,4 +216,4 @@ sub requires_rt {
__END__
#line 329
#line 336
......@@ -7,7 +7,7 @@ use warnings;
use base qw(Module::Install::Base);
use vars qw($VERSION);
$VERSION = '0.20';
$VERSION = '0.22';
sub readme_from {
my $self = shift;
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package RT::Extension::LDAPImport::MultiEmail;
our $VERSION = '0.01';
our $VERSION = '0.02';
{
no warnings 'redefine';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment