Skip to content

Commit

Permalink
Improved hardcoded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jan 8, 2025
1 parent 659995e commit 158c9d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tools/git/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,25 @@ EOF
RUN <<EOF
export CFLAGS="${CFLAGS} -static"
make configure
./configure --prefix="${prefix}"
./configure \
--prefix="/usr/local" \
--sysconfdir="/etc"
make -j$(nproc) all
make -j$(nproc) doc
make install install-doc install-html
make install install-doc install-html DESTDIR="${prefix}"
EOF
RUN <<EOF
make -C contrib/subtree
make -C contrib/subtree install
make -C contrib/subtree install DESTDIR="${prefix}"

make -C contrib/diff-highlight
install -Dm755 contrib/diff-highlight/diff-highlight -t "${prefix}/bin/"

#make -C contrib/credential/libsecret
#install -Dm755 contrib/credential/libsecret/git-credential-libsecret "${prefix}/libexec/git-core/"

install -Dm644 contrib/completion/git-completion.bash "${prefix}/usr/share/bash-completion/completions/git"
install -Dm644 contrib/completion/git-completion.bash "${prefix}/share/bash-completion/completions/git"
install -Dm644 contrib/completion/git-prompt.sh "${prefix}/share/git-core/git-prompt.sh"
EOF
WORKDIR /uniget_bootstrap
RUN <<EOF
cp -r usr/local/* .
rm -rf usr/local
EOF
8 changes: 8 additions & 0 deletions tools/git/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ tags:
homepage: https://git-scm.com/
repository: https://github.com/git/git
description: Distributed version control system
messages:
internals: |
git has multiple paths compiled in:
- GIT_EXEC_PATH defaults to /usr/local/libexec/git-core
- GIT_TEMPLATE_DIR defaults to /usr/local/share/git-core/templates
- Global configuration files are expected to live in /etc/git{attributes,config}
You con override them by setting the approprivate environment variables. Please refer to the official documentation: https://git-scm.com/docs
renovate:
datasource: github-tags
package: git/git
Expand Down

0 comments on commit 158c9d4

Please sign in to comment.