mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
seafile: import version 5.1.1 and its dependencies
Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
This commit is contained in:
committed by
Etienne CHAMPETIER
parent
39e937fae7
commit
437621931a
+17
-116
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2007-2015 OpenWrt.org
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -8,14 +8,14 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=seafile-seahub
|
||||
PKG_VERSION:=4.1.2
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
PKG_VERSION:=5.1.1
|
||||
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:=3fb1288f920de03a4e2e6a06b60671ce98971742
|
||||
PKG_SOURCE_VERSION:=95f762f396c81f840fe658ab983df53784083bb1
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
@@ -27,117 +27,24 @@ define Package/seafile-seahub
|
||||
TITLE:=Seafile server - seahub component
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
URL:=http://seafile.com/
|
||||
DEPENDS:=+python +simplejson +pillow +python-setuptools
|
||||
endef
|
||||
|
||||
define Package/seafile-seahub/description
|
||||
The web end of seafile server.
|
||||
|
||||
NOTE: in order to have better performance, language support is turned off by default.
|
||||
Please set 'USE_I18N = True' in seahub_settings.py to support multiple languages.
|
||||
endef
|
||||
|
||||
PKG_BUILD_DEPENDS:=python-setuptools
|
||||
PYTHONPATH:=$(PYTHONPATH):$(PKG_BUILD_DIR)/thirdpart
|
||||
|
||||
define Download/django
|
||||
FILE=Django-1.5.8.tar.gz
|
||||
URL=https://www.djangoproject.com/m/releases/1.5/
|
||||
MD5SUM:=675fc736e2c29090f005e217ccf90b5b
|
||||
endef
|
||||
|
||||
define Download/djblets
|
||||
PROTO=git
|
||||
URL=https://github.com/djblets/djblets.git
|
||||
SUBDIR=djblets-0.6.14
|
||||
FILE=djblets-0.6.14.tar.gz
|
||||
VERSION=58c09bae9b71ac164f78c76746fd2e545aae6c68
|
||||
endef
|
||||
|
||||
define Download/gunicorn
|
||||
FILE=gunicorn-0.16.1.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/g/gunicorn/
|
||||
MD5SUM:=d53d5d04d941f2a3089e814e753a218f
|
||||
endef
|
||||
|
||||
define Download/six
|
||||
FILE=six-1.4.1.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/s/six/
|
||||
MD5SUM:=bdbb9e12d3336c198695aa4cf3a61d62
|
||||
endef
|
||||
|
||||
define Download/chardet
|
||||
FILE=chardet-2.1.1.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/c/chardet/
|
||||
MD5SUM:=295367fd210d20f3febda615a88e1ef0
|
||||
endef
|
||||
|
||||
define Download/flup
|
||||
FILE=flup-1.0.2-py2.6.egg
|
||||
URL=https://pypi.python.org/packages/2.6/f/flup/
|
||||
MD5SUM:=93ec6e3baeee3e5649a8456105178d4e
|
||||
endef
|
||||
|
||||
define Download/lockfile
|
||||
FILE=lockfile-0.9.1.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/l/lockfile/
|
||||
MD5SUM:=ce61468d4c1263e3005737bbed2641f0
|
||||
endef
|
||||
|
||||
define Download/python-daemon
|
||||
FILE=python-daemon-1.5.5.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/p/python-daemon/
|
||||
MD5SUM:=1f6cd41473c2e201021a0aeef395b2b1
|
||||
endef
|
||||
|
||||
define Download/python-dateutil
|
||||
FILE=python-dateutil-1.5.tar.gz
|
||||
URL=https://pypi.python.org/packages/source/p/python-dateutil/
|
||||
MD5SUM:=0dcb1de5e5cad69490a3b6ab63f0cfa5
|
||||
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
|
||||
# Download python dependencies
|
||||
$(eval $(call Download,django))
|
||||
$(eval $(call Download,djblets))
|
||||
$(eval $(call Download,gunicorn))
|
||||
$(eval $(call Download,six))
|
||||
$(eval $(call Download,chardet))
|
||||
$(eval $(call Download,flup))
|
||||
$(eval $(call Download,lockfile))
|
||||
$(eval $(call Download,python-daemon))
|
||||
$(eval $(call Download,python-dateutil))
|
||||
# Install python dependencies
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/Django-1.5.8.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/djblets-0.6.14.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/gunicorn-0.16.1.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/six-1.4.1.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/chardet-2.1.1.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/flup-1.0.2-py2.6.egg)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/lockfile-0.9.1.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/python-daemon-1.5.5.tar.gz)
|
||||
$(call HostPython,, \
|
||||
$(STAGING_DIR_ROOT)/usr/bin/easy_install -d $(PKG_BUILD_DIR)/thirdpart -Z -N \
|
||||
$(DL_DIR)/python-dateutil-1.5.tar.gz)
|
||||
$(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
|
||||
@@ -146,14 +53,8 @@ define Package/seafile-seahub/install
|
||||
$(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/
|
||||
# fix python exec path in scripts
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/share/seafile/seafile-server/seahub/thirdpart/chardetect.py
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/share/seafile/seafile-server/seahub/thirdpart/django-admin.py
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/share/seafile/seafile-server/seahub/thirdpart/gunicorn
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/share/seafile/seafile-server/seahub/thirdpart/gunicorn_django
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/share/seafile/seafile-server/seahub/thirdpart/gunicorn_paster
|
||||
find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
|
||||
sed -i "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
|
||||
$(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))
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
diff -rupN seafile-seahub-5.1.1.orig/Makefile seafile-seahub-5.1.1/Makefile
|
||||
--- seafile-seahub-5.1.1.orig/Makefile 2016-04-26 23:59:48.000000000 +0200
|
||||
+++ seafile-seahub-5.1.1/Makefile 2016-04-28 09:03:35.507105416 +0200
|
||||
@@ -1,3 +1,6 @@
|
||||
+include $(TOPDIR)/rules.mk
|
||||
+$(call include_mk, python-package.mk)
|
||||
+
|
||||
PROJECT=seahub
|
||||
|
||||
develop: setup-git
|
||||
@@ -9,7 +12,7 @@ dist: locale uglify statici18n collectst
|
||||
|
||||
locale:
|
||||
@echo "--> Compile locales"
|
||||
- django-admin.py compilemessages
|
||||
+ $(call HostPython,,$(STAGING_DIR)/usr/bin/django-admin.py compilemessages)
|
||||
@echo ""
|
||||
|
||||
uglify:
|
||||
@@ -19,7 +22,7 @@ uglify:
|
||||
|
||||
statici18n:
|
||||
@echo "--> Generate JS locale files in static/scripts/i18n"
|
||||
- python manage.py compilejsi18n
|
||||
+ $(call HostPython,,manage.py compilejsi18n)
|
||||
|
||||
collectstatic:
|
||||
@echo "--> Collect django static files to media/assets"
|
||||
Reference in New Issue
Block a user