aboutsummaryrefslogtreecommitdiff
path: root/testing/git/build
blob: 419432e16c0a25b15097341ca74833f1172a500d (plain)
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
#!/bin/sh -e
# Git build with git-send-email perl garbage enabled :c

(
    cd ssleay
    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
    make
    make DESTDIR="$1" install
)

(
    cd uri
    perl Makefile.PL INSTALLDIRS=vendor
    make
    make DESTDIR="$1" install
)

(
    cd socket-ssl
    yes | perl Makefile.PL INSTALLDIRS=vendor
    make
    make DESTDIR="$1" install
)

(
    cd sasl
    PERL_USE_UNSAFE_INC=1 \
    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
    make
    make pure_install DESTDIR="$1"
)

(
    cd ssl
    perl Makefile.PL INSTALLDIRS=vendor
    make
    make DESTDIR="$1" install
    find "$1" \( -name '.packlist' -o -name '*.pod' \) -exec rm -rf {} +
)

export CFLAGS="$CFLAGS -fPIC"

cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
NO_TCLTK=YesPlease
NO_EXPAT=YesPlease
NO_NSEC=YesPlease
NO_PYTHON=YesPlease
PERL=YesPlease
NO_SVN_TESTS=YesPlease
NO_SYS_POLL_H=1
NO_CROSS_DIRECTORY_HARDLINKS=1
NO_INSTALL_HARDLINKS=1
EOF

./configure \
    --prefix=/usr \
    ac_cv_snprintf_returns_bogus=no \
    ac_cv_fread_reads_directories=yes

make
make DESTDIR="$1" install

for man in man1/*.1 man5/*.5 man7/*.7; do
    install -Dm644 "$man" "$1/usr/share/man/$man"
done