pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Seafile related changes
Module Name: pkgsrc-wip
Committed By: Daniel Oelschlegel <amoibos%gmail.com@localhost>
Pushed By: amoibos
Date: Sat Feb 25 12:33:54 2017 +0000
Changeset: 95697441a802944712d69de1eaa4599161369321
Modified Files:
seafile-client/Makefile
seafile-client/PLIST
seafile-client/distinfo
Added Files:
seafile-client/patches/patch-common_obj-backend-fs.c
seafile-client/patches/patch-configure.ac
seafile-client/patches/patch-daemon_Makefile.am
seafile-gui/DESCR
seafile-gui/Makefile
seafile-gui/PLIST
seafile-gui/distinfo
seafile-gui/patches/patch-configure.ac
seafile-gui/patches/patch-daemon_Makefile.am
seafile-gui/patches/patch-lib_Makefile.am
seafile-server/DESCR
seafile-server/Makefile
seafile-server/PLIST
seafile-server/buildlink3.mk
seafile-server/distinfo
seafile-server/patches/patch-lib-utils.h
seafile-server/patches/patch-server_http-server.c
Removed Files:
libsearpc/seafile-libsearpc/DESCR
libsearpc/seafile-libsearpc/Makefile
libsearpc/seafile-libsearpc/PLIST
libsearpc/seafile-libsearpc/buildlink3.mk
libsearpc/seafile-libsearpc/distinfo
seafile-ccnet/DESCR
seafile-ccnet/Makefile
seafile-ccnet/PLIST
seafile-ccnet/buildlink3.mk
seafile-ccnet/distinfo
Log Message:
Seafile related changes
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=95697441a802944712d69de1eaa4599161369321
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libsearpc/seafile-libsearpc/DESCR | 3 -
libsearpc/seafile-libsearpc/Makefile | 43 ---------
libsearpc/seafile-libsearpc/PLIST | 20 ----
libsearpc/seafile-libsearpc/buildlink3.mk | 12 ---
libsearpc/seafile-libsearpc/distinfo | 6 --
seafile-ccnet/DESCR | 12 ---
seafile-ccnet/Makefile | 45 ---------
seafile-ccnet/PLIST | 81 ----------------
seafile-ccnet/buildlink3.mk | 12 ---
seafile-ccnet/distinfo | 6 --
seafile-client/Makefile | 40 +++++---
seafile-client/PLIST | 25 +++--
seafile-client/distinfo | 12 ++-
.../patches/patch-common_obj-backend-fs.c | 22 +++++
seafile-client/patches/patch-configure.ac | 81 ++++++++++++++++
seafile-client/patches/patch-daemon_Makefile.am | 24 +++++
seafile-gui/DESCR | 9 ++
seafile-gui/Makefile | 47 ++++++++++
seafile-gui/PLIST | 11 +++
seafile-gui/distinfo | 9 ++
seafile-gui/patches/patch-configure.ac | 102 +++++++++++++++++++++
seafile-gui/patches/patch-daemon_Makefile.am | 24 +++++
seafile-gui/patches/patch-lib_Makefile.am | 32 +++++++
seafile-server/DESCR | 11 +++
seafile-server/Makefile | 62 +++++++++++++
seafile-server/PLIST | 28 ++++++
seafile-server/buildlink3.mk | 22 +++++
seafile-server/distinfo | 8 ++
seafile-server/patches/patch-lib-utils.h | 21 +++++
seafile-server/patches/patch-server_http-server.c | 15 +++
30 files changed, 576 insertions(+), 269 deletions(-)
diffs:
diff --git a/libsearpc/seafile-libsearpc/DESCR b/libsearpc/seafile-libsearpc/DESCR
deleted file mode 100644
index 30cedec2ef..0000000000
--- a/libsearpc/seafile-libsearpc/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-Searpc is a simple C language RPC framework based on GObject system.
-Searpc handles the serialization/deserialization part of RPC, the
-transport part is left to users.
diff --git a/libsearpc/seafile-libsearpc/Makefile b/libsearpc/seafile-libsearpc/Makefile
deleted file mode 100644
index 54cff4838a..0000000000
--- a/libsearpc/seafile-libsearpc/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-# $NetBSD$
-VERSION= 3.0
-PKGNAME= libsearpc-${VERSION}
-CATEGORIES= net
-GITHUB_TAG= v${VERSION}-latest
-DISTNAME= ${GITHUB_TAG}
-MASTER_SITES= ${MASTER_SITE_GITHUB:=haiwen/}
-
-MAINTAINER= amoibos%gmail.com@localhost
-HOMEPAGE= http://seafile.com/
-COMMENT= Simple RPC framework based on GObject system
-LICENSE= apache-2.0
-
-DIST_SUBDIR= seafile-libsearpc
-WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-latest
-
-GNU_CONFIGURE= yes
-USE_LIBTOOL= yes
-
-USE_LANGUAGES+= c c++
-USE_TOOLS+= pkg-config gmake automake autoconf aclocal autoheader
-
-DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
-
-
-PY_PATCHPLIST= yes
-PYTHON_VERSIONS_ACCEPTED= 27
-
-SUBST_CLASSES+= python
-SUBST_STAGE.python= pre-configure
-SUBST_FILES.python= lib/searpc-codegen.py
-
-SUBST_SED.python= -e 's,/usr/bin/env python2,${PYTHONBIN},'
-
-pre-configure:
- set -e; cd ${WRKSRC}; libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf
-
-
-.include "../../textproc/jansson/buildlink3.mk"
-.include "../../lang/python/extension.mk"
-.include "../../textproc/json-glib/buildlink3.mk"
-.include "../../devel/glib2/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/libsearpc/seafile-libsearpc/PLIST b/libsearpc/seafile-libsearpc/PLIST
deleted file mode 100644
index 9c164423c4..0000000000
--- a/libsearpc/seafile-libsearpc/PLIST
+++ /dev/null
@@ -1,20 +0,0 @@
-@comment $NetBSD$
-bin/searpc-codegen.py
-include/searpc-client.h
-include/searpc-server.h
-include/searpc-utils.h
-include/searpc.h
-lib/libsearpc.la
-lib/pkgconfig/libsearpc.pc
-${PYSITELIB}/pysearpc/__init__.py
-${PYSITELIB}/pysearpc/__init__.pyc
-${PYSITELIB}/pysearpc/__init__.pyo
-${PYSITELIB}/pysearpc/client.py
-${PYSITELIB}/pysearpc/client.pyc
-${PYSITELIB}/pysearpc/client.pyo
-${PYSITELIB}/pysearpc/common.py
-${PYSITELIB}/pysearpc/common.pyc
-${PYSITELIB}/pysearpc/common.pyo
-${PYSITELIB}/pysearpc/server.py
-${PYSITELIB}/pysearpc/server.pyc
-${PYSITELIB}/pysearpc/server.pyo
diff --git a/libsearpc/seafile-libsearpc/buildlink3.mk b/libsearpc/seafile-libsearpc/buildlink3.mk
deleted file mode 100644
index c06cd12579..0000000000
--- a/libsearpc/seafile-libsearpc/buildlink3.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+= libsearpc
-
-.if !defined(LIBSEARPC_BUILDLINK3_MK)
-LIBSEARPC_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.libsearpc+= libsearpc>=3.0
-BUILDLINK_PKGSRCDIR.libsearpc?= ../../wip/seafile-libsearpc
-.endif # LIBSEARPC_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -libsearpc
diff --git a/libsearpc/seafile-libsearpc/distinfo b/libsearpc/seafile-libsearpc/distinfo
deleted file mode 100644
index c785081761..0000000000
--- a/libsearpc/seafile-libsearpc/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-$NetBSD$
-
-SHA1 (seafile-libsearpc/v3.0-latest.tar.gz) = cdff106886441205f46a592100ae324314127107
-RMD160 (seafile-libsearpc/v3.0-latest.tar.gz) = b20f046f1f7659c98b32d0f3c942e71b82b68b63
-SHA512 (seafile-libsearpc/v3.0-latest.tar.gz) = f5706d5490eb6abd05a25963ae204b358e7ebdcf153ab4bfe76819fd4538f1a957d7eaf84d8e60e076d978f9c1605adb2e6ec7ded55950c551304eb7665b15e8
-Size (seafile-libsearpc/v3.0-latest.tar.gz) = 43275 bytes
diff --git a/seafile-ccnet/DESCR b/seafile-ccnet/DESCR
deleted file mode 100644
index 21106f9386..0000000000
--- a/seafile-ccnet/DESCR
+++ /dev/null
@@ -1,12 +0,0 @@
-Ccnet is a framework for writing networked applications in C. It
-provides the following basic services:
-* Peer identication
-* Connection Management
-* Service invocation
-* Message sending
-
-In ccnet network, there are two types of nodes, i.e. client and
-server. Server has the following functions:
-* User management
-* Group management
-* Cluster management
diff --git a/seafile-ccnet/Makefile b/seafile-ccnet/Makefile
deleted file mode 100644
index 094c34f029..0000000000
--- a/seafile-ccnet/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-# $NetBSD$
-VERSION= 6.0.0
-PKGNAME= ccnet-${VERSION}
-CATEGORIES= net
-GITHUB_TAG= v${VERSION}-server
-DISTNAME= ${GITHUB_TAG}
-MASTER_SITES= ${MASTER_SITE_GITHUB:=haiwen/}
-
-MAINTAINER= amoibos%gmail.com@localhost
-HOMEPAGE= http://seafile.com/
-COMMENT= Framework for writing networked applications in C
-LICENSE= gnu-gpl-v3
-
-DIST_SUBDIR= seafile-ccnet
-WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-server
-
-GNU_CONFIGURE= yes
-USE_LIBTOOL= yes
-
-USE_LANGUAGES+= c c++
-USE_TOOLS+= pkg-config gmake aclocal autoheader automake autoconf
-
-PY_PATCHPLIST= yes
-
-PYTHON_VERSIONS_ACCEPTED= 27
-
-DEPENDS+= libsearpc-3.0{,nb*}:../../wip/seafile-libsearpc
-
-CONFIGURE_ARGS+= --enable-server \
- --disable-compile-demo
-
-pre-configure:
- set -e; cd ${WRKSRC}; \
- libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf
-
-.include "../../devel/libevent/buildlink3.mk"
-.include "../../devel/libuuid/buildlink3.mk"
-.include "../../databases/sqlite3/buildlink3.mk"
-.include "../../databases/libzdb/buildlink3.mk"
-.include "../../devel/glib2/buildlink3.mk"
-.include "../../textproc/jansson/buildlink3.mk"
-.include "../../lang/vala/buildlink3.mk"
-.include "../../lang/python/extension.mk"
-.include "../../wip/seafile-libsearpc/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/seafile-ccnet/PLIST b/seafile-ccnet/PLIST
deleted file mode 100644
index 824c20e5fe..0000000000
--- a/seafile-ccnet/PLIST
+++ /dev/null
@@ -1,81 +0,0 @@
-@comment $NetBSD$
-bin/ccnet
-bin/ccnet-init
-bin/ccnet-server
-bin/ccnet-servtool
-bin/ccnet-tool
-include/ccnet.h
-include/ccnet/async-rpc-proc.h
-include/ccnet/ccnet-client.h
-include/ccnet/ccnet-object.h
-include/ccnet/ccnet-session-base.h
-include/ccnet/ccnetrpc-transport.h
-include/ccnet/cevent.h
-include/ccnet/invoke-service-proc.h
-include/ccnet/job-mgr.h
-include/ccnet/message.h
-include/ccnet/mqclient-proc.h
-include/ccnet/option.h
-include/ccnet/packet.h
-include/ccnet/peer.h
-include/ccnet/proc-factory.h
-include/ccnet/processor.h
-include/ccnet/rpcserver-proc.h
-include/ccnet/sendcmd-proc.h
-include/ccnet/status-code.h
-include/ccnet/threaded-rpcserver-proc.h
-include/ccnet/timer.h
-include/ccnet/valid-check.h
-lib/libccnet.la
-lib/pkgconfig/libccnet.pc
-${PYSITELIB}/ccnet/__init__.py
-${PYSITELIB}/ccnet/__init__.pyc
-${PYSITELIB}/ccnet/__init__.pyo
-${PYSITELIB}/ccnet/async/__init__.py
-${PYSITELIB}/ccnet/async/__init__.pyc
-${PYSITELIB}/ccnet/async/__init__.pyo
-${PYSITELIB}/ccnet/async/async_client.py
-${PYSITELIB}/ccnet/async/async_client.pyc
-${PYSITELIB}/ccnet/async/async_client.pyo
-${PYSITELIB}/ccnet/async/mqclientproc.py
-${PYSITELIB}/ccnet/async/mqclientproc.pyc
-${PYSITELIB}/ccnet/async/mqclientproc.pyo
-${PYSITELIB}/ccnet/async/processor.py
-${PYSITELIB}/ccnet/async/processor.pyc
-${PYSITELIB}/ccnet/async/processor.pyo
-${PYSITELIB}/ccnet/async/rpcserverproc.py
-${PYSITELIB}/ccnet/async/rpcserverproc.pyc
-${PYSITELIB}/ccnet/async/rpcserverproc.pyo
-${PYSITELIB}/ccnet/async/sendcmdproc.py
-${PYSITELIB}/ccnet/async/sendcmdproc.pyc
-${PYSITELIB}/ccnet/async/sendcmdproc.pyo
-${PYSITELIB}/ccnet/async/timer.py
-${PYSITELIB}/ccnet/async/timer.pyc
-${PYSITELIB}/ccnet/async/timer.pyo
-${PYSITELIB}/ccnet/client.py
-${PYSITELIB}/ccnet/client.pyc
-${PYSITELIB}/ccnet/client.pyo
-${PYSITELIB}/ccnet/errors.py
-${PYSITELIB}/ccnet/errors.pyc
-${PYSITELIB}/ccnet/errors.pyo
-${PYSITELIB}/ccnet/message.py
-${PYSITELIB}/ccnet/message.pyc
-${PYSITELIB}/ccnet/message.pyo
-${PYSITELIB}/ccnet/packet.py
-${PYSITELIB}/ccnet/packet.pyc
-${PYSITELIB}/ccnet/packet.pyo
-${PYSITELIB}/ccnet/pool.py
-${PYSITELIB}/ccnet/pool.pyc
-${PYSITELIB}/ccnet/pool.pyo
-${PYSITELIB}/ccnet/rpc.py
-${PYSITELIB}/ccnet/rpc.pyc
-${PYSITELIB}/ccnet/rpc.pyo
-${PYSITELIB}/ccnet/status_code.py
-${PYSITELIB}/ccnet/status_code.pyc
-${PYSITELIB}/ccnet/status_code.pyo
-${PYSITELIB}/ccnet/sync_client.py
-${PYSITELIB}/ccnet/sync_client.pyc
-${PYSITELIB}/ccnet/sync_client.pyo
-${PYSITELIB}/ccnet/utils.py
-${PYSITELIB}/ccnet/utils.pyc
-${PYSITELIB}/ccnet/utils.pyo
diff --git a/seafile-ccnet/buildlink3.mk b/seafile-ccnet/buildlink3.mk
deleted file mode 100644
index 1670095a20..0000000000
--- a/seafile-ccnet/buildlink3.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+= ccnet
-
-.if !defined(CCNET_BUILDLINK3_MK)
-CCNET_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.ccnet+= ccnet>=6.0.0
-BUILDLINK_PKGSRCDIR.ccnet?= ../../wip/seafile-ccnet
-.endif # CCNET_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -ccnet
diff --git a/seafile-ccnet/distinfo b/seafile-ccnet/distinfo
deleted file mode 100644
index 15d6c0f10b..0000000000
--- a/seafile-ccnet/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-$NetBSD$
-
-SHA1 (seafile-ccnet/v6.0.0-server.tar.gz) = 309dc27f552a16e8a13127cd5daad0eb02f9c4ad
-RMD160 (seafile-ccnet/v6.0.0-server.tar.gz) = 173de1eb928ccb03042b9c8cc6b781dfcccc5590
-SHA512 (seafile-ccnet/v6.0.0-server.tar.gz) = a72ab82e3919920630a82032ff05e4cfb5878af0d2f85c96d0ab183bfb3619b94abdb9a10733f852cf14cb59f08b323fc017487e9d2ffefeb20069759cb64f00
-Size (seafile-ccnet/v6.0.0-server.tar.gz) = 222098 bytes
diff --git a/seafile-client/Makefile b/seafile-client/Makefile
index fad5d0cf32..410bd883bf 100644
--- a/seafile-client/Makefile
+++ b/seafile-client/Makefile
@@ -1,10 +1,10 @@
# $NetBSD$
CATEGORIES= net
-GITHUB_PROJECT= seafile-client
-VERSION= 6.0.1
+GITHUB_PROJECT= seafile
+VERSION= 6.0.2
DISTNAME= v${VERSION}
-PKGNAME= ${GITHUB_PROJECT}-${VERSION}
+PKGNAME= seafile-client-${VERSION}
MASTER_SITES= ${MASTER_SITE_GITHUB:=haiwen/}
GITHUB_TAG= v${VERSION}
@@ -18,23 +18,33 @@ LICENSE= gnu-gpl-v2
DIST_SUBDIR= ${GITHUB_PROJECT}
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${VERSION}
-USE_CMAKE= yes
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+AUTOMAKE_REQD= 1.9
USE_LANGUAGES+= c c++
-USE_TOOLS+= pkg-config cmake
+USE_TOOLS+= pkg-config automake aclocal autoheader autoconf gmake
+
+SUBST_CLASSES+= python
+SUBST_STAGE.python= pre-configure
+SUBST_FILES.python= app/seaf-cli daemon/seaf-daemon
+SUBST_SED.python= -e 's,/usr/bin/env python,${PYTHONBIN},'
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf
.include "../../textproc/jansson/buildlink3.mk"
-.include "../../wip/seafile-ccnet/buildlink3.mk"
-.include "../../wip/seafile-libsearpc/buildlink3.mk"
-.include "../../wip/seafile-daemon/buildlink3.mk"
+.include "../../wip/ccnet-server/buildlink3.mk"
+.include "../../wip/libsearpc/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../wip/seafile-server/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
-.include "../../x11/qt5-qtwebsockets/buildlink3.mk"
-.include "../../x11/qt5-sqlite3/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libevent/buildlink3.mk"
-.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../wip/libevhtp/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
-.include "../../x11/qt5-qttools/buildlink3.mk"
-.include "../../devel/gettext-tools/buildlink3.mk"
-.include "../../sysutils/desktop-file-utils/buildlink3.mk"
-.include "../../x11/gtk3/buildlink3.mk"
+#.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/seafile-client/PLIST b/seafile-client/PLIST
index e78fae116a..d0cd01d68f 100644
--- a/seafile-client/PLIST
+++ b/seafile-client/PLIST
@@ -1,11 +1,16 @@
@comment $NetBSD$
-bin/seafile-applet
-share/applications/seafile.desktop
-share/icons/hicolor/128x128/apps/seafile.png
-share/icons/hicolor/16x16/apps/seafile.png
-share/icons/hicolor/22x22/apps/seafile.png
-share/icons/hicolor/24x24/apps/seafile.png
-share/icons/hicolor/32x32/apps/seafile.png
-share/icons/hicolor/48x48/apps/seafile.png
-share/icons/hicolor/scalable/apps/seafile.svg
-share/pixmaps/seafile.png
+bin/seaf-cli
+bin/seaf-daemon
+include/seafile/seafile-object.h
+include/seafile/seafile-rpc.h
+include/seafile/seafile.h
+lib/libseafile.la
+lib/pkgconfig/libseafile.pc
+lib/python2.7/site-packages/seafile/__init__.py
+lib/python2.7/site-packages/seafile/__init__.pyc
+lib/python2.7/site-packages/seafile/__init__.pyo
+lib/python2.7/site-packages/seafile/rpcclient.py
+lib/python2.7/site-packages/seafile/rpcclient.pyc
+lib/python2.7/site-packages/seafile/rpcclient.pyo
+man/man1/seaf-cli.1
+man/man1/seaf-daemon.1
diff --git a/seafile-client/distinfo b/seafile-client/distinfo
index 4ae7ee47bb..7ec147e86b 100644
--- a/seafile-client/distinfo
+++ b/seafile-client/distinfo
@@ -1,6 +1,10 @@
$NetBSD$
-SHA1 (seafile-client/v6.0.1.tar.gz) = edf7fe894d7c14da0c59e23000275fd1a2eccef1
-RMD160 (seafile-client/v6.0.1.tar.gz) = 80357f285618b87a23eb70a03fc285ff9d455dd4
-SHA512 (seafile-client/v6.0.1.tar.gz) = ae7e834f05028e63e8f0a09df766d8ad0d610c7c74a6d25a0541cabcb716a51ec6da6328336c5febb1afa5033e4c7dd610dbceb1d375e326a1225e8a79906fb8
-Size (seafile-client/v6.0.1.tar.gz) = 2134609 bytes
+SHA1 (seafile/v6.0.2.tar.gz) = 92cf107c11569ea09fde8ffde21a9611ad5f66e7
+RMD160 (seafile/v6.0.2.tar.gz) = 863740c6859153814b323ecaeed7aaa9737e0bd8
+SHA512 (seafile/v6.0.2.tar.gz) = ae79265927b3c2e2fd955affbc2f61c44f29071ede8b4dead66030afda271405c3cd3d3b6c136229ea1c6c994bd0f46a5667143ca89d0d3174efa75101162585
+Size (seafile/v6.0.2.tar.gz) = 455040 bytes
+SHA1 (patch-common_obj-backend-fs.c) = a02039cb7b7e18094acfdf03603aaaf65a04257e
+SHA1 (patch-configure.ac) = 31dd263769416c447a2fe25ef3b0ab6324057919
+SHA1 (patch-daemon_Makefile.am) = 577bb58378dec7777272b11f6431832a75fce59d
+#SHA1 (patch-lib_Makefile.am) = 98a35c1965a431aa1ced13e271568a05e293d9d5
diff --git a/seafile-client/patches/patch-common_obj-backend-fs.c b/seafile-client/patches/patch-common_obj-backend-fs.c
new file mode 100644
index 0000000000..ba256c41e3
--- /dev/null
+++ b/seafile-client/patches/patch-common_obj-backend-fs.c
@@ -0,0 +1,22 @@
+$NetBSD$
+Add missing BSD detection
+--- common/obj-backend-fs.c.orig 2017-01-31 22:19:02.911085207 +0000
++++ common/obj-backend-fs.c 2017-01-31 22:21:23.335671083 +0000
+@@ -101,7 +101,7 @@
+ static int
+ fsync_obj_contents (int fd)
+ {
+-#ifdef __linux__
++#if defined( __linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD)
+ /* Some file systems may not support fsync().
+ * In this case, just skip the error.
+ */
+@@ -153,7 +153,7 @@
+ static int
+ rename_and_sync (const char *tmp_path, const char *obj_path)
+ {
+-#ifdef __linux__
++#if defined(__linux_) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ char *parent_dir;
+ int ret = 0;
+
diff --git a/seafile-client/patches/patch-configure.ac b/seafile-client/patches/patch-configure.ac
new file mode 100644
index 0000000000..ba02ff269a
--- /dev/null
+++ b/seafile-client/patches/patch-configure.ac
@@ -0,0 +1,81 @@
+$NetBSD$
+Add kvm and inotify
+--- configure.ac.orig 2017-01-31 22:50:32.459933664 +0000
++++ configure.ac 2017-01-31 22:58:26.647792386 +0000
+@@ -51,8 +51,16 @@
+ AC_MSG_RESULT(no)
+ fi
+
++AC_MSG_CHECKING(for BSD)
++if test `uname | grep -e BSD -e DragonFly | wc -l` = "1"; then
++ bbsd=true
++ AC_MSG_RESULT(compile in BSD)
++else
++ AC_MSG_RESULT(no)
++fi
++
+ AC_MSG_CHECKING(for Linux)
+-if test "$bmac" != "true" -a "$bwin32" != "true"; then
++if test "$bmac" != "true" -a "$bwin32" != "true" -a "$bbsd" != "true"; then
+ blinux=true
+ AC_MSG_RESULT(compile in linux)
+ else
+@@ -61,6 +69,7 @@
+
+ AM_CONDITIONAL([WIN32], [test "$bwin32" = "true"])
+ AM_CONDITIONAL([MACOS], [test "$bmac" = "true"])
++AM_CONDITIONAL([BSD], [test "$bbsd" = "true"])
+ AM_CONDITIONAL([LINUX], [test "$blinux" = "true"])
+
+
+@@ -105,6 +114,8 @@
+ LIB_MAC=
+ MSVC_CFLAGS="-D__MSVCRT__ -D__MSVCRT_VERSION__=0x0601"
+ LIB_CRYPT32=-lcrypt32
++ LIB_INOTIFY=
++ LIB_KVM=
+ elif test "$bmac" = true ; then
+ LIB_WS32=
+ LIB_GDI32=
+@@ -119,6 +130,23 @@
+ LIB_MAC="-framework CoreServices"
+ LIB_CRYPT32=
+ LIB_ICONV=-liconv
++ LIB_INOTIFY=
++ LIB_KVM=
++elif test "$bbsd" = true; then
++ LIB_WS32=
++ LIB_GDI32=
++ LIB_RT=
++ LIB_INTL=
++ LIB_RESOLV=
++ LIB_UUID=-luuid
++ LIB_IPHLPAPI=
++ LIB_SHELL32=
++ LIB_PSAPI=
++ LIB_MAC=
++ MSVC_CFLAGS=
++ LIB_CRYPT32=
++ LIB_INOTIFY=-linotify
++ LIB_KVM=-lkvm
+ else
+ LIB_WS32=
+ LIB_GDI32=
+@@ -132,6 +160,8 @@
+ LIB_MAC=
+ MSVC_CFLAGS=
+ LIB_CRYPT32=
++ LIB_INOTIFY=-linotify
++ LIB_KVM=
+ fi
+
+ AC_SUBST(LIB_WS32)
+@@ -144,6 +174,8 @@
+ AC_SUBST(LIB_SHELL32)
+ AC_SUBST(LIB_PSAPI)
+ AC_SUBST(LIB_MAC)
++AC_SUBST(LIB_INOTIFY)
++AC_SUBST(LIB_KVM)
+ AC_SUBST(MSVC_CFLAGS)
+ AC_SUBST(LIB_CRYPT32)
+ AC_SUBST(LIB_ICONV)
diff --git a/seafile-client/patches/patch-daemon_Makefile.am b/seafile-client/patches/patch-daemon_Makefile.am
new file mode 100644
index 0000000000..0dfcd2f8da
--- /dev/null
+++ b/seafile-client/patches/patch-daemon_Makefile.am
@@ -0,0 +1,24 @@
+$NetBSD$
+Add search path for libinotify and BSD detection.
+--- daemon/Makefile.am.orig 2017-01-05 08:05:21.000000000 +0000
++++ daemon/Makefile.am 2017-01-14 21:13:15.269922292 +0000
+@@ -57,6 +57,10 @@
+ change-set.h \
+ $(proc_headers)
+
++if BSD
++wt_monitor_src = wt-monitor.c wt-monitor-linux.c wt-monitor-structs.c
++endif
++
+ if LINUX
+ wt_monitor_src = wt-monitor.c wt-monitor-linux.c wt-monitor-structs.c
+ endif
+@@ -124,6 +128,7 @@
+ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ \
+ $(top_builddir)/common/cdc/libcdc.la \
+ $(top_builddir)/common/index/libindex.la @LIB_WS32@ @LIB_CRYPT32@ \
+- @SEARPC_LIBS@ @CCNET_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @BPWRAPPER_LIBS@
++ @SEARPC_LIBS@ @CCNET_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ \
++ @ZLIB_LIBS@ @CURL_LIBS@ @LIB_INOTIFY@ @BPWRAPPER_LIBS@
+
+ seaf_daemon_LDFLAGS = @CONSOLE@
diff --git a/seafile-gui/DESCR b/seafile-gui/DESCR
new file mode 100644
index 0000000000..707a668278
--- /dev/null
+++ b/seafile-gui/DESCR
@@ -0,0 +1,9 @@
+Seafile is a next-generation open source cloud storage system with
+advanced support for file syncing, privacy protection and teamwork.
+Collections of files are called libraries, and each library can be synced
+separately. A library can be encrypted with a user chosen password. This
+oassword is not stored on the server, so even then server admin cannot
+view a file's contents.
+
+Seafile allows users to create groups with file syncing, wiki, and
+discussion to enable easy collaboration around documents within a team.
diff --git a/seafile-gui/Makefile b/seafile-gui/Makefile
new file mode 100644
index 0000000000..7c16a111a4
--- /dev/null
+++ b/seafile-gui/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD$
+
+CATEGORIES= net
+GITHUB_PROJECT= seafile-client
+VERSION= 6.0.2
+DISTNAME= v${VERSION}
+PKGNAME= seafile-gui-${VERSION}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=haiwen/}
+GITHUB_TAG= v${VERSION}
+
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= amoibos%gmail.com@localhost
+HOMEPAGE= http://seafile.com/
+COMMENT= Seafile client
+LICENSE= gnu-gpl-v2
+
+DIST_SUBDIR= ${GITHUB_PROJECT}
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${VERSION}
+
+USE_CMAKE= yes
+
+USE_LANGUAGES+= c c++
+USE_TOOLS+= pkg-config cmake
+
+DEPENDS+= seafile-client>=6.0:../../wip/seafile-client
+
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../wip/ccnet-server/buildlink3.mk"
+.include "../../wip/libsearpc/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../wip/seafile-server/buildlink3.mk"
+#.include "../../wip/seafile-client/buildlink3.mk"
+#.include "../../devel/libuuid/buildlink3.mk"
+#.include "../../x11/qt5-qtwebsockets/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+#.include "../../x11/qt5-sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/libevent/buildlink3.mk"
+#.include "../../wip/libevhtp/buildlink3.mk"
+#.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+#.include "../../x11/qt5-qttools/buildlink3.mk"
+#.include "../../devel/gettext-tools/buildlink3.mk"
+#.include "../../sysutils/desktop-file-utils/buildlink3.mk"
+#.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/seafile-gui/PLIST b/seafile-gui/PLIST
new file mode 100644
index 0000000000..e78fae116a
--- /dev/null
+++ b/seafile-gui/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+bin/seafile-applet
+share/applications/seafile.desktop
+share/icons/hicolor/128x128/apps/seafile.png
+share/icons/hicolor/16x16/apps/seafile.png
+share/icons/hicolor/22x22/apps/seafile.png
+share/icons/hicolor/24x24/apps/seafile.png
+share/icons/hicolor/32x32/apps/seafile.png
+share/icons/hicolor/48x48/apps/seafile.png
+share/icons/hicolor/scalable/apps/seafile.svg
+share/pixmaps/seafile.png
diff --git a/seafile-gui/distinfo b/seafile-gui/distinfo
new file mode 100644
index 0000000000..b9f1b38371
--- /dev/null
+++ b/seafile-gui/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+SHA1 (seafile-client/v6.0.2.tar.gz) = 44b66481c332942fc783d9ac2339056095ffd7ea
+RMD160 (seafile-client/v6.0.2.tar.gz) = a1723bea6a2ac9970fb5402053a4db82a753b0fe
+SHA512 (seafile-client/v6.0.2.tar.gz) = eeac924b18db8e97babd7f725aed34b64611558826407e53e69b388ac00e61652c71c52e27fbd5f43f92b479373b345bc45b0582112215f37449af96b5fe3ba5
+Size (seafile-client/v6.0.2.tar.gz) = 2166417 bytes
+#SHA1 (patch-configure.ac) = b64ab704bc65d2d93506741d9ce81c4f84de8b2d
+#SHA1 (patch-daemon_Makefile.am) = 6342d9d0f7219ae1df1b639d05a5021336ac1f66
+#SHA1 (patch-lib_Makefile.am) = 98a35c1965a431aa1ced13e271568a05e293d9d5
diff --git a/seafile-gui/patches/patch-configure.ac b/seafile-gui/patches/patch-configure.ac
new file mode 100644
index 0000000000..adff8ef7fc
--- /dev/null
+++ b/seafile-gui/patches/patch-configure.ac
@@ -0,0 +1,102 @@
+$NetBSD$
+Patch for BSD detection with kvm & libinotify.
+--- configure.ac.orig 2017-01-14 21:53:11.062111383 +0000
++++ configure.ac 2017-01-14 21:35:50.000000000 +0000
+@@ -43,6 +43,15 @@
+ AC_MSG_RESULT(no)
+ fi
+
++AC_MSG_CHECKING(for BSD)
++if test `uname | grep -e BSD -e DragonFly | wc -l` = "1"; then
++ bbsd=true
++ AC_MSG_RESULT(compile in BSD)
++else
++ AC_MSG_RESULT(no)
++fi
++
++
+ AC_MSG_CHECKING(for Mac)
+ if test "$(uname)" = "Darwin"; then
+ bmac=true
+@@ -52,7 +61,7 @@
+ fi
+
+ AC_MSG_CHECKING(for Linux)
+-if test "$bmac" != "true" -a "$bwin32" != "true"; then
++if test "$bmac" != "true" -a "$bwin32" != "true"; -a "$bbsd" != "true"; then
+ blinux=true
+ AC_MSG_RESULT(compile in linux)
+ else
+@@ -62,7 +71,7 @@
+ AM_CONDITIONAL([WIN32], [test "$bwin32" = "true"])
+ AM_CONDITIONAL([MACOS], [test "$bmac" = "true"])
+ AM_CONDITIONAL([LINUX], [test "$blinux" = "true"])
+-
++AM_CONDITIONAL([BSD], [test "$bbsd" = "true"])
+
+ # check libraries
+ if test "$bwin32" != true; then
+@@ -91,6 +100,11 @@
+ fi
+ AC_SUBST(CONSOLE)
+
++if test "$bbsd" = true; then
++ AC_ARG_ENABLE(fuse, AC_HELP_STRING([--enable-fuse], [enable fuse virtual file system]),
++ [compile_fuse=$enableval],[compile_fuse="no"])
++fi
++
+ if test "$bwin32" = true; then
+ LIB_WS32=-lws2_32
+ LIB_GDI32=-lgdi32
+@@ -105,6 +119,8 @@
+ LIB_MAC=
+ MSVC_CFLAGS="-D__MSVCRT__ -D__MSVCRT_VERSION__=0x0601"
+ LIB_CRYPT32=-lcrypt32
++ LIB_INOTIFY=
++ LIB_KVM=
+ elif test "$bmac" = true ; then
+ LIB_WS32=
+ LIB_GDI32=
+@@ -119,6 +135,24 @@
+ LIB_MAC="-framework CoreServices"
+ LIB_CRYPT32=
+ LIB_ICONV=-liconv
++ LIB_INOTIFY=
++ LIB_KVM=
++elif test "$bbsd" = true ; then
++ LIB_WS32=
++ LIB_GDI32=
++ LIB_RT=
++ LIB_INTL=
++ LIB_RESOLV=
++ LIB_UUID=-luuid
++ LIB_IPHLPAPI=
++ LIB_SHELL32=
++ LIB_PSAPI=
++ LIB_MAC=
++ MSVC_FLAGS=
++ LIB_CRYPT32=
++ LIB_ICONV=-liconv
++ LIB_INOTIFY=-linotify
++ LIB_KVM=-lkvm
+ else
+ LIB_WS32=
+ LIB_GDI32=
+@@ -132,6 +166,8 @@
+ LIB_MAC=
+ MSVC_CFLAGS=
+ LIB_CRYPT32=
++ LIB_INOTIFY=-linotify
++ LIB_KVM=
+ fi
+
+ AC_SUBST(LIB_WS32)
+@@ -144,6 +180,8 @@
+ AC_SUBST(LIB_SHELL32)
+ AC_SUBST(LIB_PSAPI)
+ AC_SUBST(LIB_MAC)
++AC_SUBST(LIB_INOTIFY)
++AC_SUBST(LIB_KVM)
+ AC_SUBST(MSVC_CFLAGS)
+ AC_SUBST(LIB_CRYPT32)
+ AC_SUBST(LIB_ICONV)
diff --git a/seafile-gui/patches/patch-daemon_Makefile.am b/seafile-gui/patches/patch-daemon_Makefile.am
new file mode 100644
index 0000000000..9859f5a630
--- /dev/null
+++ b/seafile-gui/patches/patch-daemon_Makefile.am
@@ -0,0 +1,24 @@
+$NetBSD$
+Add search path for libinotify and BSD detection.
+--- daemon/Makefile.am.orig 2017-01-05 08:05:21.000000000 +0000
++++ daemon/Makefile.am 2017-01-14 21:13:15.269922292 +0000
+@@ -57,6 +57,10 @@
+ change-set.h \
+ $(proc_headers)
+
++if BSD
++wt_monitor_src = wt-monitor.c wt-monitor-linux.c wt-monitor-structs.c
++endif
++
+ if LINUX
+ wt_monitor_src = wt-monitor.c wt-monitor-linux.c wt-monitor-structs.c
+ endif
+@@ -124,6 +128,7 @@
+ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ \
+ $(top_builddir)/common/cdc/libcdc.la \
+ $(top_builddir)/common/index/libindex.la @LIB_WS32@ @LIB_CRYPT32@ \
+- @SEARPC_LIBS@ @CCNET_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @BPWRAPPER_LIBS@
++ @SEARPC_LIBS@ @CCNET_LIBS@ @JANSSON_LIBS@ \
++ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @LIB_INOTIFY@ @BPWRAPPER_LIBS@
+
+ seaf_daemon_LDFLAGS = @CONSOLE@
diff --git a/seafile-gui/patches/patch-lib_Makefile.am b/seafile-gui/patches/patch-lib_Makefile.am
new file mode 100644
index 0000000000..5ee6d8e709
--- /dev/null
+++ b/seafile-gui/patches/patch-lib_Makefile.am
@@ -0,0 +1,32 @@
+$NetBSD$
+BSD
+--- lib/Makefile.am.orig 2017-01-14 21:40:30.827480934 +0000
++++ lib/Makefile.am 2017-01-14 21:45:01.144554752 +0000
+@@ -53,6 +53,7 @@
+ libseafile_common_la_LDFLAGS = -no-undefined
+ libseafile_common_la_LIBADD = @GLIB2_LIBS@ @GOBJECT_LIBS@ @LIB_GDI32@ \
+ @LIB_UUID@ @LIB_WS32@ @LIB_PSAPI@ -lsqlite3 \
++ @LIB_KVM@ \
+ @LIBEVENT_LIBS@ @SEARPC_LIBS@ @LIB_SHELL32@ \
+ @ZLIB_LIBS@
+
+@@ -74,7 +75,7 @@
+ rm -f ${seafile_object_gen}
+ @rm -f vala.tmp
+ @touch vala.tmp
+- valac -C --pkg posix $^
++ valac -C --pkg posix ${seafile_object_define}
+ @mv -f vala.tmp $@
+
+ ${seafile_object_gen}: vala.stamp
+@@ -90,5 +91,9 @@
+ if MACOS
+ sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
+ else
++if BSD
++ sed -i '' "s|(DESTDIR)|${PREFIX}|g" $(pcfiles)
++else
+ ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
+ endif
++endif
+\ No newline at end of file
diff --git a/seafile-server/DESCR b/seafile-server/DESCR
new file mode 100644
index 0000000000..252ae7cfc3
--- /dev/null
+++ b/seafile-server/DESCR
@@ -0,0 +1,11 @@
+Seafile is a next-generation open source cloud storage system with
+advanced support for file syncing, privacy protection and teamwork.
+
+Collection of files are called libraries and each library can be
+synced separately. A library can be encrypted with a user chosen
+password. The password is not stored on the server so even the
+server admin cannot view your file contents.
+
+Seafile lets you create groups with file syncing, wiki and
+discussion - enabling easy collaboration around documents within
+a team.
diff --git a/seafile-server/Makefile b/seafile-server/Makefile
new file mode 100644
index 0000000000..7fa611be44
--- /dev/null
+++ b/seafile-server/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD$
+
+CATEGORIES= net
+GITHUB_PROJECT= seafile-server
+VERSION= 6.0.7
+PKGNAME= ${GITHUB_PROJECT}-${VERSION}
+GITHUB_TAG= v${VERSION}-server
+DISTNAME= ${GITHUB_TAG}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=haiwen/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://seafile.com/
+COMMENT= Seafile server
+LICENSE= gnu-gpl-v2
+
+DIST_SUBDIR= ${GITHUB_PROJECT}-${VERSION}
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${VERSION}-server
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+AUTOMAKE_REQD= 1.9
+
+USE_LANGUAGES+= c c++
+USE_TOOLS+= pkg-config automake aclocal autoheader autoconf gmake
+
+PY_PATCHPLIST= yes
+PYTHON_VERSIONS_ACCEPTED= 27
+
+CPPFLAGS+= -I${PREFIX}/include -I${PREFIX}/include/evhtp
+LDFLAGS+= -L${PREFIX}/lib
+
+CONFIGURE_ARGS+= --disable-fuse \
+ --disable-server
+
+DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
+
+SUBST_CLASSES+= python
+SUBST_STAGE.python= pre-configure
+SUBST_FILES.python= tools/seafile-admin
+
+SUBST_SED.python= -e 's,/usr/bin/env python,${PYTHONBIN},'
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../wip/libevhtp/buildlink3.mk"
+.include "../../archivers/libarchive/buildlink3.mk"
+.include "../../devel/libinotify/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../lang/vala/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../wip/libsearpc/buildlink3.mk"
+.include "../../wip/ccnet-server/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/seafile-server/PLIST b/seafile-server/PLIST
new file mode 100644
index 0000000000..f730f31e12
--- /dev/null
+++ b/seafile-server/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD$
+bin/seaf-fsck
+bin/seaf-migrate
+bin/seaf-server
+bin/seaf-server-init
+bin/seafile-admin
+bin/seafile-controller
+bin/seafserv-gc
+include/seafile/seafile-error.h
+include/seafile/seafile-object.h
+include/seafile/seafile-rpc.h
+lib/libseafile.la
+lib/pkgconfig/libseafile.pc
+${PYSITELIB}/seafile/__init__.py
+${PYSITELIB}/seafile/__init__.pyc
+${PYSITELIB}/seafile/__init__.pyo
+${PYSITELIB}/seafile/rpcclient.py
+${PYSITELIB}/seafile/rpcclient.pyc
+${PYSITELIB}/seafile/rpcclient.pyo
+${PYSITELIB}/seaserv/__init__.py
+${PYSITELIB}/seaserv/__init__.pyc
+${PYSITELIB}/seaserv/__init__.pyo
+${PYSITELIB}/seaserv/api.py
+${PYSITELIB}/seaserv/api.pyc
+${PYSITELIB}/seaserv/api.pyo
+${PYSITELIB}/seaserv/service.py
+${PYSITELIB}/seaserv/service.pyc
+${PYSITELIB}/seaserv/service.pyo
diff --git a/seafile-server/buildlink3.mk b/seafile-server/buildlink3.mk
new file mode 100644
index 0000000000..3a386f61f9
--- /dev/null
+++ b/seafile-server/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= seafile-server
+BUILDLINK_TREE+= libseafile
+
+.if !defined(SEAFILE_SERVER_BUILDLINK3_MK)
+SEAFILE_SERVER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.seafile-server+= seafile-server>=6.0.0
+BUILDLINK_PKGSRCDIR.seafile-server?= ../../wip/seafile-server
+.endif # SEAFILE_SERVER_BUILDLINK3_MK
+
+
+.if !defined(LIBSEAFILE_BUILDLINK3_MK)
+LIBSEAFILE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libseafile+= seafile-server>=6.0.0
+BUILDLINK_PKGSRCDIR.libseafile?= ../../wip/seafile-server
+.endif # LIBSEAFILE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libseafile
+BUILDLINK_TREE+= -seafile-server
diff --git a/seafile-server/distinfo b/seafile-server/distinfo
new file mode 100644
index 0000000000..79ddf598ad
--- /dev/null
+++ b/seafile-server/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (seafile-server-6.0.7/v6.0.7-server.tar.gz) = 74ddf1e092ac2e036813d301d98c00320b056563
+RMD160 (seafile-server-6.0.7/v6.0.7-server.tar.gz) = 3d20de6357c3b5bd01632f6fd8b7f6bbbb74a9c3
+SHA512 (seafile-server-6.0.7/v6.0.7-server.tar.gz) = 48f5885c52995ad65781eaf40b8fd8068e0a9a66953208a033874ef419fec79d906ac449c84c9639003a3131f7b7550bb16ad3b50af6e594c123fffa88f76820
+Size (seafile-server-6.0.7/v6.0.7-server.tar.gz) = 695733 bytes
+SHA1 (patch-lib-utils.h) = 1fe5394ef1ee2132e20c94653ae67141d6ce7c8f
+SHA1 (patch-server_http-server.c) = b1b0de74025859b9896dc8e61b03135376a5ca9c
diff --git a/seafile-server/patches/patch-lib-utils.h b/seafile-server/patches/patch-lib-utils.h
new file mode 100644
index 0000000000..aaa880ce3b
--- /dev/null
+++ b/seafile-server/patches/patch-lib-utils.h
@@ -0,0 +1,21 @@
+$NetBSD$
+Already defined in NetBSD.
+--- lib/utils.h.orig 2017-01-12 22:25:43.250993980 +0000
++++ lib/utils.h 2017-01-12 22:26:10.706196178 +0000
+@@ -249,7 +249,7 @@
+ const char *code,
+ const int code_len);
+
+-
++#if !defined(__NetBSD__)
+ /*
+ * Utility functions for converting data to/from network byte order.
+ */
+@@ -271,6 +271,7 @@
+
+ return ret;
+ }
++#endif
+
+ static inline uint64_t
+ hton64(uint64_t val)
diff --git a/seafile-server/patches/patch-server_http-server.c b/seafile-server/patches/patch-server_http-server.c
new file mode 100644
index 0000000000..54ae944b45
--- /dev/null
+++ b/seafile-server/patches/patch-server_http-server.c
@@ -0,0 +1,15 @@
+$NetBSD$
+Missing header causes compile error.
+--- server/http-server.c.orig 2017-01-14 11:07:22.083948169 +0000
++++ server/http-server.c 2017-01-14 11:04:38.229103279 +0000
+@@ -12,6 +12,10 @@
+ #include <event.h>
+ #endif
+
++#if defined(__NetBSD__)
++#include <resolv.h>
++#endif
++
+ #include <evhtp.h>
+
+ #include "utils.h"
Home |
Main Index |
Thread Index |
Old Index