forked from andk/pause
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
134 lines (123 loc) · 3.29 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/usr/bin/perl
use strict;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'PAUSE',
VERSION_FROM => 'lib/PAUSE.pm',
ABSTRACT_FROM => 'lib/PAUSE.pod',
AUTHOR => 'Andreas Koenig <[email protected]>',
LICENSE => 'perl',
PREREQ_PM => { map +($_ => 0), qw(
Apache::Session::Counted
BSD::Resource
CPAN::Checksums
CPAN::DistnameInfo
CPAN::Indexer::Mirror
Class::Singleton
Compress::Zlib
Crypt::Eksblowfish::Bcrypt
Cwd
DB_File
DBD::mysql
DBD::SQLite
DBI
DBIx::RunSQL
Devel::Peek
Dumpvalue
Email::Address
Email::MIME
Email::Sender::Simple
File::Copy::Recursive
File::pushd
File::Rsync::Mirror::Recentfile
File::Temp
File::Which
Git::Wrapper
HTML::Entities
HTTP::Date
HTTP::Request::Common
IO::Socket::SSL
IPC::Cmd
IPC::Run3
JSON::XS
Log::Dispatch
Log::Dispatch::Config
LWP::UserAgent
LWP::Protocol::https
Digest::MD5
Digest::SHA1
Mail::Mailer
Mail::Send
Module::Faker::Dist
Module::Signature
MooseX::StrictConstructor
Net::FTP
Parse::CPAN::Packages
Parse::CPAN::Perms
Path::Class
Path::Tiny
Plack
Plack::App::Directory::Apaxy
Plack::Middleware::Auth::Basic
Plack::Middleware::ReverseProxy
Plack::Middleware::ServerStatus::Tiny
Set::Crontab
String::Random
Test::Aggregate
Test::Deep
Test::FITesque::Fixture
Test::MockObject
Test::mysqld
Test::WWW::Mechanize::PSGI
Text::Format
Text::Metaphone
Text::Soundex
Text::Unidecode
Time::Duration
Time::HiRes
URI::Escape
URI::URL
Unicode::Collate
Unicode::String
WWW::Mechanize::Boilerplate
XML::LibXML
XML::Parser
XML::SAX::Base
XML::SAX::Writer
YAML::XS
)},
SIGN => 1,
($ExtUtils::MakeMaker::VERSION >= 6.4502 ?
(META_ADD => {
resources => {
repository => "git://github.com/andk/pause.git",
},
keywords => ['CPAN','perl','perl authors upload server'],
}) : ()),
);
open my $fh, ">>", "Makefile" or die;
print $fh <<EOF;
cpanshell ::
\t\$(PERL) -MCPAN -e shell
rsynctest ::
\t\$(ECHO) USER=\$(USER) RSYNC_PASSWORD=\$(RSYNC_PASSWORD) ...
\tUSER=\$(USER) RSYNC_PASSWORD=\$(RSYNC_PASSWORD) rsync --port=8732 pause.perl.org::PAUSE/authors/02STAMP
getdump:
rsync -P pause.perl.org::pausedata/moddump.current .
\@echo You need to call next: make recorddump
recorddump: moddump.current
mysql -u root -p mod < moddump.current
stoplave:
mysql -u root -p -e 'stop slave'
startslave:
mysql -u root -p -e 'start slave; show slave status\\G'
doc/mod.schema.txt:
mysqldump -u root -p mod --quote-names=false --no-data --skip-add-drop-table > \$\@
doc/authen_pause.schema.txt:
mysqldump -u root -p authen_pause --quote-names=false --no-data --skip-add-drop-table > \$\@
EOF
print $fh <<'EOF' or die;
htdocs/namingmodules.html: htdocs/namingmodules.pod
-[ -r $@ ] && chmod +w $@
-$(PERL) -MPod::Xhtml -e 'Pod::Xhtml->new->parse_from_file(\*ARGV)' htdocs/namingmodules.pod > $@
EOF