1 |
commit: 91f8e6ccdeecde22eed08e2480ce9a03103251a3 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 11:33:22 2016 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 12:03:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f8e6cc |
7 |
|
8 |
app-admin/clsync: version bump |
9 |
|
10 |
Bump to 0.4.2, update ebuild to EAPI 6. |
11 |
|
12 |
Package-Manager: portage-2.3.1 |
13 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
14 |
|
15 |
app-admin/clsync/Manifest | 1 + |
16 |
app-admin/clsync/clsync-0.4.2.ebuild | 104 +++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 105 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest |
20 |
index a815e0c..f8a75d6 100644 |
21 |
--- a/app-admin/clsync/Manifest |
22 |
+++ b/app-admin/clsync/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST clsync-0.4.1-20150524-v2.patch.xz 13632 SHA256 90a1ef820c83629c528e8c6fe4da5183caf60f8079c4de01a6d26945734c92f7 SHA512 d39c3c4f116eff2365668374ef62f4dfd8e5926267cbbf36b430f97ad5306f92cf6be3164c0e1c3d959db55453f5ded00d98d48af62f9eacde39a9f9667cfbf9 WHIRLPOOL d22fc6a1f0a59514506377f26ab7d9c0f4faca0abab044f2ce2e61ffa973ff04b43da561a4dd5c69d99e21108baa71d77bb2ea524313661b3b2440ceddca56aa |
25 |
DIST clsync-0.4.1.tar.gz 253890 SHA256 3f14a72d7c3c1747ea908e373f25bd1918ce00450492fbb7094549db6bf21e27 SHA512 875280f706026d44806b92c22fa58d016136b2792f67a6b7e77f932465081da7a1ebaf22c25e538e4b58bfe04cd1cd5450ecab99c3df53ddd2a0fa966442d444 WHIRLPOOL 10ab11821766f7d16d03993069ac4da5fe362a1e5977ea6721e49ada7044d3659e59b507b03be4de09609b0a0ca9d7878407d7b6e1f40df5dbe1d041dac373cb |
26 |
+DIST clsync-0.4.2.tar.gz 256042 SHA256 1af63b86c1d0bd663311f2129792446dc8fc4def5559f76658b51b69a8d0c3bd SHA512 d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200 WHIRLPOOL a59446337282cb63455b43bbbf17ad1213e39713d9c267ca5ee8785d863bc90e7b99e5938e4d5be02f3103a98b1bb5d5a628580160952d821e6caaad72fa2679 |
27 |
|
28 |
diff --git a/app-admin/clsync/clsync-0.4.2.ebuild b/app-admin/clsync/clsync-0.4.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..cad8320 |
31 |
--- /dev/null |
32 |
+++ b/app-admin/clsync/clsync-0.4.2.ebuild |
33 |
@@ -0,0 +1,104 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit autotools eutils linux-info |
41 |
+ |
42 |
+DESCRIPTION="Live sync tool based on inotify, written in GNU C" |
43 |
+HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync" |
44 |
+SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+LICENSE="GPL-3+" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="+caps cluster control-socket cgroups debug extra-debug |
49 |
+extra-hardened gio hardened +highload-locks +inotify mhash |
50 |
+namespaces seccomp" |
51 |
+ |
52 |
+REQUIRED_USE=" |
53 |
+ || ( gio inotify ) |
54 |
+ extra-debug? ( debug ) |
55 |
+ extra-hardened? ( hardened ) |
56 |
+ mhash? ( cluster ) |
57 |
+ seccomp? ( caps ) |
58 |
+" |
59 |
+CDEPEND=" |
60 |
+ dev-libs/glib:2 |
61 |
+ cgroups? ( dev-libs/libcgroup ) |
62 |
+ mhash? ( app-crypt/mhash ) |
63 |
+" |
64 |
+DEPEND="${CDEPEND} |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+RDEPEND="${CDEPEND} |
68 |
+ ~app-doc/clsync-docs-${PV} |
69 |
+" |
70 |
+ |
71 |
+pkg_pretend() { |
72 |
+ use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS" |
73 |
+ use seccomp && CONFIG_CHECK+=" ~SECCOMP" |
74 |
+ check_extra_config |
75 |
+} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ eapply_user |
79 |
+ eautoreconf |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local harden_level=0 |
84 |
+ use hardened && harden_level=1 |
85 |
+ use extra-hardened && harden_level=2 |
86 |
+ |
87 |
+ local debug_level=0 |
88 |
+ use debug && debug_level=1 |
89 |
+ use extra-debug && debug_level=2 |
90 |
+ |
91 |
+ econf \ |
92 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
93 |
+ --disable-socket-library \ |
94 |
+ --enable-clsync \ |
95 |
+ --enable-debug=${debug_level} \ |
96 |
+ --enable-paranoid=${harden_level} \ |
97 |
+ --without-bsm \ |
98 |
+ --without-kqueue \ |
99 |
+ $(use_enable caps capabilities) \ |
100 |
+ $(use_enable cluster) \ |
101 |
+ $(use_enable control-socket socket) \ |
102 |
+ $(use_enable highload-locks) \ |
103 |
+ $(use_enable namespaces unshare) \ |
104 |
+ $(use_enable seccomp) \ |
105 |
+ $(use_with cgroups libcgroup) \ |
106 |
+ $(use_with gio gio lib) \ |
107 |
+ $(use_with inotify inotify native) \ |
108 |
+ $(use_with mhash) |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ emake DESTDIR="${D}" install |
113 |
+ |
114 |
+ # docs go into clsync-docs |
115 |
+ rm -rf "${ED}/usr/share/doc" || die |
116 |
+ |
117 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
118 |
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
119 |
+ |
120 |
+ # filter rules and sync scripts are supposed to be here |
121 |
+ keepdir "${EPREFIX}/etc/${PN}" |
122 |
+ insinto "/etc/${PN}" |
123 |
+ newins "${FILESDIR}/${PN}.conf" "${PN}.conf" |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ einfo "${PN} is just a convenient way to run synchronization tools on live data," |
128 |
+ einfo "it doesn't copy data itself, so you need to install software to do actual" |
129 |
+ einfo "data transfer. Usually net-misc/rsync is a good choise, but ${PN} is" |
130 |
+ einfo "is flexible enough to use any user tool, see manual page for details." |
131 |
+ einfo |
132 |
+ einfo "${PN} init script can be multiplexed, to use symlink init script to" |
133 |
+ einfo "othername and use conf.d/othername to configure it." |
134 |
+ einfo |
135 |
+ einfo "If you're interested in improved security, enable" |
136 |
+ einfo "USE=\"caps cgroups hardened namespaces seccomp\"" |
137 |
+} |