Lines 1-77
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
PORTNAME= seafile |
2 |
PORTNAME= seafile |
3 |
PORTVERSION= 3.1.4 |
3 |
PORTVERSION= 3.1.4 |
4 |
CATEGORIES= www |
4 |
CATEGORIES= www |
5 |
MAINTAINER= yan_jingfeng@yahoo.com |
5 |
MAINTAINER= yan_jingfeng@yahoo.com |
6 |
COMMENT= A framework for writing networked applications |
6 |
COMMENT= Framework for writing networked applications |
7 |
LICENSE= GPLv3 |
7 |
LICENSE= GPLv3 |
8 |
BUILD_DEPENDS+= valac:${PORTSDIR}/lang/vala \ |
8 |
BUILD_DEPENDS+= valac:${PORTSDIR}/lang/vala |
9 |
bash:${PORTSDIR}/shells/bash |
|
|
10 |
LIB_DEPENDS+= libsearpc.so:${PORTSDIR}/www/libsearpc \ |
9 |
LIB_DEPENDS+= libsearpc.so:${PORTSDIR}/www/libsearpc \ |
11 |
libevhtp.so:${PORTSDIR}/www/libevhtp \ |
10 |
libevhtp.so:${PORTSDIR}/www/libevhtp \ |
12 |
libzdb.so:${PORTSDIR}/databases/libzdb \ |
11 |
libzdb.so:${PORTSDIR}/databases/libzdb \ |
13 |
libcrypto.so:${PORTSDIR}/security/openssl \ |
12 |
libcrypto.so:${PORTSDIR}/security/openssl \ |
14 |
libarchive.so.13:${PORTSDIR}/archivers/libarchive \ |
13 |
libarchive.so.13:${PORTSDIR}/archivers/libarchive \ |
15 |
libfuse.so:${PORTSDIR}/sysutils/fusefs-libs \ |
14 |
libfuse.so:${PORTSDIR}/sysutils/fusefs-libs \ |
16 |
libinotify.so:${PORTSDIR}/devel/libinotify \ |
15 |
libinotify.so:${PORTSDIR}/devel/libinotify \ |
17 |
libccnet.so:${PORTSDIR}/www/ccnet |
16 |
libccnet.so:${PORTSDIR}/www/ccnet |
18 |
RUN_DEPENDS= ccnet-server:${PORTSDIR}/www/ccnet \ |
17 |
RUN_DEPENDS= ccnet-server:${PORTSDIR}/www/ccnet \ |
19 |
ccnet-init:${PORTSDIR}/www/ccnet \ |
18 |
ccnet-init:${PORTSDIR}/www/ccnet \ |
20 |
${PYTHON_PKGNAMEPREFIX}eggtestinfo>0:${PORTSDIR}/devel/py-eggtestinfo \ |
19 |
${PYTHON_PKGNAMEPREFIX}eggtestinfo>0:${PORTSDIR}/devel/py-eggtestinfo \ |
21 |
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ |
20 |
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ |
22 |
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 |
21 |
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \ |
|
|
22 |
bash:${PORTSDIR}/shells/bash |
23 |
SH= ${LOCALBASE}/bin/bash |
23 |
USE_GITHUB= yes |
|
|
24 |
GH_ACCOUNT= haiwen |
25 |
GH_TAGNAME= v3.1.4 |
26 |
GH_COMMIT= ac58109 |
24 |
USE_GITHUB= yes |
27 |
USES= libtool pkgconfig python:2 pathfix shebangfix |
25 |
GH_ACCOUNT= haiwen |
28 |
PATHFIX_MAKEFILEIN= Makefile.am |
26 |
GH_PROJECT= seafile |
29 |
USE_LDCONFIG= yes |
27 |
GH_TAGNAME= ${GH_COMMIT} |
30 |
USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf |
28 |
GH_COMMIT= ac58109 |
31 |
LIBTOOLIZE_ARGS=-i -c -f |
|
|
32 |
ACLOCAL_ARGS= -I m4 |
33 |
AUTOMAKE_ARGS= --add-missing --gnu |
29 |
USES= libtool pkgconfig python:2 |
34 |
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/event2 |
30 |
USE_AUTOTOOLS= libtoolize |
35 |
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/event2 |
31 |
USE_AUTOTOOLS+= aclocal |
|
|
32 |
USE_AUTOTOOLS+= autoheader |
33 |
USE_AUTOTOOLS+= automake |
34 |
USE_AUTOTOOLS+= autoconf |
35 |
LIBTOOLIZE_ARGS= -i -c -f |
36 |
ACLOCL_ARGS= -I m4 |
37 |
AUTOHEADER_ARGS= |
38 |
AUTOMAKE_ARGS= --add-missing --gnu |
39 |
AUTOCONF_ARGS= |
40 |
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/event2 |
36 |
MAKE_JOBS_UNSAFE=yes |
41 |
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/event2 |
|
|
42 |
MAKE_JOBS_UNSAFE= yes |
|
|
43 |
|
44 |
GNU_CONFIGURE= yes |
37 |
GNU_CONFIGURE= yes |
45 |
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-server |
38 |
CONFIGURE_ARGS+=--enable-server |
46 |
CONFIGURE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig" |
|
|
47 |
INSTALL_TARGET= install-strip |
39 |
INSTALL_TARGET= install-strip |
48 |
WITH_OPENSSL_PORT= yes |
40 |
WITH_OPENSSL_PORT= yes |
49 |
USE_OPENSSL= yes |
41 |
USE_OPENSSL= yes |
50 |
WWWDIR= ${PREFIX}/www/haiwen/seafile-server |
42 |
WWWDIR= ${PREFIX}/www/haiwen/seafile-server |
51 |
post-patch: |
43 |
post-install: |
52 |
@${REINPLACE_CMD} -e 's:/bin/bash:/usr/bin/env bash:' ${WRKSRC}/scripts/*.sh |
|
|
53 |
@${REINPLACE_CMD} -e 's:/bin/bash:/usr/bin/env bash:' ${WRKSRC}/scripts/upgrade/*.sh |
54 |
|
55 |
|
56 |
pre-install: |
57 |
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}/seafile/bin |
44 |
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}/seafile/bin |
58 |
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile |
45 |
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile |
59 |
@${INSTALL} -m 0755 ${WRKSRC}/doc/seafile-tutorial.doc \ |
46 |
@${INSTALL} -m 0755 ${WRKSRC}/doc/seafile-tutorial.doc \ |
60 |
${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile/ |
47 |
${STAGEDIR}${WWWDIR}/seafile/share/doc/seafile/ |
61 |
|
|
|
62 |
post-install: |
63 |
@${INSTALL} -m 0755 ${STAGEDIR}${PREFIX}/bin/fileserver \ |
48 |
@${INSTALL} -m 0755 ${STAGEDIR}${PREFIX}/bin/fileserver \ |
64 |
${STAGEDIR}${WWWDIR}/seafile/bin/fileserver |
49 |
${STAGEDIR}${WWWDIR}/seafile/bin/fileserver |
65 |
@${INSTALL} -m 0755 ${STAGEDIR}${PREFIX}/bin/seaf-fsck \ |
50 |
@${INSTALL} -m 0755 ${STAGEDIR}${PREFIX}/bin/seaf-fsck \ |