diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-16 03:50:37 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-16 03:50:37 +0300 |
commit | c983ca9d661450127da9642d574a43459bf770d2 (patch) | |
tree | a07790f95a62880639f057f47b1937f70a09343d /git/build | |
parent | bd99654935247d243d2ede127a4bc791a6531dc2 (diff) | |
download | repository-c983ca9d661450127da9642d574a43459bf770d2.tar.gz |
git: add this ugly mess
Diffstat (limited to 'git/build')
-rwxr-xr-x | git/build | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/git/build b/git/build new file mode 100755 index 0000000..419432e --- /dev/null +++ b/git/build @@ -0,0 +1,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 |