From c57adab9f1609dbd09911bc79b967276aeaa8168 Mon Sep 17 00:00:00 2001 From: Peter Wagner Date: Tue, 13 Mar 2018 19:08:56 +0100 Subject: [PATCH] git: use hardlinks for /usr/lib/git-core/git{,-shell,-upload-pack} Signed-off-by: Peter Wagner --- net/git/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/git/Makefile b/net/git/Makefile index 1879c49871..b2d8e2c935 100644 --- a/net/git/Makefile +++ b/net/git/Makefile @@ -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 \ -- 2.30.2