mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
git: add subpackage for http(s)/ftp(s) commands
This patch add a new package, git-http, that contains all http related commands (and ftp as extra). All http/ftp depends on libcurl. Even without SSL suport in libcurl, git compiles and it returns an informative error only at runtime. The use of symlinks now are trigged using NO_INSTALL_HARDLINKS env and not based only on Makefile patch. imap-send was kept builtin and idependent of curl (just as it was before) Template files, which are not necessary, where removed. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
+50
-6
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=git
|
||||
PKG_VERSION:=2.3.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@KERNEL/software/scm/git/
|
||||
@@ -21,7 +21,7 @@ PKG_FIXUP:=autoreconf
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/git
|
||||
define Package/git/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Version Control Systems
|
||||
@@ -31,18 +31,35 @@ define Package/git
|
||||
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
||||
endef
|
||||
|
||||
define Package/git
|
||||
$(call Package/git/Default)
|
||||
DEPENDS:=+libopenssl +libpthread +librt
|
||||
TITLE:=The fast version control system
|
||||
endef
|
||||
|
||||
define Package/git/description
|
||||
Git is a free & open source, distributed version control system
|
||||
designed to handle everything from small to very large projects
|
||||
with speed and efficiency.
|
||||
endef
|
||||
|
||||
define Package/git-http
|
||||
$(call Package/git/Default)
|
||||
DEPENDS:=git +libcurl +ca-certificates
|
||||
TITLE:=Git HTTP commands
|
||||
endef
|
||||
|
||||
define Package/git-http/description
|
||||
$(call Package/git/description)
|
||||
|
||||
This package allows git push/fetch over http(s) and ftp(s)
|
||||
endef
|
||||
|
||||
MAKE_FLAGS := \
|
||||
CC="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
NO_CURL="YesPlease" \
|
||||
NO_EXPAT="YesPlease" \
|
||||
NO_MKSTEMPS="YesPlease" \
|
||||
NO_GETTEXT="YesPlease" \
|
||||
@@ -52,7 +69,11 @@ MAKE_FLAGS := \
|
||||
NO_NSEC="YesPlease" \
|
||||
NO_PERL="YesPlease" \
|
||||
NO_PYTHON="YesPlease" \
|
||||
NO_TCLTK="YesPlease"
|
||||
NO_TCLTK="YesPlease" \
|
||||
NO_INSTALL_HARDLINKS="yes" \
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--without-iconv \
|
||||
|
||||
define Build/Configure
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
@@ -62,9 +83,32 @@ define Build/Configure
|
||||
endef
|
||||
|
||||
define Package/git/install
|
||||
$(INSTALL_DIR) $(1)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git $(1)/usr/bin
|
||||
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
|
||||
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
||||
( cd $(PKG_INSTALL_DIR); $(TAR) \
|
||||
--exclude=usr/lib/git-core/git-http-backend \
|
||||
--exclude=usr/lib/git-core/git-http-fetch \
|
||||
--exclude=usr/lib/git-core/git-remote-ftp \
|
||||
--exclude=usr/lib/git-core/git-remote-ftps \
|
||||
--exclude=usr/lib/git-core/git-remote-http \
|
||||
--exclude=usr/lib/git-core/git-remote-https \
|
||||
-cf - \
|
||||
usr/lib/git-core \
|
||||
) | ( cd $(1); $(TAR) -xf - )
|
||||
endef
|
||||
|
||||
define Package/git-http/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-http-backend $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-http-fetch $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-ftp $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-ftps $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-http $(1)/usr/lib/git-core
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-https $(1)/usr/lib/git-core
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,git))
|
||||
$(eval $(call BuildPackage,git-http))
|
||||
|
||||
Reference in New Issue
Block a user