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.

76 lines
1.9 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:=2
  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. PKG_CPE_ID:=cpe:/a:sitaram_chamarty:gitolite
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/gitolite
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Version Control Systems
  20. DEPENDS:= \
  21. +git \
  22. +perlbase-essential \
  23. +perlbase-data \
  24. +perlbase-digest \
  25. +perlbase-env \
  26. +perlbase-findbin \
  27. +perlbase-getopt \
  28. +perlbase-mime \
  29. +perlbase-storable \
  30. +perlbase-sys \
  31. +perlbase-text \
  32. +perlbase-time \
  33. +perlbase-utf8 \
  34. TITLE:=Easy administration of git repositories
  35. URL:=http://gitolite.com/gitolite
  36. USERID:=git=382:git=382
  37. endef
  38. define Package/gitolite/description
  39. Gitolite is a system for managing access to git repositories.
  40. See https://openwrt.org/docs/guide-user/services/gitolite for a guide
  41. to installation.
  42. NB: You will need an SSH server to use gitolite: dropbear is now sufficient
  43. for gitolite purposes.
  44. endef
  45. define Package/gitolite/postinst
  46. sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
  47. sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
  48. sed -i -e 's,git:x:0:\(.*\)$$,git:x:99999:\1,' $${IPKG_INSTROOT}/etc/shadow
  49. endef
  50. define Build/Configure
  51. true
  52. endef
  53. define Build/Compile
  54. mkdir -p $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  55. $(PKG_BUILD_DIR)/install -to $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  56. mkdir -p $(PKG_INSTALL_DIR)/usr/bin
  57. ln -sf /usr/libexec/gitolite/gitolite $(PKG_INSTALL_DIR)/usr/bin/gitolite
  58. endef
  59. define Package/gitolite/install
  60. $(INSTALL_DIR) $(1)
  61. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  62. endef
  63. $(eval $(call BuildPackage,gitolite))