diff options
author | Cem Keylan <cem@ckyln.com> | 2020-09-10 13:13:01 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-09-10 13:13:01 +0300 |
commit | d3ccac9b4db49fb493e267bef61e662eeab62f1e (patch) | |
tree | f3f928eca755c32406df634e32c3d0d4d47018ca /core | |
parent | fbc949c5a29ad67b7fd6180828040d9d0dd6d1ad (diff) | |
download | repository-d3ccac9b4db49fb493e267bef61e662eeab62f1e.tar.gz |
git: add back to core repository
Diffstat (limited to 'core')
-rwxr-xr-x | core/git/build | 46 | ||||
-rw-r--r-- | core/git/checksums | 2 | ||||
-rw-r--r-- | core/git/depends | 4 | ||||
-rw-r--r-- | core/git/sources | 2 | ||||
-rw-r--r-- | core/git/version | 1 |
5 files changed, 55 insertions, 0 deletions
diff --git a/core/git/build b/core/git/build new file mode 100755 index 00000000..9d6637cc --- /dev/null +++ b/core/git/build @@ -0,0 +1,46 @@ +#!/bin/sh -e + +cat > config.mak <<EOF +NO_GETTEXT=YesPlease +NO_SVN_TESTS=YesPlease +NO_TCLTK=YesPlease +NO_EXPAT=YesPlease +NO_NSEC=YesPlease +NO_PYTHON=YesPlease +NO_PERL=YesPlease +NO_SYS_POLL_H=1 +NO_CROSS_DIRECTORY_HARDLINKS=1 +NO_INSTALL_HARDLINKS=1 +EOF + +export LDFLAGS="$LDFLAGS -static" + +./configure \ + --prefix=/usr \ + --with-curl \ + 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 + + +# Build and install remote-http helper. This doesn't happen by default when +# building static git. +set -x +export CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -I$PWD -I$PWD/compat/regex -I$PWD/xdiff -include config.h" +for obj in http http-walker; do + # shellcheck disable=2086 + "${CC:=cc}" $CFLAGS -c "$obj.c" +done + +# shellcheck disable=2086,2046 +"$CC" -static $CFLAGS -o "$1/usr/libexec/git-core/git-remote-http" remote-curl.c http.o http-walker.o libgit.a common-main.o xdiff/lib.a $(pkg-config --static --libs zlib libcurl) + +for remote in https ftp ftps; do + ln -sf git-remote-http "$1/usr/libexec/git-core/git-remote-$remote" +done diff --git a/core/git/checksums b/core/git/checksums new file mode 100644 index 00000000..1ecf6d69 --- /dev/null +++ b/core/git/checksums @@ -0,0 +1,2 @@ +dfa5d1a253aa451465478fe45c6a40ab8605b340fdb4c4e80b16d7f87708439d git-2.28.0.tar.xz +665a7fa41f9a39248e48422dcf533e1a0133a4a6eddfc25ee55e28e42fc07cb7 git-manpages-2.28.0.tar.xz diff --git a/core/git/depends b/core/git/depends new file mode 100644 index 00000000..7a3c084e --- /dev/null +++ b/core/git/depends @@ -0,0 +1,4 @@ +curl make +libressl make +pkgconf make +zlib make diff --git a/core/git/sources b/core/git/sources new file mode 100644 index 00000000..4435bba3 --- /dev/null +++ b/core/git/sources @@ -0,0 +1,2 @@ +https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.28.0.tar.xz +https://www.kernel.org/pub/software/scm/git/git-manpages-2.28.0.tar.xz diff --git a/core/git/version b/core/git/version new file mode 100644 index 00000000..1ab3a66b --- /dev/null +++ b/core/git/version @@ -0,0 +1 @@ +2.28.0 2 |