You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2009-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gitolite
  9. PKG_VERSION:=3.6.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.xz
  13. PKG_MIRROR_HASH:=652d3b3f8ed93b8ef56153337465cc7260974e5cd2653e949da1bb97a8421ea0
  14. PKG_SOURCE_URL:=https://github.com/sitaramc/gitolite.git
  15. PKG_SOURCE_VERSION:=e126e97a4d5575821f89ae80dac402b017db94aa
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gitolite
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Version Control Systems
  23. DEPENDS:=+perlbase-essential +perlbase-sys +perlbase-data +perlbase-digest +perlbase-env +perlbase-time +git +perlbase-findbin +perlbase-storable +perlbase-text +perlbase-getopt +perlbase-utf8 +openssh-keygen +openssh-server +openssh-moduli perl
  24. TITLE:=Easy administration of git repositories
  25. URL:=http://gitolite.com/gitlolite
  26. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  27. USERID:=git=382:git=382
  28. endef
  29. define Package/gitolite/description
  30. Gitolite is a system for managing access to git repositories. Note you will need to make
  31. sure dropbear does not interfere with OpenSSH as gitolite depends on feature not in
  32. dropbear (to my knowledge).
  33. See https://openwrt.org/docs/guide-user/services/gitolite for a guide on installation.
  34. endef
  35. define Package/gitolite/postinst
  36. sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
  37. sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
  38. sed -i -e 's,git:x:0:\(.*\)$$,git:x:99999:\1,' $${IPKG_INSTROOT}/etc/shadow
  39. endef
  40. define Build/Configure
  41. true
  42. endef
  43. define Build/Compile
  44. mkdir -p $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  45. $(PKG_BUILD_DIR)/install -to $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  46. mkdir -p $(PKG_INSTALL_DIR)/usr/bin
  47. ln -sf /usr/libexec/gitolite/gitolite $(PKG_INSTALL_DIR)/usr/bin/gitolite
  48. endef
  49. define Package/gitolite/install
  50. $(INSTALL_DIR) $(1)
  51. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  52. endef
  53. $(eval $(call BuildPackage,gitolite))