From 50b960673d33d149039981c0c3b1b7b7caaa50c6 Mon Sep 17 00:00:00 2001 From: Emmett1 Date: Sat, 4 Apr 2026 05:35:46 +0000 Subject: git: added git service --- repos/core/git/.checksum | 2 ++ repos/core/git/.files | 6 ++++++ repos/core/git/abuild | 6 ++++-- repos/core/git/conf | 2 ++ repos/core/git/run | 12 ++++++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 repos/core/git/conf create mode 100755 repos/core/git/run (limited to 'repos/core/git') diff --git a/repos/core/git/.checksum b/repos/core/git/.checksum index 5822094a..8ab836f1 100644 --- a/repos/core/git/.checksum +++ b/repos/core/git/.checksum @@ -1 +1,3 @@ +268d319adb78f49db8399e6b2eac2103cdf471b16a14097590d33cb9c5deab0e conf 1dc4d1b87ede4887fad78b6e6fc9f49656a5e487d64541a163d7565c41d647d9 git-2.53.0.tar.xz +88aa657be27ad6f12f32d271c26388363aceb60c8fb4d1dbaa812f71ad81408c run diff --git a/repos/core/git/.files b/repos/core/git/.files index c3714bc6..7ee886df 100644 --- a/repos/core/git/.files +++ b/repos/core/git/.files @@ -1,3 +1,9 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/sv/ +drwxr-xr-x root/root etc/sv/git/ +-rw-r--r-- root/root etc/sv/git/conf.new +-rwxr-xr-x root/root etc/sv/git/run.new +lrwxrwxrwx root/root etc/sv/git/supervise -> ../../../run/runit/supervise.git drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/git diff --git a/repos/core/git/abuild b/repos/core/git/abuild index 41324546..f1c29996 100644 --- a/repos/core/git/abuild +++ b/repos/core/git/abuild @@ -1,7 +1,9 @@ name=git version=2.53.0 -release=1 -source="https://www.kernel.org/pub/software/scm/$name/$name-$version.tar.xz" +release=2 +source="https://www.kernel.org/pub/software/scm/$name/$name-$version.tar.xz + run conf" +sv="run conf" build_type=configure_build prebuild() { diff --git a/repos/core/git/conf b/repos/core/git/conf new file mode 100644 index 00000000..75e8afad --- /dev/null +++ b/repos/core/git/conf @@ -0,0 +1,2 @@ +#git_home=/var/git +#git_opts= diff --git a/repos/core/git/run b/repos/core/git/run new file mode 100755 index 00000000..da8f3e1e --- /dev/null +++ b/repos/core/git/run @@ -0,0 +1,12 @@ +#!/bin/sh +exec 2>&1 + +[ -f ./conf ] && . ./conf + +exec chpst -u git \ + git daemon \ + --base-path=${git_home:-/var/git} \ + --export-all \ + --reuseaddr \ + --informative-errors \ + --verbose ${git_opts} -- cgit v1.2.3