Index: Makefile =================================================================== --- Makefile (revision 7) +++ Makefile (working copy) @@ -1,52 +1,58 @@ # $FreeBSD$ -PORTNAME= seahub +PORTNAME= seahub PORTVERSION= 3.1.5 -CATEGORIES= www +CATEGORIES= www -MAINTAINER= yan_jingfeng@yahoo.com -COMMENT= Seahub is the web frontend for Seafile +MAINTAINER= yan_jingfeng@yahoo.com +COMMENT= Web frontend for Seafile -LICENSE= APACHE20 +LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt RUN_DEPENDS+= seaf-server:${PORTSDIR}/www/seafile \ - ${PYTHON_PKGNAMEPREFIX}django15>=1.1.1:${PORTSDIR}/www/py-django15 \ - ${PYTHON_PKGNAMEPREFIX}djblets06>0:${PORTSDIR}/www/py-djblets06 \ - ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet \ - ${PYTHON_PKGNAMEPREFIX}daemon>0:${PORTSDIR}/devel/py-daemon \ - ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup \ - ${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn \ - ${PYTHON_PKGNAMEPREFIX}lockfile>0:${PORTSDIR}/devel/py-lockfile \ - ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \ - ${PYTHON_PKGNAMEPREFIX}selenium>=2.24.0:${PORTSDIR}/www/py-selenium \ - ${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:${PORTSDIR}/www/py-requests + ${PYTHON_PKGNAMEPREFIX}django15>=1.1.1:${PORTSDIR}/www/py-django15 \ + ${PYTHON_PKGNAMEPREFIX}djblets06>0:${PORTSDIR}/www/py-djblets06 \ + ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet \ + ${PYTHON_PKGNAMEPREFIX}daemon>0:${PORTSDIR}/devel/py-daemon \ + ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup \ + ${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn \ + ${PYTHON_PKGNAMEPREFIX}lockfile>0:${PORTSDIR}/devel/py-lockfile \ + ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \ + ${PYTHON_PKGNAMEPREFIX}selenium>=2.24.0:${PORTSDIR}/www/py-selenium \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:${PORTSDIR}/www/py-requests \ + bash:${PORTSDIR}/shells/bash -USE_GITHUB= yes -GH_ACCOUNT= haiwen -GH_PROJECT= seahub -GH_TAGNAME= ${GH_COMMIT} -GH_COMMIT= 800774b +USE_GITHUB= yes +GH_ACCOUNT= haiwen +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 800774b -USES= python:2 +USES= python:2 shebangfix -NO_BUILD= yes +NO_BUILD= yes -OPTIONS_DEFINE= SEAFOBJ SEAFDAV -SEAFOBJ_DESC= option seafobj support +OPTIONS_DEFINE= SEAFOBJ SEAFDAV NLS +SEAFOBJ_DESC= Enable Seafile file object modeling support SEAFOBJ_CONFIGURE_WITH= seaobj SEAFOBJ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}seafobj>0:${PORTSDIR}/www/py-seafobj -SEAFDAV_DESC= option seafdav support +SEAFDAV_DESC= Enable Seafile WsgiDav-based support SEAFDAV_CONFIGURE_WITH= seafdav SEAFDAV_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}seafdav>0:${PORTSDIR}/www/py-seafdav -OPTIONS_DEFAULT= SEAFOBJ SEAFDAV +OPTIONS_SUB= yes +NLS_USES= gettext iconv +NLS_CONFIGURE_OFF= --disable-nls -HAIWENDIR= ${PREFIX}/www/haiwen/ -SEAHUBDIR= ${HAIWENDIR}seafile-server/seahub/ +OPTIONS_DEFAULT=SEAFOBJ SEAFDAV +HAIWENDIR= ${PREFIX}/www/haiwen/ +SEAHUBDIR= ${HAIWENDIR}seafile-server/seahub/ + post-extract: - @${MKDIR} -p ${WRKSRC}/runtime + @${RM} ${WRKSRC}/.gitignore + @${MKDIR} ${WRKSRC}/runtime @${CP} ${FILESDIR}/runtime_seahub.conf ${WRKSRC}/runtime/seahub.conf post-patch: @@ -57,12 +63,13 @@ @${REINPLACE_CMD} -e 's|##FIX_LOCALBASE##|${LOCALBASE}|' ${WRKSRC}/*.template do-install: - @${ECHO_MSG} -n ">>> Installing scripts..." - @${MKDIR} -p -m 0755 ${STAGEDIR}${HAIWENDIR}seafile-server/runtime/ + @${ECHO_MSG} ">>> Installing scripts..." + @${MKDIR} -m 0755 ${STAGEDIR}${HAIWENDIR}seafile-server/runtime/ @${INSTALL} -m 0755 ${WRKSRC}/runtime/seahub.conf \ ${STAGEDIR}${HAIWENDIR}seafile-server/runtime/ - @${MKDIR} -p -m 0755 ${STAGEDIR}${SEAHUBDIR} - @cd ${WRKSRC} && \ - ${COPYTREE_SHARE} . ${STAGEDIR}${SEAHUBDIR} + @${MKDIR} -m 0755 ${STAGEDIR}${SEAHUBDIR} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${SEAHUBDIR} + @${FIND} ${STAGEDIR}${SEAHUBDIR} -name "*.bak" -exec ${RM} {} \; + @${FIND} ${STAGEDIR}${SEAHUBDIR} -name "*.orig" -exec ${RM} {} \; .include Index: pkg-plist =================================================================== --- pkg-plist (revision 7) +++ pkg-plist (working copy) @@ -1,5 +1,4 @@ www/haiwen/seafile-server/runtime/seahub.conf -www/haiwen/seafile-server/seahub/.gitignore www/haiwen/seafile-server/seahub/.tx/config www/haiwen/seafile-server/seahub/CONTRIBUTORS www/haiwen/seafile-server/seahub/HACKING @@ -32,7 +31,6 @@ www/haiwen/seafile-server/seahub/locale/zh_CN/LC_MESSAGES/django.po www/haiwen/seafile-server/seahub/locale/zh_TW/LC_MESSAGES/django.po www/haiwen/seafile-server/seahub/makemessages.sh.template -www/haiwen/seafile-server/seahub/makemessages.sh.template.bak www/haiwen/seafile-server/seahub/manage.py www/haiwen/seafile-server/seahub/media/avatars/default-non-register.jpg www/haiwen/seafile-server/seahub/media/avatars/default.png @@ -375,10 +373,8 @@ www/haiwen/seafile-server/seahub/media/rest_framework/js/prettify-min.js www/haiwen/seafile-server/seahub/pylintrc www/haiwen/seafile-server/seahub/pylintrc.template -www/haiwen/seafile-server/seahub/pylintrc.template.bak www/haiwen/seafile-server/seahub/run-fts.sh www/haiwen/seafile-server/seahub/run-seahub.sh.template -www/haiwen/seafile-server/seahub/run-seahub.sh.template.bak www/haiwen/seafile-server/seahub/runtime/seahub.conf www/haiwen/seafile-server/seahub/seahub/__init__.py www/haiwen/seafile-server/seahub/seahub/api2/__init__.py @@ -818,11 +814,7 @@ www/haiwen/seafile-server/seahub/seahub/wiki/utils.py www/haiwen/seafile-server/seahub/seahub/wsgi.py www/haiwen/seafile-server/seahub/send_user_notifications.sh.template -www/haiwen/seafile-server/seahub/send_user_notifications.sh.template.bak -www/haiwen/seafile-server/seahub/send_user_notifications.sh.template.orig www/haiwen/seafile-server/seahub/setenv.sh.template -www/haiwen/seafile-server/seahub/setenv.sh.template.bak -www/haiwen/seafile-server/seahub/setenv.sh.template.orig www/haiwen/seafile-server/seahub/sql/README.md www/haiwen/seafile-server/seahub/sql/mysql.sql www/haiwen/seafile-server/seahub/sql/sqlite3.sql @@ -832,7 +824,6 @@ www/haiwen/seafile-server/seahub/subdomain/tests.py www/haiwen/seafile-server/seahub/subdomain/views.py www/haiwen/seafile-server/seahub/test-seahub.sh.template -www/haiwen/seafile-server/seahub/test-seahub.sh.template.bak www/haiwen/seafile-server/seahub/thirdpart/captcha/__init__.py www/haiwen/seafile-server/seahub/thirdpart/captcha/conf/__init__.py www/haiwen/seafile-server/seahub/thirdpart/captcha/conf/settings.py @@ -877,51 +868,51 @@ www/haiwen/seafile-server/seahub/thirdpart/registration/backends/default/__init__.py www/haiwen/seafile-server/seahub/thirdpart/registration/backends/default/urls.py www/haiwen/seafile-server/seahub/thirdpart/registration/forms.py -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ar/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ar/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ar/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/bg/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/bg/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/bg/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/da/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/da/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/da/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/de/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/de/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/de/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/el/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/el/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/el/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/en/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/en/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/en/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es_AR/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es_AR/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/es_AR/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/fr/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/fr/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/fr/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/he/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/he/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/he/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/is/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/is/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/is/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/it/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/it/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/it/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ja/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ja/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ja/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ko/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ko/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ko/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/nl/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/nl/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/nl/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pl/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pl/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pl/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pt_BR/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pt_BR/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/pt_BR/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ru/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ru/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/ru/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sl/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sl/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sl/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sr/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sr/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sr/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sv/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sv/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/sv/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_CN/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_CN/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_CN/LC_MESSAGES/django.po -www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_TW/LC_MESSAGES/django.mo +%%NLS%%www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_TW/LC_MESSAGES/django.mo www/haiwen/seafile-server/seahub/thirdpart/registration/locale/zh_TW/LC_MESSAGES/django.po www/haiwen/seafile-server/seahub/thirdpart/registration/management/__init__.py www/haiwen/seafile-server/seahub/thirdpart/registration/management/commands/__init__.py