View | Details | Raw Unified | Return to bug 196919 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +22 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	seafobj
3
PORTNAME=	seafobj
4
PORTVERSION=	3.0.4
4
PORTVERSION=	3.0.4
5
PORTREVISION=	1
5
CATEGORIES=	www python
6
CATEGORIES=	www python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
Lines 18-31 Link Here
18
NO_BUILD=	yes
19
NO_BUILD=	yes
19
USES=		python:2
20
USES=		python:2
20
21
22
WWWDIR=		${PREFIX}/www/haiwen
23
SEAFILE_SERVER=	${WWWDIR}/seafile-server
24
SEAHUBDIR=	${SEAFILE_SERVER}/seahub
25
SITEPACKAGEDIR=	${SEAHUBDIR}/thirdpart
26
27
SEAFILE_USERNAME?=	www
28
SEAFILE_GROUPNAME?=	${SEAFILE_USERNAME}
29
30
PLIST_SUB=      SEAFILE_USERNAME=${SEAFILE_USERNAME} \
31
		SEAFILE_GROUPNAME=${SEAFILE_GROUPNAME} \
32
		SEAFILE_SERVER=${SEAFILE_SERVER} \
33
		SEAHUBDIR=${SEAHUBDIR} \
34
		SITEPACKAGEDIR=${SITEPACKAGEDIR}
35
21
do-install:
36
do-install:
22
	@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/seafobj
37
	@${MKDIR} ${STAGEDIR}${SITEPACKAGEDIR}/seafobj
23
	(cd ${WRKSRC}/seafobj && \
38
	(cd ${WRKSRC}/seafobj && \
24
		${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/seafobj)
25
	(cd ${STAGEDIR}${PREFIX} && \
26
		${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
39
		${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
27
			-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \
40
			-d ${WRKSRC}/seafobj \
41
			-f ${WRKSRC}/seafobj && \
28
		${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
42
		${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
29
			-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
43
			-d ${WRKSRC}/seafobj \
44
			-f ${WRKSRC}/seafobj)
45
	(cd ${WRKSRC}/seafobj && \
46
		${COPYTREE_SHARE} . ${STAGEDIR}${SITEPACKAGEDIR}/seafobj)
30
47
31
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)pkg-plist (-39 / +50 lines)
Lines 1-39 Link Here
1
%%PYTHON_SITELIBDIR%%/seafobj/__init__.py
1
@owner %%SEAFILE_USERNAME%%
2
%%PYTHON_SITELIBDIR%%/seafobj/__init__.pyc
2
@group %%SEAFILE_GROUPNAME%%
3
%%PYTHON_SITELIBDIR%%/seafobj/__init__.pyo
3
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/__init__.py
4
%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.py
4
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/__init__.pyc
5
%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.pyc
5
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/__init__.pyo
6
%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.pyo
6
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/__init__.py
7
%%PYTHON_SITELIBDIR%%/seafobj/backends/base.py
7
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/__init__.pyc
8
%%PYTHON_SITELIBDIR%%/seafobj/backends/base.pyc
8
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/__init__.pyo
9
%%PYTHON_SITELIBDIR%%/seafobj/backends/base.pyo
9
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/base.py
10
%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.py
10
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/base.pyc
11
%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.pyc
11
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/base.pyo
12
%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.pyo
12
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/ceph.py
13
%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.py
13
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/ceph.pyc
14
%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.pyc
14
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/ceph.pyo
15
%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.pyo
15
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/filesystem.py
16
%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.py
16
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/filesystem.pyc
17
%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.pyc
17
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/filesystem.pyo
18
%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.pyo
18
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/s3.py
19
%%PYTHON_SITELIBDIR%%/seafobj/blocks.py
19
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/s3.pyc
20
%%PYTHON_SITELIBDIR%%/seafobj/blocks.pyc
20
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/backends/s3.pyo
21
%%PYTHON_SITELIBDIR%%/seafobj/blocks.pyo
21
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/blocks.py
22
%%PYTHON_SITELIBDIR%%/seafobj/commits.py
22
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/blocks.pyc
23
%%PYTHON_SITELIBDIR%%/seafobj/commits.pyc
23
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/blocks.pyo
24
%%PYTHON_SITELIBDIR%%/seafobj/commits.pyo
24
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/commits.py
25
%%PYTHON_SITELIBDIR%%/seafobj/exceptions.py
25
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/commits.pyc
26
%%PYTHON_SITELIBDIR%%/seafobj/exceptions.pyc
26
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/commits.pyo
27
%%PYTHON_SITELIBDIR%%/seafobj/exceptions.pyo
27
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/exceptions.py
28
%%PYTHON_SITELIBDIR%%/seafobj/fs.py
28
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/exceptions.pyc
29
%%PYTHON_SITELIBDIR%%/seafobj/fs.pyc
29
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/exceptions.pyo
30
%%PYTHON_SITELIBDIR%%/seafobj/fs.pyo
30
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/fs.py
31
%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.py
31
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/fs.pyc
32
%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.pyc
32
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/fs.pyo
33
%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.pyo
33
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/objstore_factory.py
34
%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.py
34
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/objstore_factory.pyc
35
%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.pyc
35
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/objstore_factory.pyo
36
%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.pyo
36
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/__init__.py
37
%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.py
37
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/__init__.pyc
38
%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.pyc
38
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/__init__.pyo
39
%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.pyo
39
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/ceph_utils.py
40
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/ceph_utils.pyc
41
%%WWWDIR%%/seafile-server/seahub/thirdpart/seafobj/utils/ceph_utils.pyo
42
@dir %%WWWDIR%%
43
@dir %%SEAFILE_SERVER%%
44
@dir %%SEAHUBDIR%%
45
@dir %%SITEPACKAGEDIR%%
46
@dir %%SITEPACKAGEDIR%%/seafobj
47
@dir %%SITEPACKAGEDIR%%/seafobj/backends
48
@dir %%SITEPACKAGEDIR%%/seafobj/utils
49
@owner
50
@group

Return to bug 196919