Created
June 14, 2022 13:26
-
-
Save k-okada/22250c04d5990af740df30626fc862b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: MKDIR git | |
# installed wget make gcc libc6-dev perl gettext patch gcc-multilib autoconf | |
MKDIR: | |
sudo mkdir -p /opt/git | |
sudo chown -R $$(whoami) /opt/git | |
zlib_1.2.8.dfsg.orig.tar.gz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib_1.2.8.dfsg.orig.tar.gz | |
zlib-1.2.8: zlib_1.2.8.dfsg.orig.tar.gz | |
tar -xvzf zlib_1.2.8.dfsg.orig.tar.gz | |
zlib: zlib-1.2.8 | |
(cd zlib-1.2.8 && \ | |
make configure && \ | |
./configure --prefix=/opt/git && \ | |
make all && \ | |
make install) | |
touch zlib | |
openssl_1.0.1f.orig.tar.gz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1f.orig.tar.gz | |
openssl-1.0.1f: openssl_1.0.1f.orig.tar.gz | |
tar -xvzf openssl_1.0.1f.orig.tar.gz | |
openssl_1.0.1f-1ubuntu2.debian.tar.gz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1f-1ubuntu2.debian.tar.gz | |
openssl-1.0.1f/debian: openssl_1.0.1f-1ubuntu2.debian.tar.gz | |
tar -C openssl-1.0.1f -xvzf openssl_1.0.1f-1ubuntu2.debian.tar.gz | |
openssl: openssl-1.0.1f openssl-1.0.1f/debian | |
(cd openssl-1.0.1f && \ | |
for script_file in $$(ls debian/patches/|sort); do echo $${script_file}; patch -f -p1 < debian/patches/$${script_file}; done && \ | |
./Configure linux-elf -fPIC no-gost no-sharaed --prefix=/opt/git && \ | |
make depend && \ | |
make all && \ | |
make install) | |
touch openssl | |
curl_7.35.0.orig.tar.gz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.35.0.orig.tar.gz | |
curl-7.35.0: curl_7.35.0.orig.tar.gz | |
tar -xvzf curl_7.35.0.orig.tar.gz | |
curl: openssl zlib curl-7.35.0 | |
(cd curl-7.35.0 && \ | |
make configure && \ | |
LDFLAGS=-ldl ./configure --with-ssl=/opt/git --with-zlib=/opt/git --prefix=/opt/git && \ | |
make all && \ | |
make install) | |
touch curl | |
expat_2.1.0.orig.tar.gz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/e/expat/expat_2.1.0.orig.tar.gz | |
expat-2.1.0: expat_2.1.0.orig.tar.gz | |
tar -xvzf expat_2.1.0.orig.tar.gz | |
expat: expat-2.1.0 | |
(cd expat-2.1.0 && \ | |
./configure --prefix=/opt/git && \ | |
make && \ | |
make install) | |
touch expat | |
# run apt-get source git on 14.04 machine | |
git_1.9.1.orig.tar.xz: | |
wget http://archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.9.1.orig.tar.xz | |
git-1.9.1: git_1.9.1.orig.tar.xz | |
xzcat git_1.9.1.orig.tar.xz | tar -xvf - | |
git: curl expat git-1.9.1 | |
(cd git-1.9.1 && \ | |
make configure && \ | |
LDFLAGS=-ldl ./configure --with-zlib=/opt/git --with-curl=/opt/git --with-openssl=/opt/git --with-expat=/opt/git --without-tcltk --prefix=/opt/git && \ | |
make all && \ | |
make install) | |
touch git | |
clean: | |
rm -fr git* curl* openssl* zlib* expat* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment