forked from NicTool/NicTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
43 lines (36 loc) · 1.3 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
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => "NicTool::Bundle",
VERSION_FROM => "server/lib/NicToolServer.pm",
AUTHOR => 'Matt Simerson <msimerson@cpan.org>',
ABSTRACT => 'NicTool DNS Management suite',
LICENSE => 'open_source',
#dist => { COMPRESS => 'gzip -9f', },
dist => { COMPRESS => 'bzip2', SUFFIX => '.bz2' },
'MIN_PERL_VERSION' => 5.008001,
'BUILD_REQUIRES' => {
},
PREREQ_PM => {
},
TEST_REQUIRES => {
},
);
sub MY::postamble {
return <<'MAKE_FRAG'
bundle : server client
tar -czf NicTool.tar.gz server/*.tar.gz client/*.tar.gz
cd server; make distclean
cd client; make distclean
make distclean
server : server/NicToolServer.tar.gz
client : client/NicToolClient.tar.gz
server/NicToolServer.tar.gz :
cd server; perl Makefile.PL && make && make dist
client/NicToolClient.tar.gz :
cd client; perl Makefile.PL && make && make dist
web : NicTool.tar.gz
scp NicTool.tar.gz jails:/data/matt/www/nictool.com/download/NicTool.tar.gz
scp NicTool.tar.gz jails:/data/matt/www/nictool.com/download/NicTool-$(VERSION).tar.gz
MAKE_FRAG
;
}