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.

77 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:=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. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  37. USERID:=git=382:git=382
  38. endef
  39. define Package/gitolite/description
  40. Gitolite is a system for managing access to git repositories.
  41. See https://openwrt.org/docs/guide-user/services/gitolite for a guide
  42. to installation.
  43. NB: You will need an SSH server to use gitolite: dropbear is now sufficient
  44. for gitolite purposes.
  45. endef
  46. define Package/gitolite/postinst
  47. sed -i -e 's,/var/run/git,/srv/git,' $${IPKG_INSTROOT}/etc/passwd
  48. sed -i -e 's,git:\(.*\):/bin/false,git:\1:/bin/ash,' $${IPKG_INSTROOT}/etc/passwd
  49. sed -i -e 's,git:x:0:\(.*\)$$,git:x:99999:\1,' $${IPKG_INSTROOT}/etc/shadow
  50. endef
  51. define Build/Configure
  52. true
  53. endef
  54. define Build/Compile
  55. mkdir -p $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  56. $(PKG_BUILD_DIR)/install -to $(PKG_INSTALL_DIR)/usr/libexec/gitolite
  57. mkdir -p $(PKG_INSTALL_DIR)/usr/bin
  58. ln -sf /usr/libexec/gitolite/gitolite $(PKG_INSTALL_DIR)/usr/bin/gitolite
  59. endef
  60. define Package/gitolite/install
  61. $(INSTALL_DIR) $(1)
  62. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  63. endef
  64. $(eval $(call BuildPackage,gitolite))