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.

62 lines
2.0 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.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.xz
  13. PKG_MIRROR_HASH:=b2d96c36682391f45c63b21a91fbe77a969a7b362417c851dd0091a06fcc74d9
  14. PKG_SOURCE_URL:=https://github.com/sitaramc/gitolite.git
  15. PKG_SOURCE_VERSION:=908f8c6f3b8ef5b95829be7155be2557e71f4579
  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. endef
  34. define Package/gitolite/postinst
  35. sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
  36. sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
  37. endef
  38. define Build/Configure
  39. true
  40. endef
  41. define Build/Compile
  42. mkdir -p $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  43. $(PKG_BUILD_DIR)/install -to $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  44. mkdir -p $(PKG_INSTALL_DIR)/usr/bin
  45. ln -sf /usr/libexec/gitolite/gitolite $(PKG_INSTALL_DIR)/usr/bin/gitolite
  46. endef
  47. define Package/gitolite/install
  48. $(INSTALL_DIR) $(1)
  49. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  50. endef
  51. $(eval $(call BuildPackage,gitolite))