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