summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--subr/build.subr4
-rw-r--r--vars/git.vars13
2 files changed, 17 insertions, 0 deletions
diff --git a/subr/build.subr b/subr/build.subr
index 66e45f65..6078cc40 100644
--- a/subr/build.subr
+++ b/subr/build.subr
@@ -76,6 +76,10 @@ create_dirs() {
secure_rm "${__}"; ln -sf -- . "${__}";
fi;
done;
+ if [ ! -L ${PREFIX_NATIVE}/man ]; then
+ secure_rm ${PREFIX_NATIVE}/man;
+ ln -sf share/man ${PREFIX_NATIVE}/man;
+ fi;
insecure_mkdir ${PREFIX_MINIPIX}/bin;
for __ in lib libexec share; do
if [ ! -e ${PREFIX_MINIPIX}/${__} ]; then
diff --git a/vars/git.vars b/vars/git.vars
new file mode 100644
index 00000000..3948b910
--- /dev/null
+++ b/vars/git.vars
@@ -0,0 +1,13 @@
+#
+# . ./build.vars and set -o errexit -o noglob are assumed.
+#
+
+pkg_git_install_post() {
+ for __ in $(find ${PKG_PREFIX}/share/man -name Git*::* -type f); do
+ __new="$(echo ${__} | sed "s/::/./g")";
+ echo mv -f ${__} ${__new};
+ mv -f ${__} ${__new};
+ done;
+};
+
+# vim:filetype=sh