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.

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