Fri Nov 22 12:01:13 2013 UTC ()
Import ocsync-0.90.4 as net/ocsync.
OwnCloud edition of csync command. This is a part of owncloud client.
(ryoon)
diff -r0 -r1.1 pkgsrc/net/ocsync/DESCR
diff -r0 -r1.1 pkgsrc/net/ocsync/Makefile
diff -r0 -r1.1 pkgsrc/net/ocsync/PLIST
diff -r0 -r1.1 pkgsrc/net/ocsync/buildlink3.mk
diff -r0 -r1.1 pkgsrc/net/ocsync/distinfo
diff -r0 -r1.1 pkgsrc/net/ocsync/patches/patch-cmake_Modules_DefineInstallationPaths.cmake
diff -r0 -r1.1 pkgsrc/net/ocsync/patches/patch-config_CMakeLists.txt
diff -r0 -r1.1 pkgsrc/net/ocsync/patches/patch-src_std_c__string.c
OwnCloud edition of csync command. This is a part of owncloud client.
# $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"
@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
# $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
$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
$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
$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
)
$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;