summaryrefslogtreecommitdiff
path: root/net/mirall
diff options
context:
space:
mode:
authorryoon <ryoon>2013-11-22 12:11:49 +0000
committerryoon <ryoon>2013-11-22 12:11:49 +0000
commitf9de02862f006be288087daf05840ff1fe29d88b (patch)
tree65e3f4db6adca1ee8c634d7b2a69d036a7dd181a /net/mirall
parent573b68ff746fa9198388eb5f3fc50a786766f9af (diff)
downloadpkgsrc-f9de02862f006be288087daf05840ff1fe29d88b.tar.gz
Import mirall-1.4.2 as net/mirall.
Mirall is a tool to synchronize files from ownCloud Server with your computer. It uses OCSync as its syncing backend.
Diffstat (limited to 'net/mirall')
-rw-r--r--net/mirall/DESCR2
-rw-r--r--net/mirall/MESSAGE6
-rw-r--r--net/mirall/Makefile51
-rw-r--r--net/mirall/PLIST42
-rw-r--r--net/mirall/distinfo10
-rw-r--r--net/mirall/patches/patch-CMakeLists.txt14
-rw-r--r--net/mirall/patches/patch-cmake_modules_FindCsync.cmake23
-rw-r--r--net/mirall/patches/patch-src_CMakeLists.txt12
-rw-r--r--net/mirall/patches/patch-src_mirall_application.cpp13
-rw-r--r--net/mirall/patches/patch-src_mirall_utility.cpp15
10 files changed, 188 insertions, 0 deletions
diff --git a/net/mirall/DESCR b/net/mirall/DESCR
new file mode 100644
index 00000000000..81cbfc7f972
--- /dev/null
+++ b/net/mirall/DESCR
@@ -0,0 +1,2 @@
+Mirall is a tool to synchronize files from ownCloud Server with
+your computer. It uses OCSync as its syncing backend.
diff --git a/net/mirall/MESSAGE b/net/mirall/MESSAGE
new file mode 100644
index 00000000000..700891e4d29
--- /dev/null
+++ b/net/mirall/MESSAGE
@@ -0,0 +1,6 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+To see the status of mirall's owncloud command. You should have status bar
+of XFCE or other desktop environment.
+===========================================================================
diff --git a/net/mirall/Makefile b/net/mirall/Makefile
new file mode 100644
index 00000000000..4bb2265cc50
--- /dev/null
+++ b/net/mirall/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+DISTNAME= mirall-1.4.2
+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= TODO: Short description of the package
+LICENSE= gnu-gpl-v2
+
+CFLAGS+= -g
+
+USE_LANGUAGES= c c++
+
+USE_CMAKE= yes
+OBJDIR= ../build
+CONFIGURE_DIRS= ${OBJDIR}
+CMAKE_ARG_PATH= ../${DISTNAME}
+
+FIND_PREFIX:= OCSYNCDIR=ocsync
+.include "../../mk/find-prefix.mk"
+
+CMAKE_ARGS+= -DCSYNC_BUILD_PATH=${OCSYNCDIR}/bin
+CMAKE_ARGS+= -DCSYNC_LIBRARY_PATH=${OCSYNCDIR}/lib
+CMAKE_ARGS+= -DCSYNC_INCLUDE_PATH=${OCSYNCDIR}/include/ocsync
+
+BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+
+LDFLAGS.NetBSD+= -linotify
+
+ETCDIR= etc/OwnCloud
+INSTALLATION_DIRS= ${ETCDIR}
+EGDIR= ${PREFIX}/share/examples/mirall
+CONF_FILES+= ${EGDIR}/sync-exclude.lst \
+ ${PKG_SYSCONFDIR}/OwnCloud/sync-exclude.lst
+
+pre-configure:
+ cd ${WRKSRC} && mkdir ${OBJDIR}
+
+post-install:
+ touch ${DESTDIR}${PREFIX}/${ETCDIR}/.empty
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../devel/libinotify/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../net/ocsync/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/qt4-qdbus/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/mirall/PLIST b/net/mirall/PLIST
new file mode 100644
index 00000000000..76f023f67e2
--- /dev/null
+++ b/net/mirall/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+bin/owncloud
+etc/OwnCloud/.empty
+lib/libowncloudsync.so
+lib/libowncloudsync.so.0
+lib/libowncloudsync.so.${PKGVERSION}
+share/applications/owncloud.desktop
+share/examples/mirall/sync-exclude.lst
+share/icons/hicolor/128x128/apps/owncloud.png
+share/icons/hicolor/22x22/apps/owncloud.png
+share/icons/hicolor/32x32/apps/owncloud.png
+share/icons/hicolor/48x48/apps/owncloud.png
+share/icons/hicolor/64x64/apps/owncloud.png
+share/owncloud/i18n/mirall_TW.qm
+share/owncloud/i18n/mirall_ca.qm
+share/owncloud/i18n/mirall_cs.qm
+share/owncloud/i18n/mirall_de.qm
+share/owncloud/i18n/mirall_el.qm
+share/owncloud/i18n/mirall_en.qm
+share/owncloud/i18n/mirall_es.qm
+share/owncloud/i18n/mirall_es_AR.qm
+share/owncloud/i18n/mirall_et.qm
+share/owncloud/i18n/mirall_eu.qm
+share/owncloud/i18n/mirall_fa.qm
+share/owncloud/i18n/mirall_fi.qm
+share/owncloud/i18n/mirall_fr.qm
+share/owncloud/i18n/mirall_gl.qm
+share/owncloud/i18n/mirall_hu.qm
+share/owncloud/i18n/mirall_it.qm
+share/owncloud/i18n/mirall_ja.qm
+share/owncloud/i18n/mirall_nl.qm
+share/owncloud/i18n/mirall_pl.qm
+share/owncloud/i18n/mirall_pt.qm
+share/owncloud/i18n/mirall_pt_BR.qm
+share/owncloud/i18n/mirall_ru.qm
+share/owncloud/i18n/mirall_sk.qm
+share/owncloud/i18n/mirall_sl.qm
+share/owncloud/i18n/mirall_sv.qm
+share/owncloud/i18n/mirall_th.qm
+share/owncloud/i18n/mirall_uk.qm
+share/owncloud/i18n/mirall_zh_CN.qm
+share/owncloud/i18n/mirall_zh_TW.qm
diff --git a/net/mirall/distinfo b/net/mirall/distinfo
new file mode 100644
index 00000000000..b1af11ce797
--- /dev/null
+++ b/net/mirall/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+SHA1 (mirall-1.4.2.tar.bz2) = 5b4271032d6fe9af1db9984845277cc6cc8e34f1
+RMD160 (mirall-1.4.2.tar.bz2) = 59f5eae1b60bf0aef286ce2a97b314d15d04a6d1
+Size (mirall-1.4.2.tar.bz2) = 1255233 bytes
+SHA1 (patch-CMakeLists.txt) = b1f69e3e21849cd08b7f933f34616f8e7b26e177
+SHA1 (patch-cmake_modules_FindCsync.cmake) = 08657220576b3e55841c87da7dcf9a5c8bc30702
+SHA1 (patch-src_CMakeLists.txt) = d1e84d12102029af33c05a688e684fa69f80afab
+SHA1 (patch-src_mirall_application.cpp) = db8deda7ab5665cf1b7a98e60ba512f4c951c9d1
+SHA1 (patch-src_mirall_utility.cpp) = d7126e1279d1699b7a965a68507c0cfc594cbfbc
diff --git a/net/mirall/patches/patch-CMakeLists.txt b/net/mirall/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..4a879f452ba
--- /dev/null
+++ b/net/mirall/patches/patch-CMakeLists.txt
@@ -0,0 +1,14 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+--- CMakeLists.txt.orig 2013-10-21 12:05:25.000000000 +0000
++++ CMakeLists.txt
+@@ -103,8 +103,4 @@ if(UNIT_TESTING)
+ add_subdirectory(test)
+ endif(UNIT_TESTING)
+
+-if(BUILD_OWNCLOUD_OSX_BUNDLE)
+- configure_file(sync-exclude.lst ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/sync-exclude.lst COPYONLY)
+-else()
+- install( FILES sync-exclude.lst DESTINATION ${SYSCONFDIR}/${APPLICATION_SHORTNAME} )
+-endif()
++ install( FILES sync-exclude.lst DESTINATION ${SHARE_INSTALL_PREFIX}/examples/mirall)
diff --git a/net/mirall/patches/patch-cmake_modules_FindCsync.cmake b/net/mirall/patches/patch-cmake_modules_FindCsync.cmake
new file mode 100644
index 00000000000..13382085a90
--- /dev/null
+++ b/net/mirall/patches/patch-cmake_modules_FindCsync.cmake
@@ -0,0 +1,23 @@
+$NetBSD: patch-cmake_modules_FindCsync.cmake,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+* Use ocsync from outside of its source directory
+
+--- cmake/modules/FindCsync.cmake.orig 2013-10-21 12:05:25.000000000 +0000
++++ cmake/modules/FindCsync.cmake
+@@ -1,14 +1,13 @@
+
+ IF( DEFINED CSYNC_BUILD_PATH )
+- SET(CSYNC_LIBRARY_PATH ${CSYNC_BUILD_PATH})
+ SET(CSYNC_BINARY_DIR ${CSYNC_BUILD_PATH})
+
+ IF(WIN32)
+ SET(CSYNC_LIBRARY ${CSYNC_BUILD_PATH}/src/libocsync.dll)
+ ELSEIF( APPLE )
+- SET(CSYNC_LIBRARY ${CSYNC_BUILD_PATH}/src/libocsync.dylib)
++ SET(CSYNC_LIBRARY ${CSYNC_LIBRARY_PATH}/libocsync.dylib)
+ ELSE()
+- SET(CSYNC_LIBRARY ${CSYNC_BUILD_PATH}/src/libocsync.so)
++ SET(CSYNC_LIBRARY ${CSYNC_LIBRARY_PATH}/libocsync.so)
+ ENDIF()
+ ELSE()
+ FIND_LIBRARY(CSYNC_LIBRARY NAMES ocsync HINTS $ENV{CSYNC_DIR})
diff --git a/net/mirall/patches/patch-src_CMakeLists.txt b/net/mirall/patches/patch-src_CMakeLists.txt
new file mode 100644
index 00000000000..1b1e1b9d18d
--- /dev/null
+++ b/net/mirall/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_CMakeLists.txt,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+--- src/CMakeLists.txt.orig 2013-10-21 12:05:25.000000000 +0000
++++ src/CMakeLists.txt
+@@ -140,7 +140,6 @@ qt4_wrap_cpp(syncMoc ${libsync_HEADERS})
+ list(APPEND libsync_LINK_TARGETS
+ ${QT_LIBRARIES}
+ ${CSYNC_LIBRARY}
+- dl
+ )
+
+ if(QTKEYCHAIN_FOUND)
diff --git a/net/mirall/patches/patch-src_mirall_application.cpp b/net/mirall/patches/patch-src_mirall_application.cpp
new file mode 100644
index 00000000000..168f01c29d0
--- /dev/null
+++ b/net/mirall/patches/patch-src_mirall_application.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_mirall_application.cpp,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+--- src/mirall/application.cpp.orig 2013-10-21 12:05:25.000000000 +0000
++++ src/mirall/application.cpp
+@@ -81,7 +81,7 @@ static const char optionsC[] =
+
+ QString applicationTrPath()
+ {
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) || defined(Q_OS_NETBSD)
+ return QString::fromLatin1(DATADIR"/"APPLICATION_EXECUTABLE"/i18n/");
+ #endif
+ #ifdef Q_OS_MAC
diff --git a/net/mirall/patches/patch-src_mirall_utility.cpp b/net/mirall/patches/patch-src_mirall_utility.cpp
new file mode 100644
index 00000000000..1b56358b64f
--- /dev/null
+++ b/net/mirall/patches/patch-src_mirall_utility.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_mirall_utility.cpp,v 1.1 2013/11/22 12:11:49 ryoon Exp $
+
+* https://github.com/owncloud/mirall/issues/1060
+
+--- src/mirall/utility.cpp.orig 2013-10-21 12:05:25.000000000 +0000
++++ src/mirall/utility.cpp
+@@ -315,7 +315,7 @@ void Utility::setLaunchOnStartup(const Q
+
+ qint64 Utility::freeDiskSpace(const QString &path, bool *ok)
+ {
+-#ifdef Q_OS_MAC
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
+ struct statvfs stat;
+ statvfs(path.toUtf8().data(), &stat);
+ return (qint64) stat.f_bavail * stat.f_frsize;