git: use hardlinks for /usr/lib/git-core/git{,-shell,-upload-pack}
authorPeter Wagner <tripolar@gmx.at>
Tue, 13 Mar 2018 18:08:56 +0000 (19:08 +0100)
committerPeter Wagner <tripolar@gmx.at>
Tue, 13 Mar 2018 18:09:43 +0000 (19:09 +0100)
Signed-off-by: Peter Wagner <tripolar@gmx.at>
net/git/Makefile

index 1879c4987161811341edea8e5cbb8a6f5102b2a3..b2d8e2c9350ae64efd5417005b72eeaafd5093a3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=git
 PKG_VERSION:=2.16.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/software/scm/git/
@@ -110,7 +110,9 @@ define Package/git/install
        $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
        $(INSTALL_DIR) $(1)/usr/lib/git-core
-       $(LN) /usr/bin/git $(1)/usr/lib/git-core/git
+       ln $(1)/usr/bin/git $(1)/usr/lib/git-core/git
+       ln $(1)/usr/bin/git-shell $(1)/usr/lib/git-core/git-shell
+       ln $(1)/usr/bin/git-upload-pack $(1)/usr/lib/git-core/git-upload-pack
        $(INSTALL_DIR) $(1)/usr/share/git-core/templates
        ( cd $(PKG_INSTALL_DIR); $(TAR) \
                --exclude=usr/lib/git-core/git-http-backend \
@@ -119,6 +121,9 @@ define Package/git/install
                --exclude=usr/lib/git-core/git-remote-ftps \
                --exclude=usr/lib/git-core/git-remote-http \
                --exclude=usr/lib/git-core/git-remote-https \
+               --exclude=usr/lib/git-core/git \
+               --exclude=usr/lib/git-core/git-shell \
+               --exclude=usr/lib/git-core/git-upload-pack \
                -cf - \
                usr/lib/git-core \
                usr/share/git-core/templates \