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
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)-2
13 PKG_LICENSE
:=Apache-2.0
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 PKG_MIRROR_HASH
:=69e90cff3bb63967bca1bd04c8e25ff6f89aa5dba595df29854115c3560d9804
22 include $(INCLUDE_DIR
)/package.mk
23 $(call include_mk
, python-package.mk
)
25 define Package
/seafile-seahub
28 TITLE
:=Seafile server
- seahub component
29 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
30 URL
:=http
://seafile.com
/
31 DEPENDS
:=+simplejson
+python
+pillow
+chardet
+django
+django-appconf \
32 +django-compressor
+django-constance
+django-jsonfield
+django-picklefield \
33 +django-postoffice
+django-restframework
+django-statici18n
+et_xmlfile \
34 +flup
+gunicorn
+jdcal
+openpyxl
+python-dateutil
+python-mysql
+pytz
+rcssmin
37 define Build
/Configure
41 $(call Build
/Compile
/Default
,locale
)
44 define Package
/seafile-seahub
/description
45 The web end of seafile server.
47 NOTE
: in order to have better performance
, localization support is turned off by default.
48 Please set
'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
51 define Package
/seafile-seahub
/install
52 $(INSTALL_DIR
) $(1)/usr
/share
/seafile
/seafile-server
/seahub
53 $(CP
) $(PKG_BUILD_DIR
)/{locale
,media
,fabfile
,seahub
,sql
,tests
,thirdpart
,tools
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
54 $(CP
) $(PKG_BUILD_DIR
)/*.
{sh
,template
,py
,txt
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
55 $(CP
) $(PKG_BUILD_DIR
)/{CONTRIBUTORS
,HACKING
,README.markdown
} $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
56 $(CP
) $(PKG_BUILD_DIR
)/pylintrc
* $(1)/usr
/share
/seafile
/seafile-server
/seahub
/
57 find
$(1) -name
"*\.pyc" -o
-name
"*\.pyo" | xargs
rm -f
58 $(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
61 $(eval
$(call BuildPackage
,seafile-seahub
))