2 # Copyright (C) 2007-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=seafile-seahub
13 PKG_LICENSE
:=Apache-2.0
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://codeload.github.com
/haiwen
/seahub
/tar.gz
/v
$(PKG_VERSION
)-server?
17 PKG_HASH
:=53a9efdb6791fd3a2a191e89cb0f133632056046ec08adbb2ad72088e6161430
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/seahub-
$(PKG_VERSION
)-server
20 PKG_BUILD_DEPENDS
:=python-pytz
/host
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/..
/lang
/python
/python-package.mk
25 define Package
/seafile-seahub
28 TITLE
:=Seafile server
- seahub component
29 URL
:=https
://seafile.com
/
30 DEPENDS
:=+python-simplejson
+python
+pillow
+python-chardet
+django
+django-appconf \
31 +django-compressor
+django-constance
+django-formtools
+django-jsonfield \
32 +django-picklefield
+django-postoffice
+django-restframework \
33 +django-simple-captcha
+django-statici18n
+django-webpack-loader \
34 +flup
+gunicorn
+openpyxl
+python-dateutil
+python-mysql \
35 +python-qrcode
+python-requests
+python-requests-oauthlib
+python-pytz
38 define Build
/Configure
42 $(call Build
/Compile
/Default
,locale
)
45 define Package
/seafile-seahub
/description
46 The web end of seafile server.
48 NOTE
: in order to have better performance
, localization support is turned off by default.
49 Please set
'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
52 define Package
/seafile-seahub
/install
53 $(INSTALL_DIR
) $(1)/usr
/share
/seafile
/seafile-server
/seahub
54 $(CP
) $(PKG_BUILD_DIR
)/{locale
,media
,fabfile
,seahub
,sql
,tests
,thirdpart
,tools
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
55 $(CP
) $(PKG_BUILD_DIR
)/*.
{sh
,template
,py
,txt
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
56 $(CP
) $(PKG_BUILD_DIR
)/{CONTRIBUTORS
,HACKING
,README.markdown
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
57 $(CP
) $(PKG_BUILD_DIR
)/pylintrc
* $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
58 find
$(1) -name
"*\.pyc" -o
-name
"*\.pyo" | xargs
rm -f
59 $(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
62 $(eval
$(call BuildPackage
,seafile-seahub
))