-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
103 lines (94 loc) · 2.25 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
#!/usr/bin/perl
use 5.006001;
BEGIN {
if ($] >= 5.010 and not $ENV{FORCE_MAKEFILE}) {
die "Perls since v5.10.0 too modern--this is $^V, stopped"
}
}
use inc::Module::Install;
use strict;
use warnings;
my @ciphers = map { "Crypt::$_" } (
qw/Rijndael Twofish2 Twofish Blowfish IDEA DES/,
qw/TEA GOST Rijndael_PP Blowfish_PP DES_PP/,
);
my ($have_ciph, @cipher_module);
foreach my $cipher (@ciphers) {
++$have_ciph and last if eval "use $cipher (); 1";
}
unless (!$have_ciph) {
@cipher_module = (
can_cc() ? ('Crypt::Rijndael' => '0.03')
: ('Crypt::Rijndael_PP' => '0.01')
);
}
requires(
'Date::Parse' => '2.20', # RAM, MAPLE2, MELIX, NNTP
'Date::Format' => '0.01', # RAM, MAPLE2, MELIX, NNTP
'Digest::MD5' => '2.10', # Server, Client, Utils
'File::Temp' => '0.12', # Test scripts
'Mail::Address' => '1.17', # BBSAgent, MAPLE2, MELIX
'Test::Harness' => '1.23',
'File::Spec' => '0.6',
'Hook::LexWrap' => '0.01',
'enum' => '1.016', # MAPLE3
'if' => '0.04',
);
build_requires( 'Test::More' => '0.31' );
features(
'OurNet Server (bbscomd)' => [
# -tests => [ <t/*-OurNet-*.t> ],
recommends(
'Storable' => '1.011',
'Net::Daemon' => '0.13',
'RPC::PlServer' => '0.2013',
@cipher_module,
),
],
'OurNet Client' => [
recommends(
'Storable' => '1.011',
'RPC::PlClient' => '0.2013',
@cipher_module,
),
],
'GnuPG Encryption' => [
-default => (
(can_run('gpg') and can_cc()) ? 1 : 0
),
recommends(
'Class::MethodMaker'=> '1.00',
'GnuPG::Interface' => '0.31',
'Term::ReadKey' => '2.13',
),
],
'Usenet News (NNTP)' => [
recommends(
'Net::NNTP' => '2.19',
),
],
'Mailbox File (MailBox)' => [
-default => 0,
# -tests => [ 't/6-MailBox.t' ],
recommends(
'Mail::Internet' => '1.0',
'MIME::Tools' => '5.0',
'IO::Scalar' => '1.0',
'Mail::Box' => '1.0',
),
],
'Telnet BBS (BBSAgent)' => [
# -tests => [ 't/5-BBSAgent.t' ],
recommends(
'Net::Telnet' => '3.02',
'OurNet::BBSAgent' => '1.55',
),
],
);
name 'OurNet-BBS';
all_from 'lib/OurNet/BBS.pm';
readme_from 'lib/OurNet/BBS.pod';
install_script glob('script/*');
sign;
auto_install();
WriteAll();