check_logfiles: 3.7.5.1
[omd.git] / packages / perl-modules / Makefile
blobd0fe5c711aa3c331724b9374aae1bc43fa7ef002
1 include ../../Makefile.omd
3 NAME = perl-modules
4 VERSION = $(OMD_VERSION)
5 DISTRO = $(shell ../../distro)
7 MODULES = \
8 AppConfig-1.71.tar.gz \
9 Capture-Tiny-0.27.tar.gz \
10 Carp-Clan-6.04.tar.gz \
11 Class-Accessor-0.34.tar.gz \
12 Class-Inspector-1.28.tar.gz \
13 Class-Singleton-1.5.tar.gz \
14 Compress-Raw-Bzip2-2.068.tar.gz \
15 Compress-Raw-Zlib-2.068.tar.gz \
16 Config-General-2.56.tar.gz \
17 Crypt-Blowfish_PP-1.12.tar.gz \
18 Crypt-RC4-2.02.tar.gz \
19 Crypt-Rijndael-1.12.tar.gz \
20 DBI-1.633.tar.gz \
21 Data-Dumper-2.154.tar.gz \
22 Digest-1.17.tar.gz \
23 Digest-MD5-2.54.tar.gz \
24 Digest-Perl-MD5-1.9.tar.gz \
25 Digest-SHA1-2.13.tar.gz \
26 Email-Date-Format-1.005.tar.gz \
27 Encode-Locale-1.04.tar.gz \
28 Exporter-5.70.tar.gz \
29 Exporter-Tiny-0.042.tar.gz \
30 ExtUtils-Config-0.008.tar.gz \
31 ExtUtils-Constant-0.23.tar.gz \
32 ExtUtils-InstallPaths-0.010.tar.gz \
33 ExtUtils-Manifest-1.70.tar.gz \
34 FCGI-0.77.tar.gz \
35 FCGI-ProcManager-0.25.tar.gz \
36 File-Copy-Recursive-0.38.tar.gz \
37 File-Path-2.09.tar.gz \
38 File-Remove-1.52.tar.gz \
39 File-ShareDir-Install-0.10.tar.gz \
40 File-Slurp-9999.19.tar.gz \
41 GD-2.50.tar.gz \
42 Getopt-Long-2.43.tar.gz \
43 HTML-Tagset-3.20.tar.gz \
44 HTTP-Date-6.02.tar.gz \
45 Hash-MultiValue-0.16.tar.gz \
46 IO-Compress-2.068.tar.gz \
47 IO-String-1.08.tar.gz \
48 IO-Zlib-1.10.tar.gz \
49 IO-stringy-2.111.tar.gz \
50 LWP-MediaTypes-6.02.tar.gz \
51 Locale-Maketext-Simple-0.21.tar.gz \
52 Log-Log4perl-1.46.tar.gz \
53 MIME-Base64-3.15.tar.gz \
54 MIME-Lite-3.030.tar.gz \
55 Math-Calc-Units-1.07.tar.gz \
56 Math-Complex-1.59.tar.gz \
57 Module-Find-0.12.tar.gz \
58 Module-Load-0.32.tar.gz \
59 Mozilla-CA-20141217.tar.gz \
60 OLE-Storage_Lite-0.19.tar.gz \
61 Package-Stash-XS-0.28.tar.gz \
62 Params-Check-0.38.tar.gz \
63 PathTools-3.47.tar.gz \
64 Perl-OSType-1.008.tar.gz \
65 Pod-Escapes-1.07.tar.gz \
66 Pod-Simple-3.29.tar.gz \
67 Pod-Usage-1.64.tar.gz \
68 Scalar-List-Utils-1.42.tar.gz \
69 Spreadsheet-ParseExcel-0.65.tar.gz \
70 Stream-Buffered-0.03.tar.gz \
71 String-CRC32-1.5.tar.gz \
72 Sub-Exporter-Progressive-0.001011.tar.gz \
73 Sub-Identify-0.10.tar.gz \
74 Sub-Install-0.928.tar.gz \
75 Sub-Name-0.12.tar.gz \
76 Sys-SigAction-0.21.tar.gz \
77 Template-Toolkit-2.26.tar.gz \
78 Term-ReadLine-Gnu-1.25.tar.gz \
79 Term-ShellUI-0.92.tar.gz \
80 Term-Size-0.207.tar.gz \
81 TermReadKey-2.32.tar.gz \
82 Test-Cmd-1.08.tar.gz \
83 Test-Simple-1.001014.tar.gz \
84 Text-Abbrev-1.02.tar.gz \
85 Text-Balanced-2.02.tar.gz \
86 Text-ParseWords-3.29.tar.gz \
87 Text-Tabs+Wrap-2013.0523.tar.gz \
88 Thread-Queue-3.05.tar.gz \
89 Thread-Semaphore-2.12.tar.gz \
90 Tie-RefHash-1.39.tar.gz \
91 Time-HiRes-1.9726.tar.gz \
92 Time-Local-1.2300.tar.gz \
93 Try-Tiny-0.22.tar.gz \
94 Variable-Magic-0.55.tar.gz \
95 XML-NamespaceSupport-1.11.tar.gz \
96 XML-SAX-Base-1.08.tar.gz \
97 YAML-1.14.tar.gz \
98 YAML-Tiny-1.67.tar.gz \
99 base-2.18.tar.gz \
100 libnet-3.05.tar.gz \
101 podlators-2.5.3.tar.gz \
102 threads-2.01.tar.gz \
103 threads-shared-1.46.tar.gz \
104 Archive-Tar-2.04.tar.gz \
105 Archive-Zip-1.43.tar.gz \
106 Attribute-Handlers-0.96.tar.gz \
107 Bit-Vector-7.4.tar.gz \
108 CPAN-Meta-YAML-0.012.tar.gz \
109 DBD-mysql-4.033.tar.gz \
110 Date-Calc-6.4.tar.gz \
111 Date-Calc-XS-6.4.tar.gz \
112 Encode-2.68.tar.gz \
113 ExtUtils-Helpers-0.022.tar.gz \
114 File-Listing-6.04.tar.gz \
115 File-ShareDir-1.102.tar.gz \
116 Gearman-1.12.tar.gz \
117 HTML-Parser-3.71.tar.gz \
118 Module-Metadata-1.000027.tar.gz \
119 Module-ScanDeps-1.18.tar.gz \
120 Parse-CPAN-Meta-1.4414.tar.gz \
121 Term-Clui-1.70.tar.gz \
122 URI-1.67.tar.gz \
123 WWW-RobotRules-6.02.tar.gz \
124 XML-SAX-0.99.tar.gz \
125 XML-Simple-2.20.tar.gz \
126 autodie-2.26.tar.gz \
127 Class-MethodMaker-2.22.tar.gz \
128 HTML-Lint-2.20.tar.gz \
129 HTTP-Message-6.06.tar.gz \
130 HTTP-Negotiate-6.01.tar.gz \
131 Module-Load-Conditional-0.64.tar.gz \
132 Monitoring-Livestatus-0.74.tar.gz \
133 Net-HTTP-6.07.tar.gz \
134 Term-ProgressBar-2.17.tar.gz \
135 XML-LibXML-2.0117.tar.gz \
136 HTTP-Body-1.22.tar.gz \
137 HTTP-Cookies-6.01.tar.gz \
138 HTTP-Daemon-6.01.tar.gz \
139 IPC-Cmd-0.92.tar.gz \
140 List-MoreUtils-0.410.tar.gz \
141 Plack-1.0034.tar.gz \
142 libwww-perl-6.13.tar.gz \
143 ExtUtils-CBuilder-0.280220.tar.gz \
144 ExtUtils-ParseXS-3.24.tar.gz \
145 IO-1.25.tar.gz \
146 LWP-Protocol-https-6.06.tar.gz \
147 List-AllUtils-0.09.tar.gz \
148 Module-Build-0.4007.tar.gz \
149 Module-Install-1.16.tar.gz \
150 Module-Runtime-0.014.tar.gz \
151 Params-Util-1.07.tar.gz \
152 Parse-RecDescent-1.967009.tar.gz \
153 Path-Class-0.35.tar.gz \
154 Readonly-2.00.tar.gz \
155 Socket-2.019.tar.gz \
156 Spreadsheet-WriteExcel-2.40.tar.gz \
157 Tie-IxHash-1.23.tar.gz \
158 XML-Parser-2.44.tar.gz \
159 XML-Twig-3.48.tar.gz \
160 constant-1.27.tar.gz \
161 App-cpanminus-1.7024.tar.gz \
162 CPAN-2.05.tar.gz \
163 Config-Tiny-2.20.tgz \
164 Crypt-SSLeay-0.72.tar.gz \
165 Date-Manip-6.49.tar.gz \
166 Devel-GlobalDestruction-XS-0.01.tar.gz \
167 Dist-CheckConflicts-0.11.tar.gz \
168 Error-0.17022.tar.gz \
169 Excel-Template-0.34.tar.gz \
170 File-BOM-0.14.tar.gz \
171 File-SearchPath-0.06.tar.gz \
172 HTML-Escape-1.09.tar.gz \
173 LWP-Protocol-connect-6.09.tar.gz \
174 Module-Implementation-0.09.tar.gz \
175 Package-Stash-0.37.tar.gz \
176 Params-Validate-1.18.tar.gz \
177 B-Hooks-EndOfScope-0.13.tar.gz \
178 DateTime-Locale-0.45.tar.gz \
179 DateTime-TimeZone-1.88.tar.gz \
180 Devel-GlobalDestruction-0.13.tar.gz \
181 Log-Dispatch-2.44.tar.gz \
182 Monitoring-Plugin-0.38.tar.gz \
183 Nagios-Plugin-0.36.tar.gz \
184 namespace-clean-0.25.tar.gz \
185 DateTime-1.18.tar.gz
190 build:
191 mkdir -p $(P5TMPDIST)/dest
192 mkdir -p $(P5TMPDIST)/src
193 rsync -a src/. $(P5TMPDIST)/src/.
194 rsync -a build_module.pl lib $(P5TMPDIST)/src/.
195 echo "install --install_base $(P5TMPDIST)/dest" > $(P5TMPDIST)/dest/.modulebuildrc
196 unset LANG; \
197 unset PERL5LIB; \
198 unset PERL_MB_OPT; \
199 unset PERL_LOCAL_LIB_ROOT; \
200 unset PERL_MM_OPT; \
201 export PATH=$(P5TMPDIST)/dest/bin:$$PATH; \
202 export PERL_MM_OPT=INSTALL_BASE=$(P5TMPDIST)/dest; \
203 export PERL_MB_OPT=--install_base=$(P5TMPDIST)/dest; \
204 export MODULEBUILDRC=$(P5TMPDIST)/dest/.modulebuildrc; \
205 export PERL5LIB=$(P5TMPDIST)/dest/lib/perl5:$(P5TMPDIST)/src/lib; \
206 cd $(P5TMPDIST)/src && \
207 FORCE=1 ./build_module.pl -d "$(DISTRO)" -p $(P5TMPDIST)/dest \
208 ExtUtils-MakeMaker-*.tar.gz \
209 parent-*.tar.gz \
210 version-*.tar.gz \
211 Module-CoreList-*.tar.gz \
212 common-sense-*.tar.gz \
213 Types-Serialiser-*.tar.gz \
214 JSON-*.tar.gz; \
215 export PERL_JSON_BACKEND='JSON::XS'; \
216 cd $(P5TMPDIST)/src && \
217 ./build_module.pl -d "$(DISTRO)" -p $(P5TMPDIST)/dest $(MODULES)
218 cd $(P5TMPDIST)/dest/lib/perl5/ && rm -f utils.pm && ln -s ../../../nagios/plugins/utils.pm .
219 mkdir -p $(P5TMPDIST)/dest/lib/perl5/CPAN
220 cp MyConfig.pm $(P5TMPDIST)/dest/lib/perl5/CPAN/MyConfig.skel
222 install:
223 if [ -z $(DESTDIR) ]; then echo "cannot install without DESTDIR set!"; exit 1; fi
224 mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/perl5 $(DESTDIR)$(OMD_ROOT)/bin
225 rsync -a $(P5TMPDIST)/dest/lib $(DESTDIR)$(OMD_ROOT)/lib/perl5/
226 rsync -a $(P5TMPDIST)/dest/bin $(DESTDIR)$(OMD_ROOT)/lib/perl5/
227 mkdir -p $(DESTDIR)$(OMD_ROOT)/local/lib/perl5
228 install -m 755 bin/cpan.wrapper $(DESTDIR)$(OMD_ROOT)/bin/cpan.wrapper
230 skel:
231 echo "install --install_base ###ROOT###/local/lib/perl5" > $(SKEL)/.modulebuildrc
233 clean:
234 rm -rf src/inc $(P5TMPDIST)