-
Notifications
You must be signed in to change notification settings - Fork 8
/
install-dependencies
executable file
·61 lines (54 loc) · 1.33 KB
/
install-dependencies
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
#!/bin/bash
# Exit if anything fails
set -e
DISTS=/var/www/dists
if [ ! -d $DISTS ]; then
mkdir $DISTS
fi
CPANM="cpanm --configure-timeout 300 --save-dists $DISTS"
for pkg in \
Math::Random::ISAAC \
File::MimeInfo::Magic \
Daemon::Generic \
Crypt::OpenPGP \
Crypt::SMIME \
TheSchwartz \
Any::URI::Escape \
Chart::Base \
HTTP::Lite \
JSON::RPC \
PatchReader \
Authen::Radius \
Template::Plugin::GD \
Math::BigInt \
ElasticSearch@0.68 \
Test::Number::Delta \
Math::Random::MT \
Devel::StackTrace \
Convert::Base32 \
Auth::GoogleAuth \
Net::SFTP \
File::Copy::Recursive \
MIME::Tools@5.502 \
Email::Simple@2.100 \
Email::Send@2.198 \
Email::MIME::ContentType@1.011 \
Email::MIME@1.910 \
Email::MIME::Attachment::Stripper@1.316 \
Email::Reply@1.202 \
; do
echo "Installing $pkg"
$CPANM $pkg
done
# Force install, this is failing some tests
for pkg in \
Math::BigInt::Pari \
Math::BigInt::GMP \
; do
echo "Installing --force $pkg"
$CPANM --force $pkg
done
echo "Monkey patching for issue https://github.com/btrott/Crypt-OpenPGP/issues/30"
curl 'https://patch-diff.githubusercontent.com/raw/btrott/Crypt-OpenPGP/pull/31.diff' | ( cd /usr/local/share/perl5 ; patch -p2 )
tar -C "$(dirname $DISTS)" -zcvf $DISTS.tar.gz "$(basename $DISTS)"
rm -rf $DISTS