1 |
commit: 5cf40245c05b8755f9408cdb1c0cb79f03e54429 |
2 |
Author: Tiziano Müller <tm <AT> dev-zero <DOT> ch> |
3 |
AuthorDate: Tue Jul 31 08:44:08 2012 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 08:44:08 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=5cf40245 |
7 |
|
8 |
Initial commit, ebuild written by me. |
9 |
|
10 |
--- |
11 |
net-misc/csync/Manifest | 3 + |
12 |
net-misc/csync/csync-0.50.7.ebuild | 56 ++++++++++++++++++++ |
13 |
.../csync/files/0.50.7-configureable-modules.patch | 49 +++++++++++++++++ |
14 |
3 files changed, 108 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/csync/Manifest b/net-misc/csync/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..005172c |
19 |
--- /dev/null |
20 |
+++ b/net-misc/csync/Manifest |
21 |
@@ -0,0 +1,3 @@ |
22 |
+AUX 0.50.7-configureable-modules.patch 1490 RMD160 12c2c246e2cefe003190cf734e6d61c5613d2b69 SHA1 e3e4b64204f100e8ff8abf597e3cc4cee95cc2a9 SHA256 8fe77bdaf47f6db263ee8b7024e506735743d8165cb80bbc662a9342accd7945 |
23 |
+DIST csync-0.50.7.tar.bz2 1331719 RMD160 cfcc492cdd6c9a6ab193f6fae4535ba705a6c713 SHA1 3d5428077471bfc8e18de3746867b6ba9f9e8196 SHA256 01d0de237f97cc087ff813be2637c6d2a125ae76f1535f4f9e86d7ef0da0ae56 |
24 |
+EBUILD csync-0.50.7.ebuild 1340 RMD160 361b5cf278157264b8428660b4fd218363084218 SHA1 95b7fef6613070810773e8f363a2df0c6346b405 SHA256 8fc4a08662927fa7feb867502074648776f7584d833299d76fed21fe509e9754 |
25 |
|
26 |
diff --git a/net-misc/csync/csync-0.50.7.ebuild b/net-misc/csync/csync-0.50.7.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..118f329 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/csync/csync-0.50.7.ebuild |
31 |
@@ -0,0 +1,56 @@ |
32 |
+# Copyright 1999-2012 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Header: $ |
35 |
+ |
36 |
+EAPI=4 |
37 |
+ |
38 |
+MY_P="csync-${PV}" |
39 |
+ |
40 |
+inherit cmake-utils |
41 |
+ |
42 |
+DESCRIPTION="Bidirectional file synchronizer (ownCloud fork)" |
43 |
+HOMEPAGE="http://www.csync.org/ http://owncloud.org/sync-clients/" |
44 |
+SRC_URI="http://download.owncloud.com/download/${MY_P}.tar.bz2" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="owncloud" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="doc log samba sftp test +owncloud" |
50 |
+ |
51 |
+RDEPEND="dev-db/sqlite:3 |
52 |
+ dev-libs/iniparser |
53 |
+ log? ( dev-libs/log4c ) |
54 |
+ samba? ( net-fs/samba ) |
55 |
+ sftp? ( net-libs/libssh[sftp] ) |
56 |
+ owncloud? ( net-libs/neon )" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ doc? ( app-doc/doxygen ) |
59 |
+ test? ( dev-libs/check )" |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+DOCS=( "AUTHORS" "ChangeLog" "README" "doc/csync.txt" ) |
64 |
+HTML_DOCS=( "doc/userguide" ) |
65 |
+PATCHES=( "${FILESDIR}/${PV}-configureable-modules.patch" ) |
66 |
+ |
67 |
+src_configure() { |
68 |
+ mycmakeargs=( |
69 |
+ $(cmake-utils_use_with log LOG4C) |
70 |
+ $(cmake-utils_use_want owncloud OWNCLOUD) |
71 |
+ $(cmake-utils_use_want samba SMB) |
72 |
+ $(cmake-utils_use_want sftp SFTP) |
73 |
+ $(cmake-utils_use test UNIT_TESTING) |
74 |
+ ) |
75 |
+ cmake-utils_src_configure |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ cmake-utils_src_compile |
80 |
+ use doc && emake -C "${CMAKE_BUILD_DIR}" doc |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ cmake-utils_src_install |
85 |
+ rm -rf "${D}/usr/share/doc/${PN}" |
86 |
+ use doc && dohtml -p api "${CMAKE_BUILD_DIR}/doc/html/" |
87 |
+} |
88 |
|
89 |
diff --git a/net-misc/csync/files/0.50.7-configureable-modules.patch b/net-misc/csync/files/0.50.7-configureable-modules.patch |
90 |
new file mode 100644 |
91 |
index 0000000..44ca887 |
92 |
--- /dev/null |
93 |
+++ b/net-misc/csync/files/0.50.7-configureable-modules.patch |
94 |
@@ -0,0 +1,49 @@ |
95 |
+diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt |
96 |
+index 7db7555..de9d395 100644 |
97 |
+--- a/modules/CMakeLists.txt |
98 |
++++ b/modules/CMakeLists.txt |
99 |
+@@ -33,7 +33,7 @@ include_directories( |
100 |
+ ${MODULES_PRIVATE_INCLUDE_DIRS} |
101 |
+ ) |
102 |
+ |
103 |
+-if(LIBSMBCLIENT_FOUND) |
104 |
++if(LIBSMBCLIENT_FOUND AND WANT_SMB) |
105 |
+ include_directories(${LIBSMBCLIENT_INCLUDE_DIRS}) |
106 |
+ macro_add_plugin(${SMB_PLUGIN} csync_smb.c) |
107 |
+ target_link_libraries(${SMB_PLUGIN} ${CSYNC_LIBRARY} ${LIBSMBCLIENT_LIBRARIES}) |
108 |
+@@ -44,12 +44,12 @@ install( |
109 |
+ DESTINATION |
110 |
+ ${PLUGIN_VERSION_INSTALL_DIR} |
111 |
+ ) |
112 |
+-endif() |
113 |
++endif(LIBSMBCLIENT_FOUND AND WANT_SMB) |
114 |
+ |
115 |
+ macro_add_plugin(csync_dummy csync_dummy.c) |
116 |
+ target_link_libraries(csync_dummy ${CSYNC_LIBRARY}) |
117 |
+ |
118 |
+-if (LIBSSH_FOUND) |
119 |
++if (LIBSSH_FOUND AND WANT_SFTP) |
120 |
+ macro_add_plugin(${SFTP_PLUGIN} csync_sftp.c) |
121 |
+ target_link_libraries(${SFTP_PLUGIN} ${CSYNC_LIBRARY} ${LIBSSH_LIBRARIES}) |
122 |
+ |
123 |
+@@ -59,9 +59,9 @@ install( |
124 |
+ DESTINATION |
125 |
+ ${PLUGIN_VERSION_INSTALL_DIR} |
126 |
+ ) |
127 |
+-endif (LIBSSH_FOUND) |
128 |
++endif (LIBSSH_FOUND AND WANT_SFTP) |
129 |
+ |
130 |
+-if (NEON_FOUND) |
131 |
++if (NEON_FOUND AND WANT_OWNCLOUD) |
132 |
+ include_directories( ${NEON_INCLUDE_DIRS} ) |
133 |
+ macro_add_plugin(${OWNCLOUD_PLUGIN} csync_owncloud.c) |
134 |
+ target_link_libraries(${OWNCLOUD_PLUGIN} ${CSYNC_LIBRARY} ${NEON_LIBRARIES}) |
135 |
+@@ -72,7 +72,7 @@ if (NEON_FOUND) |
136 |
+ DESTINATION |
137 |
+ ${PLUGIN_VERSION_INSTALL_DIR} |
138 |
+ ) |
139 |
+-endif (NEON_FOUND) |
140 |
++endif (NEON_FOUND AND WANT_OWNCLOUD) |
141 |
+ |
142 |
+ # create test file as bad plugin for the vio testcase |
143 |
+ file(WRITE |