pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Adds seafile-daemon. The port needs some cleanups and testing but at least it builds.



Module Name:	pkgsrc-wip
Committed By:	Daniel Oelschlegel <amoibos%gmail.com@localhost>
Pushed By:	amoibos
Date:		Mon Oct 24 01:05:08 2016 +0000
Changeset:	e134f08878d0e6389a0d2ef6dfc55b1ab4eaac5a

Modified Files:
	Makefile
Added Files:
	seafile-daemon/DESCR
	seafile-daemon/Makefile
	seafile-daemon/PLIST
	seafile-daemon/distinfo
	seafile-daemon/patches/patch-daemon_Makefile.am
	seafile-daemon/patches/patch-daemon_http_tx_mgr.c
	seafile-daemon/patches/patch-lib_utils.h
	seafile-daemon/patches/patch-vc_utils.c

Log Message:
Adds seafile-daemon.
The port needs some cleanups and testing but at least it builds.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e134f08878d0e6389a0d2ef6dfc55b1ab4eaac5a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                          |  1 +
 seafile-daemon/DESCR                              |  9 +++++
 seafile-daemon/Makefile                           | 48 +++++++++++++++++++++++
 seafile-daemon/PLIST                              | 26 ++++++++++++
 seafile-daemon/distinfo                           | 10 +++++
 seafile-daemon/patches/patch-daemon_Makefile.am   | 14 +++++++
 seafile-daemon/patches/patch-daemon_http_tx_mgr.c | 16 ++++++++
 seafile-daemon/patches/patch-lib_utils.h          | 21 ++++++++++
 seafile-daemon/patches/patch-vc_utils.c           | 14 +++++++
 9 files changed, 159 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6a7f418..fef0372 100644
--- a/Makefile
+++ b/Makefile
@@ -3791,6 +3791,7 @@ SUBDIR+=	sdif-git
 SUBDIR+=	sdlpop
 SUBDIR+=	sds
 SUBDIR+=	seafile-ccnet
+SUBDIR+=	seafile-daemon
 SUBDIR+=	seafile-libsearpc
 SUBDIR+=	seagull
 SUBDIR+=	sector-decomposition
