Hi, this patch adds the package cgit, a cgi tool to browse git repositories.
G, Bastian
Index: net/cgit/patches/100_pass_flags_to_git.patch =================================================================== --- net/cgit/patches/100_pass_flags_to_git.patch (Revision 0) +++ net/cgit/patches/100_pass_flags_to_git.patch (Revision 0) @@ -0,0 +1,13 @@ +--- cgit-0.8.3.4-orig/Makefile 2010-09-27 08:00:47.000000000 +0200 ++++ cgit-0.8.3.4/Makefile 2010-11-17 16:24:43.249921002 +0100 +@@ -132,8 +132,8 @@ + -include $(OBJECTS:.o=.d) + + libgit: +- $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 libgit.a +- $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 xdiff/lib.a ++ $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" libgit.a ++ $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" xdiff/lib.a + + test: all + $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all Index: net/cgit/Makefile =================================================================== --- net/cgit/Makefile (Revision 0) +++ net/cgit/Makefile (Revision 0) @@ -0,0 +1,55 @@ +# +# Copyright (C) 2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + + +include $(TOPDIR)/rules.mk + +PKG_NAME:=cgit +PKG_VERSION:=0.8.3.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://hjemli.net/git/cgit/snapshot +PKG_MD5SUM:=712e4d3013d754aa5752e0101188cf32 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/cgit + SECTION:=net + CATEGORY:=Network + SUBMENU:=Version Control Systems + DEPENDS:=+libopenssl + TITLE:=a web frontend for git repositories + URL:=http://hjemli.net/git/cgit/ +endef + +define Package/cgit/description + This is an attempt to create a fast web interface for the git scm, using a + builtin cache to decrease server io-pressure. +endef + +MAKE_FLAGS += \ + CGIT_SCRIPT_PATH="/usr/lib/cgit" \ + NO_EXPAT="YesPlease" \ + NO_ICONV="YesPlease" \ + NO_NSEC="YesPlease" \ + NO_MKSTEMPS="YesPlease" \ + +define get_git + $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) get-git +endef + +Hooks/Compile/Pre += get_git + +define Package/cgit/install + $(INSTALL_DIR) $(1) + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +$(eval $(call BuildPackage,cgit))
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel