[Bps-public-commit] rt-condition-ownershipchanges branch, master, updated. f0ef27771d8dd710ce952752fa39d655b24b85f5

Kevin Falcone falcone at bestpractical.com
Wed Aug 24 15:30:31 EDT 2011


The branch, master has been updated
       via  f0ef27771d8dd710ce952752fa39d655b24b85f5 (commit)
       via  6999ab52b7d5a19623b0d559473616808b47b634 (commit)
      from  5a0c9ad965b14ff7c899756828a40468898e6450 (commit)

Summary of changes:
 .gitignore                           |    2 +
 MANIFEST.SKIP                        |   96 ++++++++++++++++++++++++++++++++++
 Makefile.PL                          |    2 +
 inc/Module/Install/AutoManifest.pm   |   45 ++++++++++++++++
 inc/Module/Install/ManifestSkip.pm   |   48 +++++++++++++++++
 lib/RT/Condition/OwnershipChanges.pm |    5 ++
 6 files changed, 198 insertions(+), 0 deletions(-)
 create mode 100644 MANIFEST.SKIP
 create mode 100644 inc/Module/Install/AutoManifest.pm
 create mode 100644 inc/Module/Install/ManifestSkip.pm

- Log -----------------------------------------------------------------
commit 6999ab52b7d5a19623b0d559473616808b47b634
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Aug 24 15:27:21 2011 -0400

    add initdb step

diff --git a/lib/RT/Condition/OwnershipChanges.pm b/lib/RT/Condition/OwnershipChanges.pm
index 029f6f5..8eebc59 100644
--- a/lib/RT/Condition/OwnershipChanges.pm
+++ b/lib/RT/Condition/OwnershipChanges.pm
@@ -20,6 +20,11 @@ RT-Condition-OwnershipChanges - Checks for ownership changes
 
 May need root permissions
 
+=item make initdb
+
+Only do this during the intial install.  Running it twice will result
+in duplicate Scrip Conditions.
+
 =item Edit your /opt/rt4/etc/RT_SiteConfig.pm
 
 Add this line:

commit f0ef27771d8dd710ce952752fa39d655b24b85f5
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Aug 24 15:30:01 2011 -0400

    generate the manifest

diff --git a/.gitignore b/.gitignore
index bf8a381..ea3ee45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,5 @@ pod2htm*.tmp
 README
 *.bak
 *.swp
+/MYMETA.*
+/MANIFEST
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
new file mode 100644
index 0000000..4011cb8
--- /dev/null
+++ b/MANIFEST.SKIP
@@ -0,0 +1,96 @@
+
+# Begin standard Module::Manifest::Skip list:
+
+# ExtUtils::MakeMaker
+^blib/
+^blibdirs$
+^blibdirs\.ts$
+^bpm_to_blib\.ts$
+^Makefile$
+^Makefile\.old$
+^MakeMaker-\d
+^MANIFEST\.bak$
+^MANIFEST\.SKIP$
+^MYMETA\.
+^pm_to_blib$
+^pod2htm.*
+
+# Module::Build
+^Build$
+^_build/
+^Build.bat$
+^Build.COM$
+^BUILD.COM$
+^build.com$
+
+# Revision Control
+\bCVS\b
+\b.cvsignore\b
+\b_darcs\b
+\B\.git\b
+\B\.gitignore\b
+\B\.gitmodules\b
+\B\.hg\b
+\B\.hgignore\b
+\B\.hgtags\b
+\bRCS\b
+\bSCCS\b
+\B\.svn\b
+,v$
+,B$
+,D$
+\baegis.log$
+
+# Author Extras
+^inc/.*\.pod$
+^pkg/
+^xt/
+^dist.ini$
+
+# Editors
+~$
+\#$
+\b\.#
+\.kpf$
+\.sw[pmno]$
+^\.vimrc$
+
+# OS X
+^\.DS_Store$
+^\.Trash/
+\B\._
+
+# VMS
+\bDescrip.MMS$
+\bDESCRIP.MMS$
+\bdescrip.mms$
+
+# Development
+^benchmarks/
+^core$
+^cover_db\b
+^covered\b
+^debian/
+^devel\.
+^.devel-local$
+^out$
+^tmon.out$
+
+# Author Notes
+^notes
+^todo
+^ToDo$
+
+# Common Junk Files
+\.bak$
+\.diff$
+^foo\b.*
+\.old$
+\.orig$
+\.patch$
+\.rej$
+\.tdy$
+\.tmp$
+^\w$
+\.ttc$
+\.pmc$
diff --git a/Makefile.PL b/Makefile.PL
index b4bd1c6..a9d1857 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -7,4 +7,6 @@ readme_from 'lib/RT/Condition/OwnershipChanges.pm';
 license  'gplv2';
 
 sign;
+manifest_skip;
+auto_manifest;
 WriteAll;
diff --git a/inc/Module/Install/AutoManifest.pm b/inc/Module/Install/AutoManifest.pm
new file mode 100644
index 0000000..2fa78ed
--- /dev/null
+++ b/inc/Module/Install/AutoManifest.pm
@@ -0,0 +1,45 @@
+#line 1
+use strict;
+use warnings;
+
+package Module::Install::AutoManifest;
+
+use Module::Install::Base;
+
+BEGIN {
+  our $VERSION = '0.003';
+  our $ISCORE  = 1;
+  our @ISA     = qw(Module::Install::Base);
+}
+
+sub auto_manifest {
+  my ($self) = @_;
+
+  return unless $Module::Install::AUTHOR;
+
+  die "auto_manifest requested, but no MANIFEST.SKIP exists\n"
+    unless -e "MANIFEST.SKIP";
+
+  if (-e "MANIFEST") {
+    unlink('MANIFEST') or die "Can't remove MANIFEST: $!";
+  }
+
+  $self->postamble(<<"END");
+create_distdir: manifest_clean manifest
+
+distclean :: manifest_clean
+
+manifest_clean:
+\t\$(RM_F) MANIFEST
+END
+
+}
+
+1;
+__END__
+
+#line 48
+
+#line 131
+
+1; # End of Module::Install::AutoManifest
diff --git a/inc/Module/Install/ManifestSkip.pm b/inc/Module/Install/ManifestSkip.pm
new file mode 100644
index 0000000..6892781
--- /dev/null
+++ b/inc/Module/Install/ManifestSkip.pm
@@ -0,0 +1,48 @@
+#line 1
+##
+# name:      Module::Install::ManifestSkip
+# abstract:  Generate a MANIFEST.SKIP file
+# author:    Ingy döt Net <ingy at cpan.org>
+# license:   perl
+# copyright: 2010, 2011
+# see:
+# - Module::Manifest::Skip
+
+package Module::Install::ManifestSkip;
+use 5.008003;
+use strict;
+use warnings;
+
+use base 'Module::Install::Base';
+
+my $requires = "
+use Module::Manifest::Skip 0.10 ();
+";
+
+our $VERSION = '0.19';
+our $AUTHOR_ONLY = 1;
+
+my $skip_file = "MANIFEST.SKIP";
+
+sub manifest_skip {
+    my $self = shift;
+    return unless $self->is_admin;
+
+    eval $requires; die $@ if $@;
+
+    print "Writing $skip_file\n";
+
+    open OUT, '>', $skip_file
+        or die "Can't open $skip_file for output: $!";;
+
+    print OUT Module::Manifest::Skip->new->text;
+
+    close OUT;
+
+    $self->clean_files('MANIFEST');
+    $self->clean_files($skip_file)
+        if grep /^clean$/, @_;
+}
+
+1;
+

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list