summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ports/.gitignore1
-rw-r--r--Ports/git/.gitignore1
-rw-r--r--Ports/git/default_gitconfig3
-rwxr-xr-xPorts/git/package.sh5
4 files changed, 10 insertions, 0 deletions
diff --git a/Ports/.gitignore b/Ports/.gitignore
index 8e999ab302..4ed7fdd31a 100644
--- a/Ports/.gitignore
+++ b/Ports/.gitignore
@@ -2,3 +2,4 @@
!*/package.sh
!*/patches
!*/patches/*
+!*/.gitignore
diff --git a/Ports/git/.gitignore b/Ports/git/.gitignore
new file mode 100644
index 0000000000..7e563d9345
--- /dev/null
+++ b/Ports/git/.gitignore
@@ -0,0 +1 @@
+!default_gitconfig
diff --git a/Ports/git/default_gitconfig b/Ports/git/default_gitconfig
new file mode 100644
index 0000000000..2eeb9a6e33
--- /dev/null
+++ b/Ports/git/default_gitconfig
@@ -0,0 +1,3 @@
+[user]
+ email = anon
+ name = anon
diff --git a/Ports/git/package.sh b/Ports/git/package.sh
index 2a98e4eb41..82bcc68b1b 100755
--- a/Ports/git/package.sh
+++ b/Ports/git/package.sh
@@ -11,6 +11,11 @@ build() {
run make strip
}
+post_install() {
+ mkdir -p "$SERENITY_ROOT"/Build/Root/home/anon
+ cp "$workdir"/../default_gitconfig "$SERENITY_ROOT"/Build/Root/home/anon/.gitconfig
+}
+
export NO_OPENSSL=1
export ac_cv_fread_reads_directories=no
export ac_cv_snprintf_returns_bogus=no