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.

60 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.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_HASH:=2166a61b14de19e605b14f4a13a070fbfd5ecd247b6fd725108f111198a2c121
  13. PKG_SOURCE_URL:=https://codeload.github.com/sitaramc/gitolite/tar.gz/v$(PKG_VERSION)?
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/gitolite
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Version Control Systems
  19. 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
  20. TITLE:=Easy administration of git repositories
  21. URL:=http://gitolite.com/gitolite
  22. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  23. USERID:=git=382:git=382
  24. endef
  25. define Package/gitolite/description
  26. Gitolite is a system for managing access to git repositories. Note you will need to make
  27. sure dropbear does not interfere with OpenSSH as gitolite depends on feature not in
  28. dropbear (to my knowledge).
  29. See https://openwrt.org/docs/guide-user/services/gitolite for a guide on installation.
  30. endef
  31. define Package/gitolite/postinst
  32. sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
  33. sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
  34. sed -i -e 's,git:x:0:\(.*\)$$,git:x:99999:\1,' $${IPKG_INSTROOT}/etc/shadow
  35. endef
  36. define Build/Configure
  37. true
  38. endef
  39. define Build/Compile
  40. mkdir -p $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  41. $(PKG_BUILD_DIR)/install -to $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  42. mkdir -p $(PKG_INSTALL_DIR)/usr/bin
  43. ln -sf /usr/libexec/gitolite/gitolite $(PKG_INSTALL_DIR)/usr/bin/gitolite
  44. endef
  45. define Package/gitolite/install
  46. $(INSTALL_DIR) $(1)
  47. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  48. endef
  49. $(eval $(call BuildPackage,gitolite))