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