-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.PL
80 lines (71 loc) · 2.02 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
#!perl
#
# Copyright (C) 2014 Chitika Inc.
#
# This file is a part of Cmr
#
# Cmr is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'Cmr',
'LICENSE' => 'GPLv3',
'AUTHOR' => 'Paul Laidler <plaidler@chitika.com>',
'VERSION_FROM' => 'lib/Cmr/Client.pm',
'EXE_FILES' => [
'script/cget',
'script/cgrep',
'script/cmr',
'script/cmr-caster',
'script/cmr-comp-watcher',
'script/cmr-grep',
'script/cmr-server',
'script/cmr-status',
'script/cmr-worker',
'script/cmr-map-json',
'script/cmr-reduce',
],
'PREREQ_PM' => {
'NanoMsg::Raw' => 0,
'JSON::XS' => 0,
'Date::Calc' => 0,
'Date::Manip' => 0,
'IO::Select' => 0,
'POSIX' => 0,
'List::Util' => 0,
'File::Basename' => 0,
'Cwd' => 0,
'Data::GUID' => 0,
'Getopt::Long' => 0,
},
'dist' => {
COMPRESS => "gzip-9",
SUFFIX => "gz"
},
);
package MY;
sub MY::postamble {
return q{
all ::
$(MAKE) -f src/cmr-binaries.mk INST_BIN="$(INST_BIN)"
install:: config_install
pure_install:: config_install
install_vendor:: config_install
config_install:
install -D config/config.ini $(DESTDIR)/etc/cmr/config.ini
};
}