2014-06-16 11:39:30 +02:00
|
|
|
#
|
2018-01-11 14:51:47 +01:00
|
|
|
# Copyright (C) 2009-2018 OpenWrt.org
|
2014-06-16 11:39:30 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=git
|
2024-06-09 02:16:52 +02:00
|
|
|
PKG_VERSION:=2.45.2
|
2019-02-25 19:25:01 +01:00
|
|
|
PKG_RELEASE:=1
|
2014-06-16 11:39:30 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@KERNEL/software/scm/git/
|
2024-06-09 02:16:52 +02:00
|
|
|
PKG_HASH:=51bfe87eb1c02fed1484051875365eeab229831d30d0cec5d89a14f9e40e9adb
|
2020-06-12 05:50:25 +02:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_CPE_ID:=cpe:/a:git-scm:git
|
2014-06-16 11:39:30 +02:00
|
|
|
|
2015-03-08 06:32:02 +01:00
|
|
|
PKG_FIXUP:=autoreconf
|
2020-06-12 05:50:25 +02:00
|
|
|
PKG_INSTALL:=1
|
2018-05-30 01:07:15 +02:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-06-16 11:39:30 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2015-03-08 09:46:46 +01:00
|
|
|
define Package/git/Default
|
2014-06-16 11:39:30 +02:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Version Control Systems
|
2016-07-24 14:37:09 +02:00
|
|
|
DEPENDS:=+libopenssl +libpthread +librt +zlib
|
2018-11-27 21:54:36 +01:00
|
|
|
URL:=https://git-scm.com
|
2014-07-01 20:52:44 +02:00
|
|
|
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
2014-06-16 11:39:30 +02:00
|
|
|
endef
|
|
|
|
|
2015-03-08 09:46:46 +01:00
|
|
|
define Package/git
|
|
|
|
$(call Package/git/Default)
|
|
|
|
TITLE:=The fast version control system
|
|
|
|
endef
|
|
|
|
|
2014-06-16 11:39:30 +02:00
|
|
|
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
|
|
|
|
|
2015-03-08 09:46:46 +01:00
|
|
|
define Package/git-http
|
|
|
|
$(call Package/git/Default)
|
2018-09-17 00:00:04 +02:00
|
|
|
DEPENDS+= +git +libcurl
|
2015-03-08 09:46:46 +01:00
|
|
|
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
|
|
|
|
|
2016-10-23 20:51:15 +02:00
|
|
|
define Package/git-gitweb
|
|
|
|
$(call Package/git/Default)
|
|
|
|
TITLE:=Git repository web interface
|
2019-01-21 12:31:56 +01:00
|
|
|
DEPENDS+= +git \
|
|
|
|
+perl-cgi \
|
|
|
|
+perlbase-digest \
|
|
|
|
+perlbase-encode \
|
|
|
|
+perlbase-essential \
|
|
|
|
+perlbase-fcntl \
|
|
|
|
+perlbase-file \
|
|
|
|
+perlbase-filetest \
|
|
|
|
+perlbase-storable \
|
|
|
|
+perlbase-time
|
2016-10-23 20:51:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/git-gitweb/description
|
|
|
|
$(call Package/git/description)
|
|
|
|
This package builds the gitweb web interface for git repositories
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/git-gitweb/conffiles
|
|
|
|
/etc/gitweb.conf
|
|
|
|
endef
|
|
|
|
|
2014-06-16 11:39:30 +02:00
|
|
|
MAKE_FLAGS := \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
NO_EXPAT="YesPlease" \
|
|
|
|
NO_MKSTEMPS="YesPlease" \
|
|
|
|
NO_GETTEXT="YesPlease" \
|
|
|
|
NO_UNIX_SOCKETS="YesPlease" \
|
|
|
|
NO_ICONV="YesPlease" \
|
|
|
|
NO_NSEC="YesPlease" \
|
|
|
|
NO_PERL="YesPlease" \
|
|
|
|
NO_PYTHON="YesPlease" \
|
2015-03-08 09:46:46 +01:00
|
|
|
NO_TCLTK="YesPlease" \
|
|
|
|
NO_INSTALL_HARDLINKS="yes" \
|
2016-10-23 20:51:15 +02:00
|
|
|
gitwebdir="/www/cgi-bin" \
|
2017-10-31 13:16:49 +01:00
|
|
|
uname_S="Linux" \
|
2015-03-08 09:46:46 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-iconv \
|
2014-06-16 11:39:30 +02:00
|
|
|
|
2024-06-09 02:16:52 +02:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_fread_reads_directories=yes \
|
|
|
|
ac_cv_snprintf_returns_bogus=yes \
|
|
|
|
ac_cv_sane_mode_bits=no
|
|
|
|
|
2014-06-16 11:39:30 +02:00
|
|
|
define Build/Configure
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
configure
|
|
|
|
|
2015-03-08 06:32:02 +01:00
|
|
|
$(call Build/Configure/Default,)
|
2014-06-16 11:39:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-10-23 20:51:15 +02:00
|
|
|
define Build/Compile
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)/www/cgi-bin $(PKG_INSTALL_DIR)/www/gitweb
|
|
|
|
$(call Build/Compile/Default,DESTDIR=$(PKG_INSTALL_DIR) all install gitweb install-gitweb)
|
|
|
|
endef
|
|
|
|
|
2014-06-16 11:39:30 +02:00
|
|
|
define Package/git/install
|
|
|
|
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
|
2018-09-22 03:15:11 +02:00
|
|
|
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-shell
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2015-03-08 09:46:46 +01:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
2018-01-11 14:51:47 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/git-core/templates
|
2015-03-08 09:46:46 +01:00
|
|
|
( 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 \
|
2018-01-11 14:51:47 +01:00
|
|
|
usr/share/git-core/templates \
|
2015-03-08 09:46:46 +01:00
|
|
|
) | ( cd $(1); $(TAR) -xf - )
|
2018-09-22 03:15:11 +02:00
|
|
|
ln $(1)/usr/lib/git-core/git $(1)/usr/bin/git
|
|
|
|
ln $(1)/usr/lib/git-core/git-shell $(1)/usr/bin/git-shell
|
2015-03-08 09:46:46 +01:00
|
|
|
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
|
2014-06-16 11:39:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-10-23 20:51:15 +02:00
|
|
|
define Package/git-gitweb/install
|
|
|
|
$(INSTALL_DIR) $(1)/www/cgi-bin $(1)/www/gitweb
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/www/cgi-bin/gitweb.cgi $(1)/www/cgi-bin/
|
2023-02-16 10:20:13 +01:00
|
|
|
# work around https://lore.kernel.org/git/80eb3972-4960-5727-ce86-acc3a4425fd4@nic.cz/T/#u
|
|
|
|
$(SED) 's,^our @stylesheets .*,our @stylesheets = ("/gitweb/gitweb.css");,' $(1)/www/cgi-bin/gitweb.cgi
|
|
|
|
$(SED) 's,^our $$$$logo .*,our $$$$logo = "/gitweb/git-logo.png";,' $(1)/www/cgi-bin/gitweb.cgi
|
|
|
|
$(SED) 's,^our $$$$favicon .*,our $$$$favicon = "/gitweb/git-favicon.png";,' $(1)/www/cgi-bin/gitweb.cgi
|
|
|
|
$(SED) 's,^our $$$$javascript .*,our $$$$javascript = "/gitweb/gitweb.js";,' $(1)/www/cgi-bin/gitweb.cgi
|
2016-10-23 20:51:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/www/cgi-bin/static/* $(1)/www/gitweb/
|
|
|
|
endef
|
|
|
|
|
2014-06-16 11:39:30 +02:00
|
|
|
$(eval $(call BuildPackage,git))
|
2015-03-08 09:46:46 +01:00
|
|
|
$(eval $(call BuildPackage,git-http))
|
2016-10-23 20:51:15 +02:00
|
|
|
$(eval $(call BuildPackage,git-gitweb))
|