Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2007-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:=seafile-seahub
  9. PKG_VERSION:=5.1.4
  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:=1e1c02aa4f2a0256ffa29a28224aad2d678f43a0
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/seafile-seahub
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Seafile server - seahub component
  23. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  24. URL:=http://seafile.com/
  25. DEPENDS:=+simplejson +python +pillow +chardet +django +django-appconf \
  26. +django-compressor +django-constance +django-jsonfield +django-picklefield \
  27. +django-postoffice +django-restframework +django-statici18n +et_xmlfile \
  28. +flup +gunicorn +jdcal +openpyxl +python-dateutil +python-mysql +pytz +rcssmin
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/Default,locale)
  34. endef
  35. define Package/seafile-seahub/description
  36. The web end of seafile server.
  37. NOTE: in order to have better performance, localization support is turned off by default.
  38. Please set 'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
  39. endef
  40. define Package/seafile-seahub/install
  41. $(INSTALL_DIR) $(1)/usr/share/seafile/seafile-server/seahub
  42. $(CP) $(PKG_BUILD_DIR)/{locale,media,fabfile,seahub,sql,tests,thirdpart,tools} $(1)/usr/share/seafile/seafile-server/seahub/
  43. $(CP) $(PKG_BUILD_DIR)/*.{sh,template,py,txt} $(1)/usr/share/seafile/seafile-server/seahub/
  44. $(CP) $(PKG_BUILD_DIR)/{CONTRIBUTORS,HACKING,README.markdown} $(1)/usr/share/seafile/seafile-server/seahub/
  45. $(CP) $(PKG_BUILD_DIR)/pylintrc* $(1)/usr/share/seafile/seafile-server/seahub/
  46. find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
  47. $(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
  48. endef
  49. $(eval $(call BuildPackage,seafile-seahub))