Browse Source

git: use hardlinks for /usr/lib/git-core/git{,-shell,-upload-pack}

Signed-off-by: Peter Wagner <tripolar@gmx.at>
lilik-openwrt-22.03
Peter Wagner 7 years ago
parent
commit
c57adab9f1
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      net/git/Makefile

+ 7
- 2
net/git/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=git PKG_NAME:=git
PKG_VERSION:=2.16.1 PKG_VERSION:=2.16.1
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/software/scm/git/ PKG_SOURCE_URL:=@KERNEL/software/scm/git/
@ -110,7 +110,9 @@ define Package/git/install
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin $(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/lib/git-core $(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 $(INSTALL_DIR) $(1)/usr/share/git-core/templates
( cd $(PKG_INSTALL_DIR); $(TAR) \ ( cd $(PKG_INSTALL_DIR); $(TAR) \
--exclude=usr/lib/git-core/git-http-backend \ --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-ftps \
--exclude=usr/lib/git-core/git-remote-http \ --exclude=usr/lib/git-core/git-remote-http \
--exclude=usr/lib/git-core/git-remote-https \ --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 - \ -cf - \
usr/lib/git-core \ usr/lib/git-core \
usr/share/git-core/templates \ usr/share/git-core/templates \


Loading…
Cancel
Save