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

Collapse All | Expand All

(-)Makefile (-12 / +28 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	seafile
3
PORTNAME=	seafile
4
PORTVERSION=	3.1.4
4
PORTVERSION=	3.1.4
5
PORTREVISION=	2
5
PORTREVISION=	3
6
CATEGORIES=	net-mgmt devel
6
CATEGORIES=	net-mgmt devel
7
7
8
MAINTAINER=	yan_jingfeng@yahoo.com
8
MAINTAINER=	yan_jingfeng@yahoo.com
Lines 19-26 Link Here
19
		libinotify.so:${PORTSDIR}/devel/libinotify \
19
		libinotify.so:${PORTSDIR}/devel/libinotify \
20
		libccnet.so:${PORTSDIR}/net-mgmt/ccnet
20
		libccnet.so:${PORTSDIR}/net-mgmt/ccnet
21
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}eggtestinfo>0:${PORTSDIR}/devel/py-eggtestinfo \
21
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}eggtestinfo>0:${PORTSDIR}/devel/py-eggtestinfo \
22
		${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
23
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
22
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
23
		${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
24
		bash:${PORTSDIR}/shells/bash
24
		bash:${PORTSDIR}/shells/bash
25
25
26
USE_GITHUB=	yes
26
USE_GITHUB=	yes
Lines 29-34 Link Here
29
GH_COMMIT=	ac58109
29
GH_COMMIT=	ac58109
30
30
31
USES=		autoreconf iconv libtool pathfix pkgconfig python:2 shebangfix
31
USES=		autoreconf iconv libtool pathfix pkgconfig python:2 shebangfix
32
SHEBANG_FILES=	scripts/*.sh scripts/upgrade/*.sh
32
GNU_CONFIGURE=	yes
33
GNU_CONFIGURE=	yes
33
USE_OPENSSL=	yes
34
USE_OPENSSL=	yes
34
USE_LDCONFIG=	yes
35
USE_LDCONFIG=	yes
Lines 38-48 Link Here
38
39
39
CONFIGURE_ARGS=	--enable-server
40
CONFIGURE_ARGS=	--enable-server
40
INSTALL_TARGET=	install-strip
41
INSTALL_TARGET=	install-strip
41
WWWDIR=		${PREFIX}/www/haiwen/seafile-server
42
SEABIN=		${STAGEDIR}${WWWDIR}/seafile/bin
43
CPPFLAGS+=	-I${LOCALBASE}/include
42
CPPFLAGS+=	-I${LOCALBASE}/include
44
LDFLAGS+=	-L${LOCALBASE}/lib
43
LDFLAGS+=	-L${LOCALBASE}/lib
45
44
45
HAIWENDIR=	www/haiwen
46
SEAFILE_SERVER=	${HAIWENDIR}/seafile-server
47
SEABIN=		${SEAFILE_SERVER}/seafile/bin
48
SEALIB=		${SEAFILE_SERVER}/seafile/lib
49
50
SEAFILE_USERNAME?=	www
51
SEAFILE_GROUPNAME?=	${SEAFILE_USERNAME}
52
53
PLIST_SUB=	SEAFILE_USERNAME=${SEAFILE_USERNAME} \
54
		SEAFILE_GROUPNAME=${SEAFILE_GROUPNAME} \
55
		SEAFILE_SERVER=${SEAFILE_SERVER} \
56
		HAIWENDIR=${HAIWENDIR}
57
46
MAKE_JOBS_UNSAFE=	yes
58
MAKE_JOBS_UNSAFE=	yes
47
59
48
OPTIONS_DEFINE=		FUSE RIAK
60
OPTIONS_DEFINE=		FUSE RIAK
Lines 63-83 Link Here
63
.endif
75
.endif
64
76
65
post-install:
77
post-install:
66
	@${MKDIR} ${SEABIN} \
78
	@${MKDIR} ${STAGEDIR}${PREFIX}/${SEABIN} ${STAGEDIR}${PREFIX}/${SEALIB}\
67
		${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile \
79
		${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}/seafile/share/doc/seafile \
68
		${STAGEDIR}${WWWDIR}/upgrade
80
		${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}/upgrade
69
.for SERVPROG in fileserver seaf-fsck seafserv-gc seaf-fuse seaf-migrate \
81
.for SERVPROG in fileserver seaf-fsck seafserv-gc seaf-fuse seaf-migrate \
70
	seaf-server seaf-server-init seafile-controller seafserv-tool
82
	seaf-server seaf-server-init seafile-controller seafserv-tool
71
	if [ -e "${STAGEDIR}${PREFIX}/bin/${SERVPROG}" ]; then \
83
	if [ -e "${STAGEDIR}${PREFIX}/bin/${SERVPROG}" ]; then \
72
		${LN} ${STAGEDIR}${PREFIX}/bin/${SERVPROG} ${SEABIN}; \
84
		${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/${SERVPROG} ${STAGEDIR}${PREFIX}/${SEABIN}; \
85
		${RM} ${STAGEDIR}${PREFIX}/bin/${SERVPROG}; \
73
	fi
86
	fi
74
.endfor
87
.endfor
75
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.[ps][yh] ${STAGEDIR}${WWWDIR}
88
	(cd ${STAGEDIR}${PREFIX}/lib && \
89
		${COPYTREE_SHARE} ${PYTHON_VERSION} ${STAGEDIR}${PREFIX}/${SEALIB})
90
	@${RM} -rf ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}
91
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.[ps][yh] ${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}
76
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/upgrade/*.[ps][yh] \
92
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/upgrade/*.[ps][yh] \
77
		${STAGEDIR}${WWWDIR}/upgrade
93
		${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}/upgrade
78
	${INSTALL_DATA} ${WRKSRC}/doc/seafile-tutorial.doc \
94
	${INSTALL_DATA} ${WRKSRC}/doc/seafile-tutorial.doc \
79
		${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile/
95
		${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}/seafile/share/doc/seafile/
80
	(cd ${WRKSRC}/scripts/upgrade && \
96
	(cd ${WRKSRC}/scripts/upgrade && \
81
		${COPYTREE_SHARE} sql ${STAGEDIR}${WWWDIR}/upgrade)
97
		${COPYTREE_SHARE} sql ${STAGEDIR}${PREFIX}/${SEAFILE_SERVER}/upgrade)
82
98
83
.include <bsd.port.mk>
99
.include <bsd.port.mk>
(-)pkg-plist (-79 / +71 lines)
Lines 1-16 Link Here
1
bin/fileserver
2
bin/seaf-cli
1
bin/seaf-cli
3
bin/seaf-daemon
2
bin/seaf-daemon
4
bin/seaf-fsck
5
%%FUSE%%bin/seaf-fuse
6
bin/seaf-migrate
7
bin/seaf-server
8
bin/seaf-server-init
9
bin/seafile
3
bin/seafile
10
bin/seafile-admin
4
bin/seafile-admin
11
bin/seafile-controller
12
bin/seafserv-gc
13
bin/seafserv-tool
14
include/seafile/monitor-rpc.h
5
include/seafile/monitor-rpc.h
15
include/seafile/seafile-object.h
6
include/seafile/seafile-object.h
16
include/seafile/seafile-rpc.h
7
include/seafile/seafile-rpc.h
Lines 19-96 Link Here
19
lib/libseafile.so
10
lib/libseafile.so
20
lib/libseafile.so.0
11
lib/libseafile.so.0
21
lib/libseafile.so.0.0.0
12
lib/libseafile.so.0.0.0
22
%%PYTHON_SITELIBDIR%%/seafile/__init__.py
23
%%PYTHON_SITELIBDIR%%/seafile/__init__.pyc
24
%%PYTHON_SITELIBDIR%%/seafile/__init__.pyo
25
%%PYTHON_SITELIBDIR%%/seafile/rpcclient.py
26
%%PYTHON_SITELIBDIR%%/seafile/rpcclient.pyc
27
%%PYTHON_SITELIBDIR%%/seafile/rpcclient.pyo
28
%%PYTHON_SITELIBDIR%%/seaserv/__init__.py
29
%%PYTHON_SITELIBDIR%%/seaserv/__init__.pyc
30
%%PYTHON_SITELIBDIR%%/seaserv/__init__.pyo
31
%%PYTHON_SITELIBDIR%%/seaserv/api.py
32
%%PYTHON_SITELIBDIR%%/seaserv/api.pyc
33
%%PYTHON_SITELIBDIR%%/seaserv/api.pyo
34
%%PYTHON_SITELIBDIR%%/seaserv/service.py
35
%%PYTHON_SITELIBDIR%%/seaserv/service.pyc
36
%%PYTHON_SITELIBDIR%%/seaserv/service.pyo
37
libdata/pkgconfig/libseafile.pc
13
libdata/pkgconfig/libseafile.pc
38
man/man1/ccnet.1.gz
14
man/man1/ccnet.1.gz
39
man/man1/seaf-cli.1.gz
15
man/man1/seaf-cli.1.gz
40
man/man1/seaf-daemon.1.gz
16
man/man1/seaf-daemon.1.gz
41
man/man1/seafile-applet.1.gz
17
man/man1/seafile-applet.1.gz
42
%%WWWDIR%%/check_init_admin.py
18
%%SEAFILE_SERVER%%/check_init_admin.py
43
%%WWWDIR%%/reset-admin.sh
19
%%SEAFILE_SERVER%%/reset-admin.sh
44
%%WWWDIR%%/seaf-cli-wrapper.sh
20
%%SEAFILE_SERVER%%/seaf-cli-wrapper.sh
45
%%WWWDIR%%/seaf-fuse.sh
21
%%SEAFILE_SERVER%%/seaf-fuse.sh
46
%%WWWDIR%%/seaf-gc.sh
22
%%SEAFILE_SERVER%%/seaf-gc.sh
47
%%WWWDIR%%/seafile.sh
23
%%SEAFILE_SERVER%%/seafile.sh
48
%%WWWDIR%%/seafile/bin/fileserver
24
%%SEAFILE_SERVER%%/seafile/bin/fileserver
49
%%WWWDIR%%/seafile/bin/seaf-fsck
25
%%SEAFILE_SERVER%%/seafile/bin/seaf-fsck
50
%%FUSE%%%%WWWDIR%%/seafile/bin/seaf-fuse
26
%%SEAFILE_SERVER%%/seafile/bin/seaf-fuse
51
%%WWWDIR%%/seafile/bin/seaf-migrate
27
%%SEAFILE_SERVER%%/seafile/bin/seaf-migrate
52
%%WWWDIR%%/seafile/bin/seaf-server
28
%%SEAFILE_SERVER%%/seafile/bin/seaf-server
53
%%WWWDIR%%/seafile/bin/seaf-server-init
29
%%SEAFILE_SERVER%%/seafile/bin/seaf-server-init
54
%%WWWDIR%%/seafile/bin/seafile-controller
30
%%SEAFILE_SERVER%%/seafile/bin/seafile-controller
55
%%WWWDIR%%/seafile/bin/seafserv-gc
31
%%SEAFILE_SERVER%%/seafile/bin/seafserv-gc
56
%%WWWDIR%%/seafile/bin/seafserv-tool
32
%%SEAFILE_SERVER%%/seafile/bin/seafserv-tool
57
%%PORTDOCS%%%%WWWDIR%%/seafile/%%DOCSDIR%%/seafile-tutorial.doc
33
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/__init__.py
58
%%WWWDIR%%/seahub.sh
34
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/__init__.pyc
59
%%WWWDIR%%/setup-seafile-mysql.py
35
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/__init__.pyo
60
%%WWWDIR%%/setup-seafile-mysql.sh
36
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/rpcclient.py
61
%%WWWDIR%%/setup-seafile.sh
37
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/rpcclient.pyc
62
%%WWWDIR%%/sqlite2mysql.py
38
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seafile/rpcclient.pyo
63
%%WWWDIR%%/sqlite2mysql.sh
39
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/__init__.py
64
%%WWWDIR%%/upgrade/add_collate.sh
40
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/__init__.pyc
65
%%WWWDIR%%/upgrade/db_update_1.3_1.4.py
41
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/__init__.pyo
66
%%WWWDIR%%/upgrade/db_update_helper.py
42
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/api.py
67
%%WWWDIR%%/upgrade/minor-upgrade.sh
43
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/api.pyc
68
%%WWWDIR%%/upgrade/sql/1.6.0/mysql/seahub.sql
44
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/api.pyo
69
%%WWWDIR%%/upgrade/sql/1.6.0/sqlite3/seahub.sql
45
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/service.py
70
%%WWWDIR%%/upgrade/sql/1.7.0/mysql/seafile.sql
46
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/service.pyc
71
%%WWWDIR%%/upgrade/sql/1.7.0/mysql/seahub.sql
47
%%SEAFILE_SERVER%%/seafile/%%PYTHON_SITELIBDIR%%/seaserv/service.pyo
72
%%WWWDIR%%/upgrade/sql/1.7.0/sqlite3/seafile.sql
48
%%PORTDOCS%%%%SEAFILE_SERVER%%/seafile/%%DOCSDIR%%/seafile-tutorial.doc
73
%%WWWDIR%%/upgrade/sql/1.7.0/sqlite3/seahub.sql
49
%%SEAFILE_SERVER%%/seahub.sh
74
%%WWWDIR%%/upgrade/sql/1.8.0/mysql/ccnet.sql
50
%%SEAFILE_SERVER%%/setup-seafile-mysql.py
75
%%WWWDIR%%/upgrade/sql/1.8.0/mysql/seahub.sql
51
%%SEAFILE_SERVER%%/setup-seafile-mysql.sh
76
%%WWWDIR%%/upgrade/sql/1.8.0/sqlite3/seahub.sql
52
%%SEAFILE_SERVER%%/setup-seafile.sh
77
%%WWWDIR%%/upgrade/sql/2.0.0/mysql/seahub.sql
53
%%SEAFILE_SERVER%%/sqlite2mysql.py
78
%%WWWDIR%%/upgrade/sql/2.0.0/sqlite3/seahub.sql
54
%%SEAFILE_SERVER%%/sqlite2mysql.sh
79
%%WWWDIR%%/upgrade/sql/2.1.0/mysql/seahub.sql
55
%%SEAFILE_SERVER%%/upgrade/add_collate.sh
80
%%WWWDIR%%/upgrade/sql/2.1.0/sqlite3/seahub.sql
56
%%SEAFILE_SERVER%%/upgrade/db_update_1.3_1.4.py
81
%%WWWDIR%%/upgrade/sql/2.2.0/mysql/ccnet.sql
57
%%SEAFILE_SERVER%%/upgrade/db_update_helper.py
82
%%WWWDIR%%/upgrade/sql/3.0.0/mysql/seahub.sql
58
%%SEAFILE_SERVER%%/upgrade/minor-upgrade.sh
83
%%WWWDIR%%/upgrade/sql/3.0.0/sqlite3/seahub.sql
59
%%SEAFILE_SERVER%%/upgrade/sql/1.6.0/mysql/seahub.sql
84
%%WWWDIR%%/upgrade/sql/3.1.0/mysql/seahub.sql
60
%%SEAFILE_SERVER%%/upgrade/sql/1.6.0/sqlite3/seahub.sql
85
%%WWWDIR%%/upgrade/sql/3.1.0/sqlite3/seahub.sql
61
%%SEAFILE_SERVER%%/upgrade/sql/1.7.0/mysql/seafile.sql
86
%%WWWDIR%%/upgrade/upgrade_1.2_1.3.sh
62
%%SEAFILE_SERVER%%/upgrade/sql/1.7.0/mysql/seahub.sql
87
%%WWWDIR%%/upgrade/upgrade_1.3_1.4.sh
63
%%SEAFILE_SERVER%%/upgrade/sql/1.7.0/sqlite3/seafile.sql
88
%%WWWDIR%%/upgrade/upgrade_1.4_1.5.sh
64
%%SEAFILE_SERVER%%/upgrade/sql/1.7.0/sqlite3/seahub.sql
89
%%WWWDIR%%/upgrade/upgrade_1.5_1.6.sh
65
%%SEAFILE_SERVER%%/upgrade/sql/1.8.0/mysql/ccnet.sql
90
%%WWWDIR%%/upgrade/upgrade_1.6_1.7.sh
66
%%SEAFILE_SERVER%%/upgrade/sql/1.8.0/mysql/seahub.sql
91
%%WWWDIR%%/upgrade/upgrade_1.7_1.8.sh
67
%%SEAFILE_SERVER%%/upgrade/sql/1.8.0/sqlite3/seahub.sql
92
%%WWWDIR%%/upgrade/upgrade_1.8_2.0.sh
68
%%SEAFILE_SERVER%%/upgrade/sql/2.0.0/mysql/seahub.sql
93
%%WWWDIR%%/upgrade/upgrade_2.0_2.1.sh
69
%%SEAFILE_SERVER%%/upgrade/sql/2.0.0/sqlite3/seahub.sql
94
%%WWWDIR%%/upgrade/upgrade_2.1_2.2.sh
70
%%SEAFILE_SERVER%%/upgrade/sql/2.1.0/mysql/seahub.sql
95
%%WWWDIR%%/upgrade/upgrade_2.2_3.0.sh
71
%%SEAFILE_SERVER%%/upgrade/sql/2.1.0/sqlite3/seahub.sql
96
%%WWWDIR%%/upgrade/upgrade_3.0_3.1.sh
72
%%SEAFILE_SERVER%%/upgrade/sql/2.2.0/mysql/ccnet.sql
73
%%SEAFILE_SERVER%%/upgrade/sql/3.0.0/mysql/seahub.sql
74
%%SEAFILE_SERVER%%/upgrade/sql/3.0.0/sqlite3/seahub.sql
75
%%SEAFILE_SERVER%%/upgrade/sql/3.1.0/mysql/seahub.sql
76
%%SEAFILE_SERVER%%/upgrade/sql/3.1.0/sqlite3/seahub.sql
77
%%SEAFILE_SERVER%%/upgrade/upgrade_1.2_1.3.sh
78
%%SEAFILE_SERVER%%/upgrade/upgrade_1.3_1.4.sh
79
%%SEAFILE_SERVER%%/upgrade/upgrade_1.4_1.5.sh
80
%%SEAFILE_SERVER%%/upgrade/upgrade_1.5_1.6.sh
81
%%SEAFILE_SERVER%%/upgrade/upgrade_1.6_1.7.sh
82
%%SEAFILE_SERVER%%/upgrade/upgrade_1.7_1.8.sh
83
%%SEAFILE_SERVER%%/upgrade/upgrade_1.8_2.0.sh
84
%%SEAFILE_SERVER%%/upgrade/upgrade_2.0_2.1.sh
85
%%SEAFILE_SERVER%%/upgrade/upgrade_2.1_2.2.sh
86
%%SEAFILE_SERVER%%/upgrade/upgrade_2.2_3.0.sh
87
%%SEAFILE_SERVER%%/upgrade/upgrade_3.0_3.1.sh
88
@exec install -d -o %%SEAFILE_USERNAME%% -g %%SEAFILE_GROUPNAME%% -m 755 %D/%%HAIWENDIR%%

Return to bug 196922