diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-11-22 12:01:13 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-11-22 12:01:13 +0000 |
commit | 5c3b6eae31f109d0e7ff98cdd0e6c8b6a45618cb (patch) | |
tree | e151e9b80bbbafdcc26d747e34c6ab3117ca2c53 | |
parent | fdda253303938a8315927ab60e4c63f067a06ad7 (diff) | |
download | pkgsrc-5c3b6eae31f109d0e7ff98cdd0e6c8b6a45618cb.tar.gz |
Import ocsync-0.90.4 as net/ocsync.
OwnCloud edition of csync command. This is a part of owncloud client.
-rw-r--r-- | net/ocsync/DESCR | 1 | ||||
-rw-r--r-- | net/ocsync/Makefile | 37 | ||||
-rw-r--r-- | net/ocsync/PLIST | 45 | ||||
-rw-r--r-- | net/ocsync/buildlink3.mk | 17 | ||||
-rw-r--r-- | net/ocsync/distinfo | 8 | ||||
-rw-r--r-- | net/ocsync/patches/patch-cmake_Modules_DefineInstallationPaths.cmake | 15 | ||||
-rw-r--r-- | net/ocsync/patches/patch-config_CMakeLists.txt | 18 | ||||
-rw-r--r-- | net/ocsync/patches/patch-src_std_c__string.c | 18 |
8 files changed, 159 insertions, 0 deletions
diff --git a/net/ocsync/DESCR b/net/ocsync/DESCR new file mode 100644 index 00000000000..2f407b0a9ee --- /dev/null +++ b/net/ocsync/DESCR @@ -0,0 +1 @@ +OwnCloud edition of csync command. This is a part of owncloud client. diff --git a/net/ocsync/Makefile b/net/ocsync/Makefile new file mode 100644 index 00000000000..46efa984ddb --- /dev/null +++ b/net/ocsync/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +DISTNAME= ocsync-0.90.4 +CATEGORIES= net +MASTER_SITES= http://download.owncloud.com/desktop/stable/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://owncloud.org/sync-clients/ +COMMENT= File synchronization program for OwnCloud +LICENSE= gnu-gpl-v2 + +EXTRACT_USING= bsdtar + +USE_LANGUAGES= c c++ + +USE_CMAKE= yes +OBJDIR= ../build +CONFIGURE_DIRS= ${OBJDIR} +CMAKE_ARG_PATH= ../${DISTNAME} + +EGDIR= ${PREFIX}/share/examples/ocsync +CONF_FILES+= ${EGDIR}/ocsync.conf.default ${PKG_SYSCONFDIR}/ocsync.conf +CONF_FILES+= ${EGDIR}/ocsync_exclude.conf.default \ + ${PKG_SYSCONFDIR}/ocsync_exclude.conf + +pre-configure: + cd ${WRKSRC} && mkdir ${OBJDIR} + cd ${WRKSRC}/config && ${CP} ocsync.conf ocsync.conf.default + cd ${WRKSRC}/config && ${CP} ocsync_exclude.conf \ + ocsync_exclude.conf.default + +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../devel/iniparser/buildlink3.mk" +.include "../../security/libssh/buildlink3.mk" +.include "../../www/neon/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/ocsync/PLIST b/net/ocsync/PLIST new file mode 100644 index 00000000000..3e78d167009 --- /dev/null +++ b/net/ocsync/PLIST @@ -0,0 +1,45 @@ +@comment $NetBSD: PLIST,v 1.1 2013/11/22 12:01:13 ryoon Exp $ +bin/ocsync +include/ocsync/csync.h +include/ocsync/csync_version.h +include/ocsync/csync_vio.h +include/ocsync/csync_vio_file_stat.h +include/ocsync/csync_vio_handle.h +include/ocsync/csync_vio_method.h +include/ocsync/csync_vio_module.h +lib/libhttpbflib.a +lib/libocsync.so +lib/libocsync.so.0 +lib/libocsync.so.0.2.1 +lib/ocsync-0/ocsync_owncloud.so +lib/ocsync-0/ocsync_sftp.so +man/man1/ocsync.1 +share/doc/ocsync/userguide/csync.html +share/doc/ocsync/userguide/images/icons/README +share/doc/ocsync/userguide/images/icons/callouts/1.png +share/doc/ocsync/userguide/images/icons/callouts/10.png +share/doc/ocsync/userguide/images/icons/callouts/11.png +share/doc/ocsync/userguide/images/icons/callouts/12.png +share/doc/ocsync/userguide/images/icons/callouts/13.png +share/doc/ocsync/userguide/images/icons/callouts/14.png +share/doc/ocsync/userguide/images/icons/callouts/15.png +share/doc/ocsync/userguide/images/icons/callouts/2.png +share/doc/ocsync/userguide/images/icons/callouts/3.png +share/doc/ocsync/userguide/images/icons/callouts/4.png +share/doc/ocsync/userguide/images/icons/callouts/5.png +share/doc/ocsync/userguide/images/icons/callouts/6.png +share/doc/ocsync/userguide/images/icons/callouts/7.png +share/doc/ocsync/userguide/images/icons/callouts/8.png +share/doc/ocsync/userguide/images/icons/callouts/9.png +share/doc/ocsync/userguide/images/icons/caution.png +share/doc/ocsync/userguide/images/icons/example.png +share/doc/ocsync/userguide/images/icons/home.png +share/doc/ocsync/userguide/images/icons/important.png +share/doc/ocsync/userguide/images/icons/next.png +share/doc/ocsync/userguide/images/icons/note.png +share/doc/ocsync/userguide/images/icons/prev.png +share/doc/ocsync/userguide/images/icons/tip.png +share/doc/ocsync/userguide/images/icons/up.png +share/doc/ocsync/userguide/images/icons/warning.png +share/examples/ocsync/ocsync.conf.default +share/examples/ocsync/ocsync_exclude.conf.default diff --git a/net/ocsync/buildlink3.mk b/net/ocsync/buildlink3.mk new file mode 100644 index 00000000000..be1d2770388 --- /dev/null +++ b/net/ocsync/buildlink3.mk @@ -0,0 +1,17 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +BUILDLINK_TREE+= ocsync + +.if !defined(OCSYNC_BUILDLINK3_MK) +OCSYNC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ocsync+= ocsync>=0.90.4 +BUILDLINK_PKGSRCDIR.ocsync?= ../../net/ocsync + +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../devel/iniparser/buildlink3.mk" +.include "../../security/libssh/buildlink3.mk" +.include "../../www/neon/buildlink3.mk" +.endif # OCSYNC_BUILDLINK3_MK + +BUILDLINK_TREE+= -ocsync diff --git a/net/ocsync/distinfo b/net/ocsync/distinfo new file mode 100644 index 00000000000..0832ee88da2 --- /dev/null +++ b/net/ocsync/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +SHA1 (ocsync-0.90.4.tar.bz2) = d53a64177addc9fcdd831a0a78786eca25b2588a +RMD160 (ocsync-0.90.4.tar.bz2) = b6208a9c0ae452f16f0ced32c1b5635df06d3b99 +Size (ocsync-0.90.4.tar.bz2) = 4630698 bytes +SHA1 (patch-cmake_Modules_DefineInstallationPaths.cmake) = 785dbb9f7c7f7fb6218470985818145f87f0688c +SHA1 (patch-config_CMakeLists.txt) = b387f38a79d9f85e3f67060a2cb689bb13dd1c28 +SHA1 (patch-src_std_c__string.c) = 65927e8f7c222edfde66136a331ae81b0f4fcd4c diff --git a/net/ocsync/patches/patch-cmake_Modules_DefineInstallationPaths.cmake b/net/ocsync/patches/patch-cmake_Modules_DefineInstallationPaths.cmake new file mode 100644 index 00000000000..7815e329ea2 --- /dev/null +++ b/net/ocsync/patches/patch-cmake_Modules_DefineInstallationPaths.cmake @@ -0,0 +1,15 @@ +$NetBSD: patch-cmake_Modules_DefineInstallationPaths.cmake,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +* Fix man pages destination + +--- cmake/Modules/DefineInstallationPaths.cmake.orig 2013-10-18 13:11:09.000000000 +0000 ++++ cmake/Modules/DefineInstallationPaths.cmake +@@ -83,7 +83,7 @@ if (UNIX) + CACHE PATH "The ${APPLICATION_NAME} sysconfig install dir (default prefix/etc)" + ) + SET(MAN_INSTALL_DIR +- "${SHARE_INSTALL_PREFIX}/man" ++ "${CMAKE_INSTALL_PREFIX}/man" + CACHE PATH "The ${APPLICATION_NAME} man install dir (default prefix/man)" + ) + SET(INFO_INSTALL_DIR diff --git a/net/ocsync/patches/patch-config_CMakeLists.txt b/net/ocsync/patches/patch-config_CMakeLists.txt new file mode 100644 index 00000000000..618f478999d --- /dev/null +++ b/net/ocsync/patches/patch-config_CMakeLists.txt @@ -0,0 +1,18 @@ +$NetBSD: patch-config_CMakeLists.txt,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +* Install config file with pkgsrc way + +--- config/CMakeLists.txt.orig 2013-10-18 13:11:09.000000000 +0000 ++++ config/CMakeLists.txt +@@ -3,8 +3,8 @@ macro_copy_file(${CMAKE_CURRENT_SOURCE_D + + install( + FILES +- ocsync.conf +- ocsync_exclude.conf ++ ocsync.conf.default ++ ocsync_exclude.conf.default + DESTINATION +- ${SYSCONF_INSTALL_DIR}/ocsync ++ ${SHARE_INSTALL_PREFIX}/examples/ocsync + ) diff --git a/net/ocsync/patches/patch-src_std_c__string.c b/net/ocsync/patches/patch-src_std_c__string.c new file mode 100644 index 00000000000..3edc36cb00e --- /dev/null +++ b/net/ocsync/patches/patch-src_std_c__string.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_std_c__string.c,v 1.1 2013/11/22 12:01:13 ryoon Exp $ + +* For NetBSD iconv(3), this should be fixed for GNU iconv and NetBSD case. + +--- src/std/c_string.c.orig 2013-10-18 13:11:09.000000000 +0000 ++++ src/std/c_string.c +@@ -83,7 +83,11 @@ enum iconv_direction { iconv_from_native + + static char *c_iconv(const char* str, enum iconv_direction dir) + { ++#if !defined(__NetBSD__) + char *in = (char*)str; ++#else ++ const char *in = (char*)str; ++#endif + size_t size; + size_t outsize; + char *out; |