Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
nihen committed Sep 5, 2011
0 parents commit 0635e9e
Show file tree
Hide file tree
Showing 17 changed files with 956 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
@@ -0,0 +1,27 @@
Plack-Handler-Nginx-*
.*
!.gitignore
!.shipit
!.dim.pl
*.o
*.obj
*.bs
*.def
Makefile*
!Makefile.PL
*blib
META.*
MYMETA.*
*.out
*.bak
*.old
*~
*.swp
ppport.h
nytprof*
cover_db*
*.gcda
*.gcno
*.gcov
*.stackdump
src/*.c
6 changes: 6 additions & 0 deletions .shipit
@@ -0,0 +1,6 @@
steps = FindVersion, ChangeAllVersions, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN

git.tagpattern = %v
git.push_to = origin

CheckChangeLog.files = Changes
5 changes: 5 additions & 0 deletions Changes
@@ -0,0 +1,5 @@
Revision history for Perl extension Plack::Handler::Nginx

NEXT <<SET RELEASE DATE HERE>>
- original version; created by dim
at Tue Sep 6 00:10:45 2011.
26 changes: 26 additions & 0 deletions MANIFEST
@@ -0,0 +1,26 @@
.shipit
Changes
inc/Module/Install.pm
inc/Module/Install/AuthorTests.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
inc/Module/Install/Repository.pm
inc/Module/Install/WriteAll.pm
inc/Module/Install/XSUtil.pm
lib/Plack/Handler/Nginx.pm
Makefile.PL
MANIFEST This list of files
MANIFEST.SKIP
META.yml
ppport.h
README
src/Plack-Handler-Nginx.xs
t/000_load.t
t/001_basic.t
xshelper.h
xt/perlcritic.t
xt/pod.t
xt/podcoverage.t
xt/podspell.t
70 changes: 70 additions & 0 deletions MANIFEST.SKIP
@@ -0,0 +1,70 @@

#!start included /home/chiba/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/ExtUtils/MANIFEST.SKIP
# Avoid version control files.
\bRCS\b
\bCVS\b
\bSCCS\b
,v$
\B\.svn\b
\B\.git\b
\B\.gitignore\b
\b_darcs\b
\B\.cvsignore$

# Avoid VMS specific MakeMaker generated files
\bDescrip.MMS$
\bDESCRIP.MMS$
\bdescrip.mms$

# Avoid Makemaker generated and utility files.
\bMANIFEST\.bak
\bMakefile$
\bblib/
\bMakeMaker-\d
\bpm_to_blib\.ts$
\bpm_to_blib$
\bblibdirs\.ts$ # 6.18 through 6.25 generated this

# Avoid Module::Build generated and utility files.
\bBuild$
\b_build/
\bBuild.bat$
\bBuild.COM$
\bBUILD.COM$
\bbuild.com$

# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
\.tmp$
\.#
\.rej$
\.swp$

# Avoid OS-specific files/dirs
# Mac OSX metadata
\B\.DS_Store
# Mac OSX SMB mount metadata files
\B\._

# Avoid Devel::Cover and Devel::CoverX::Covered files.
\bcover_db\b
\bcovered\b

# Avoid MYMETA files
^MYMETA\.
#!end included /home/chiba/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/ExtUtils/MANIFEST.SKIP


# skip author's files
\bauthor\b

\.bs$
\.o(?:|bj|ld|ut)$
nytprof
MYMETA\.yml$

src/.*\.c$
76 changes: 76 additions & 0 deletions Makefile.PL
@@ -0,0 +1,76 @@
#!perl
use strict;
use warnings;
BEGIN {
unshift @INC, 'inc';

# author requires, or bundled modules
my @devmods = qw(
inc::Module::Install 1.00
Module::Install::AuthorTests 0.002
Module::Install::Repository 0.06
Test::Requires 0.06
Module::Install::XSUtil 0.32
);
my @not_available;
while(my($mod, $ver) = splice @devmods, 0, 2) {
eval qq{use $mod $ver (); 1} or push @not_available, $mod;
}
if(@not_available) {
print qq{# The following modules are not available.\n};
print qq{# `perl $0 | cpanm` will install them:\n};
print $_, "\n" for @not_available;
exit 1;
}
}
use inc::Module::Install;


all_from 'lib/Plack/Handler/Nginx.pm';

use_xshelper;
cc_warnings;
cc_src_paths 'src';

my $nginx_src_path = $ARGV[0] || $ENV{NGINX_SRC_PATH} || '/tmp/nginx/';
$nginx_src_path =~ s{/$}{}g;
unless (
-d $nginx_src_path . '/src/http/' &&
-d $nginx_src_path . '/src/http/modules/' &&
-d $nginx_src_path . '/src/core/' &&
-d $nginx_src_path . '/src/event/' &&
-d $nginx_src_path . '/src/os/unix/' &&
-d $nginx_src_path . '/objs/'
) {
print "Usage: perl Makefile.PL /path/to/nginx_src_path/\n";
exit(-1);
}
cc_include_paths
$nginx_src_path . '/src/http/',
$nginx_src_path . '/src/http/modules/',
$nginx_src_path . '/src/core/',
$nginx_src_path . '/src/event/',
$nginx_src_path . '/src/os/unix/',
$nginx_src_path . '/objs/',
;

test_requires 'Test::More' => '0.88';
test_requires 'Test::Requires' => '0.06';

requires 'Plack';

auto_set_repository;

tests_recursive;
author_tests 'xt';


clean_files qw(
Plack-Handler-Nginx-*
*.stackdump
cover_db *.gcov *.gcda *.gcno
nytprof
*.out
);

WriteAll(check_nmake => 0);
39 changes: 39 additions & 0 deletions README
@@ -0,0 +1,39 @@
This is Perl module Plack::Handler::Nginx.

INSTALLATION

Type the following command:

$ curl -L http://cpanmin.us | perl - Plack::Handler::Nginx

Or install cpanm and then run the following command to install
Plack::Handler::Nginx:

$ cpanm Plack::Handler::Nginx

If you get an archive of this distribution, unpack it and build it
as per the usual:

$ tar xzf Plack-Handler-Nginx-$version.tar.gz
$ cd Plack-Handler-Nginx-$version
$ perl Makefile.PL
$ make && make test

Then install it:

$ make install

DOCUMENTATION

Plack::Handler::Nginx documentation is available as in POD. So you can do:

$ perldoc Plack::Handler::Nginx

to read the documentation online with your favorite pager.

LICENSE AND COPYRIGHT

Copyright (c) 2011, Masahiro Chiba. All rights reserved.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
20 changes: 20 additions & 0 deletions author/requires.cpanm
@@ -0,0 +1,20 @@
# for Plack-Handler-Nginx
# Makefile.PL
Module::Install
Module::Install::AuthorTests
Module::Install::Repository
Module::Install::XSUtil

# author's tests
Test::Pod
Test::Pod::Coverage
Test::Spelling
Test::Perl::Critic
Test::Synopsis
Test::LeakTrace
Test::Valgrind

# Release tools
ShipIt
ShipIt::Step::ChangeAllVersions
CPAN::Uploader

0 comments on commit 0635e9e

Please sign in to comment.