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.

75 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. include $(INCLUDE_DIR)/package.mk
  15. define Package/gitolite
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Version Control Systems
  19. DEPENDS:= \
  20. +git \
  21. +perlbase-essential \
  22. +perlbase-data \
  23. +perlbase-digest \
  24. +perlbase-env \
  25. +perlbase-findbin \
  26. +perlbase-getopt \
  27. +perlbase-mime \
  28. +perlbase-storable \
  29. +perlbase-sys \
  30. +perlbase-text \
  31. +perlbase-time \
  32. +perlbase-utf8 \
  33. TITLE:=Easy administration of git repositories
  34. URL:=http://gitolite.com/gitolite
  35. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  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))