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.3 KiB

  1. #
  2. # Copyright (C) 2007-2017 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:=seafile-seahub
  9. PKG_VERSION:=6.3.4
  10. PKG_RELEASE:=3
  11. PKG_LICENSE:=Apache-2.0
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/haiwen/seahub/tar.gz/v$(PKG_VERSION)-server?
  14. PKG_HASH:=53a9efdb6791fd3a2a191e89cb0f133632056046ec08adbb2ad72088e6161430
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/seahub-$(PKG_VERSION)-server
  16. PKG_BUILD_DEPENDS:=python-pytz/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/python/python-package.mk
  19. define Package/seafile-seahub
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Seafile server - seahub component
  23. URL:=https://seafile.com/
  24. DEPENDS:=+python-simplejson +python +pillow +python-chardet +django +django-appconf \
  25. +django-compressor +django-constance +django-formtools +django-jsonfield \
  26. +django-picklefield +django-postoffice +django-restframework \
  27. +django-simple-captcha +django-statici18n +django-webpack-loader \
  28. +flup +gunicorn +openpyxl +python-dateutil +python-mysql \
  29. +python-qrcode +python-requests +python-requests-oauthlib +python-pytz
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/Default,locale)
  35. endef
  36. define Package/seafile-seahub/description
  37. The web end of seafile server.
  38. NOTE: in order to have better performance, localization support is turned off by default.
  39. Please set 'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
  40. endef
  41. define Package/seafile-seahub/install
  42. $(INSTALL_DIR) $(1)/usr/share/seafile/seafile-server/seahub
  43. $(CP) $(PKG_BUILD_DIR)/{locale,media,fabfile,seahub,sql,tests,thirdpart,tools} $(1)/usr/share/seafile/seafile-server/seahub/
  44. $(CP) $(PKG_BUILD_DIR)/*.{sh,template,py,txt} $(1)/usr/share/seafile/seafile-server/seahub/
  45. $(CP) $(PKG_BUILD_DIR)/{CONTRIBUTORS,HACKING,README.markdown} $(1)/usr/share/seafile/seafile-server/seahub/
  46. $(CP) $(PKG_BUILD_DIR)/pylintrc* $(1)/usr/share/seafile/seafile-server/seahub/
  47. find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
  48. $(SED) "s/\(SEAFILE_VERSION\s*=\s*\)'\([0-9]\.[0-9]\.[0-9]\)'/\1'$(PKG_VERSION)'/g" $(1)/usr/share/seafile/seafile-server/seahub/seahub/settings.py
  49. endef
  50. $(eval $(call BuildPackage,seafile-seahub))