1DOLLY 82PACKAGE git-http3REQUIRES HOST runtime@04REQUIRES HOST http@05REQUIRES HOST threads@067# Git's HTTP and HTTPS remote helpers, which git clone, fetch and push run for8# an http:// or https:// remote: the one part of Git that links libcurl, here9# Dolly's over the page's HTTP broker. A session that clones over HTTPS10# installs it beside git. Its objects are Git's, built again here.11FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb12USE /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea97113USE /Dollyfile-curl bce8c6fafa9e15aa65c9804fc4fec07a309e6174c8e1cb80b7396ac6e458431e14REQUIRES HEADER libc15REQUIRES HEADER runtime16REQUIRES HEADER curl17REQUIRES HEADER zlib18REQUIRES LIB    curl19REQUIRES LIB    z20REQUIRES TOOL   ar21REQUIRES TOOL   cc22REQUIRES TOOL   make23REQUIRES TOOL   mkdir24REQUIRES TOOL   rm25REQUIRES TOOL   tar2627SOURCE /dist/static/default/git.tar 5c190c2a9301f54afab080b85341a8cd683bee1995b2d911e0bdea93f5eb845a /tmp/git.tar28SLOP tar \29  -xf /tmp/git.tar \30  -C /3132FILE /tmp/git/Makefile33    .RECIPEPREFIX := >34    SOURCES := $(file </usr/src/git/dolly-sources.txt)35    OBJECTS := $(addprefix /tmp/git/objects/,$(SOURCES:.c=.o))36    # NO_REGEX takes Git's regex, with GAWK and NO_MBSUPPORT as its Makefile37    # sets them: the sysroot's regex.h has no REG_STARTEND.38    # Git ends with status 128 when its pager cannot start, so the default one39    # is a command for Slop: less when it is installed, cat otherwise.40    CPPFLAGS := \41      -O2 \42      -std=gnu99 \43      -Wno-ignored-attributes \44      -D_DEFAULT_SOURCE \45      -DNO_GETTEXT \46      -DNO_ICONV \47      -DNO_EXPAT \48      -pthread \49      -DNO_UNIX_SOCKETS \50      -DNO_OPENSSL \51      -DNO_PERL \52      -DNO_PYTHON \53      -DNO_IPV6 \54      -DNO_MMAP \55      -DNO_REGEX \56      -DGAWK \57      -DNO_MBSUPPORT \58      -DNO_STRLCPY \59      -DSHA1_BLK \60      -DSHA256_BLK \61      -DHAVE_ALLOCA_H \62      -DHAVE_STRINGS_H \63      -DHAVE_CLOCK_GETTIME \64      -DHAVE_GETRANDOM \65      '-DGIT_VERSION_H="version-def.h"' \66      '-DBINDIR="/usr/bin"' \67      '-DGIT_EXEC_PATH="/usr/libexec/dolly"' \68      '-DDEFAULT_GIT_TEMPLATE_DIR="/usr/share/git-core/templates"' \69      '-DFALLBACK_RUNTIME_PREFIX="/usr"' \70      '-DGIT_HOST_CPU="wasm64"' \71      '-DGIT_LOCALE_PATH="/usr/share/locale"' \72      '-DSHELL_PATH="/bin/slop"' \73      '-DDEFAULT_PAGER="$$(command -v less || command -v cat)"' \74      '-DPAGER_ENV="LESS=FRX LV=-c"' \75      '-DETC_GITCONFIG="/etc/gitconfig"' \76      '-DETC_GITATTRIBUTES="/etc/gitattributes"' \77      '-DGIT_HTML_PATH="/usr/share/doc/git/html"' \78      '-DGIT_MAN_PATH="/usr/share/man"' \79      '-DGIT_INFO_PATH="/usr/share/info"' \80      -I /usr/src/git/compat/regex \81      -I /usr/src/git \82      -include dolly/runtime.h83    all: /usr/libexec/dolly/git-remote-http84    /tmp/git/objects/%.o: /usr/src/git/%.c85    >mkdir -p $(dir $@)86    >cc \87    >  $(CPPFLAGS) \88    >  -c $< \89    >  -o $@90    /usr/lib/libgit.a: $(OBJECTS)91    >ar rcs $@ $^92    /usr/libexec/dolly:93    >mkdir -p $@94    /usr/libexec/dolly/git-remote-http: /usr/src/git/common-main.c /usr/src/git/remote-curl.c /usr/src/git/http.c /usr/src/git/http-walker.c /usr/lib/libgit.a | /usr/libexec/dolly95    >cc \96    >  $(CPPFLAGS) \97    >  /usr/src/git/common-main.c \98    >  /usr/src/git/remote-curl.c \99    >  /usr/src/git/http.c \100    >  /usr/src/git/http-walker.c \101    >  -lgit \102    >  -lcurl \103    >  -lz \104    >  -o $@105SLOP CWD /usr/src/git make \106  -f /tmp/git/Makefile107# The HTTPS helper, which upstream links to the HTTP one.108FILE /usr/libexec/dolly/git-remote-https109    #!/bin/slop110    exec /usr/libexec/dolly/git-remote-http "$@"111FILE /usr/libexec/dolly/git-remote-http112SLOP mkdir -p /usr/share/licenses/git-http && cp /usr/share/licenses/git/COPYING /usr/share/licenses/git-http/COPYING113FILE /usr/share/licenses/git-http/COPYING114# It links libcurl statically and carries its licence.115FILE /usr/share/licenses/curl/COPYING116117SLOP rm \118  -rf \119  /tmp/git \120  /tmp/git.tar \121  /usr/lib/libgit.a \122  /usr/src/git \123  /usr/share/licenses/git124