123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #
- # Copyright (C) 2007-2016 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=seafile-seahub
- PKG_VERSION:=5.1.4
- PKG_RELEASE=$(PKG_SOURCE_VERSION)-1
- PKG_LICENSE:=Apache-2.0
- PKG_SOURCE_PROTO:=git
- PKG_SOURCE_URL:=https://github.com/haiwen/seahub.git
- PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
- PKG_SOURCE_VERSION:=1e1c02aa4f2a0256ffa29a28224aad2d678f43a0
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
- include $(INCLUDE_DIR)/package.mk
- $(call include_mk, python-package.mk)
- define Package/seafile-seahub
- SECTION:=net
- CATEGORY:=Network
- TITLE:=Seafile server - seahub component
- MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
- URL:=http://seafile.com/
- DEPENDS:=+simplejson +python +pillow +chardet +django +django-appconf \
- +django-compressor +django-constance +django-jsonfield +django-picklefield \
- +django-postoffice +django-restframework +django-statici18n +et_xmlfile \
- +flup +gunicorn +jdcal +openpyxl +python-dateutil +python-mysql +pytz +rcssmin
- endef
- define Build/Configure
- endef
- define Build/Compile
- $(call Build/Compile/Default,locale)
- endef
- define Package/seafile-seahub/description
- The web end of seafile server.
- NOTE: in order to have better performance, localization support is turned off by default.
- Please set 'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
- endef
- define Package/seafile-seahub/install
- $(INSTALL_DIR) $(1)/usr/share/seafile/seafile-server/seahub
- $(CP) $(PKG_BUILD_DIR)/{locale,media,fabfile,seahub,sql,tests,thirdpart,tools} $(1)/usr/share/seafile/seafile-server/seahub/
- $(CP) $(PKG_BUILD_DIR)/*.{sh,template,py,txt} $(1)/usr/share/seafile/seafile-server/seahub/
- $(CP) $(PKG_BUILD_DIR)/{CONTRIBUTORS,HACKING,README.markdown} $(1)/usr/share/seafile/seafile-server/seahub/
- $(CP) $(PKG_BUILD_DIR)/pylintrc* $(1)/usr/share/seafile/seafile-server/seahub/
- find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
- $(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
- endef
- $(eval $(call BuildPackage,seafile-seahub))
|