diff --git a/seafile-daemon/DESCR b/seafile-daemon/DESCR
new file mode 100644
index 0000000..707a668
--- /dev/null
+++ b/seafile-daemon/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-daemon/Makefile b/seafile-daemon/Makefile
new file mode 100644
index 0000000..7c5e85d
--- /dev/null
+++ b/seafile-daemon/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD$
+PKGNAME=	seafile-daemon-6.0.0
+CATEGORIES=	net
+GHCOMMIT=	bea8cc526ed37b8c9599e5f526d934c8ec90d288
+DISTNAME=	${GHCOMMIT}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=haiwen/seafile/archive/}
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	amoibos%gmail.com@localhost
+HOMEPAGE=	http://seafile.com/
+COMMENT=	Seafile daemon
+LICENSE=	gnu-gpl-v2
+
+DIST_SUBDIR=	seafile
+WRKSRC=		${WRKDIR}/seafile-${GHCOMMIT}
+
+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
+
+CONFIGURE_ARGS+=	--disable-fuse \
+			--disable-server
+
+DEPENDS+=	${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
+DEPENDS+=	seafile-libsearpc-3.0{,nb*}:../../wip/seafile-libsearpc
+
+pre-configure:
+	set -e; cd ${WRKSRC}; \
+	libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.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/seafile-libsearpc/buildlink3.mk"
+.include "../../wip/seafile-ccnet/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/seafile-daemon/PLIST b/seafile-daemon/PLIST
new file mode 100644
index 0000000..75e5ad4
--- /dev/null
+++ b/seafile-daemon/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD$
+bin/seaf-cli
+bin/seaf-daemon
+include/seafile/monitor-rpc.h
+include/seafile/seafile-object.h
+include/seafile/seafile-rpc.h
+include/seafile/seafile.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
+man/man1/seaf-cli.1
+man/man1/seaf-daemon.1
diff --git a/seafile-daemon/distinfo b/seafile-daemon/distinfo
new file mode 100644
index 0000000..8a60731
--- /dev/null
+++ b/seafile-daemon/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (seafile/bea8cc526ed37b8c9599e5f526d934c8ec90d288.zip) = 96b06cf74a9e12a9a6e78dca49dbe4458700aba0
+RMD160 (seafile/bea8cc526ed37b8c9599e5f526d934c8ec90d288.zip) = 366fcee5372146af431f1dbe7d95860512b9594d
+SHA512 (seafile/bea8cc526ed37b8c9599e5f526d934c8ec90d288.zip) = a6021391914068edd84fe5f98feea555ca4d564dfccb76cb3e7fc6bd03509a271c47f58224ce2892470543bc7457919c73c798e4f22372f987b56d0002d0bee5
+Size (seafile/bea8cc526ed37b8c9599e5f526d934c8ec90d288.zip) = 1468287 bytes
+SHA1 (patch-daemon_Makefile.am) = d0a43e73e12c584e24e240f430a759f8f5c7d67c
+SHA1 (patch-daemon_http_tx_mgr.c) = 00b1ff983c45f35116b7fb3a8ea6481f604ec00a
+SHA1 (patch-lib_utils.h) = 37a61821d65385dff8141f42e5545990bc2ed57f
+SHA1 (patch-vc_utils.c) = a892b11127a3f39b5a818c7a511e594c0bd1a564
diff --git a/seafile-daemon/patches/patch-daemon_Makefile.am b/seafile-daemon/patches/patch-daemon_Makefile.am
new file mode 100644
index 0000000..8055fb2
--- /dev/null
+++ b/seafile-daemon/patches/patch-daemon_Makefile.am
@@ -0,0 +1,14 @@
+$NetBSD$
+Fix build error due missing inotify lib, patch adapted from OpenBSDs version
+
+--- daemon/Makefile.am.orig	2016-10-24 00:46:06.023235453 +0000
++++ daemon/Makefile.am	2016-10-24 00:46:35.667980995 +0000
+@@ -123,7 +123,7 @@
+ 
+ seaf_daemon_LDADD = $(top_builddir)/lib/libseafile_common.la \
+ 	@LIB_INTL@ \
+-	@GLIB2_LIBS@  @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ \
++	@GLIB2_LIBS@  @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ -linotify \
+ 	$(top_builddir)/common/cdc/libcdc.la \
+ 	$(top_builddir)/common/index/libindex.la @LIB_WS32@ @LIB_CRYPT32@ \
+ 	@SEARPC_LIBS@ @CCNET_LIBS@ @GNOME_KEYRING_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @BPWRAPPER_LIBS@
diff --git a/seafile-daemon/patches/patch-daemon_http_tx_mgr.c b/seafile-daemon/patches/patch-daemon_http_tx_mgr.c
new file mode 100644
index 0000000..177f852
--- /dev/null
+++ b/seafile-daemon/patches/patch-daemon_http_tx_mgr.c
@@ -0,0 +1,16 @@
+$NetBSD$
+Missing BSD detection causes undefined USER_AGENT_OS, adapted from OpenBSDs port
+
+--- daemon/http-tx-mgr.c.orig	2016-10-24 00:42:15.434281419 +0000
++++ daemon/http-tx-mgr.c	2016-10-24 00:42:53.206206478 +0000
+@@ -60,6 +60,10 @@
+ #define USER_AGENT_OS "Linux"
+ #endif
+ 
++#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
++#define USER_AGENT_OS "BSD"
++#endif
++
+ struct _Connection {
+     CURL *curl;
+     gint64 ctime;               /* Used to clean up unused connection. */
diff --git a/seafile-daemon/patches/patch-lib_utils.h b/seafile-daemon/patches/patch-lib_utils.h
new file mode 100644
index 0000000..5057ac7
--- /dev/null
+++ b/seafile-daemon/patches/patch-lib_utils.h
@@ -0,0 +1,21 @@
+$NetBSD$
+Function bswap64 already defined in NetBSD
+
+--- lib/utils.h.orig	2016-10-24 00:15:07.519135846 +0000
++++ lib/utils.h	2016-10-24 00:16:37.094914530 +0000
+@@ -253,6 +253,7 @@
+                const int code_len);
+ 
+ 
++#if !defined(__NetBSD__)
+ /*
+  * Utility functions for converting data to/from network byte order.
+  */
+@@ -274,6 +275,7 @@
+ 
+     return ret;
+ }
++#endif
+ 
+ static inline uint64_t
+ hton64(uint64_t val)
diff --git a/seafile-daemon/patches/patch-vc_utils.c b/seafile-daemon/patches/patch-vc_utils.c
new file mode 100644
index 0000000..f2a3fbe
--- /dev/null
+++ b/seafile-daemon/patches/patch-vc_utils.c
@@ -0,0 +1,14 @@
+$NetBSD$
+Add missing BSD detection, patch adapted from OpenBSDs port
+
+--- daemon/vc-utils.c.orig	2016-10-24 00:54:33.869754994 +0000
++++ daemon/vc-utils.c	2016-10-24 00:55:29.849646175 +0000
+@@ -376,7 +376,7 @@
+     return hashcmp (sha1, ce_sha1);
+ }
+ 
+-#if defined WIN32 || defined __APPLE__
++#if defined WIN32 || defined __APPLE__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
+ 
+ /*
+  * If the names are different case-sensitively but the same case-insensitively,


Home | Main Index | Thread Index | Old Index