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