[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2024-01-07 Thread Michał Górny
commit: 9e9a0954e4edcfcf7fb9b91d7fdb913968daba46
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec 26 16:17:23 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jan  7 11:36:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e9a0954

app-admin/clsync: [QA] Remove invalid USE=lto

USE=lto in this package only appends -flto flag.  This is not a valid
use of the USE flag, as lto in Gentoo is enabled via setting flags
manually.

Signed-off-by: Michał Górny  gentoo.org>

 app-admin/clsync/clsync-0.4.5.ebuild | 7 ---
 app-admin/clsync/clsync-.ebuild  | 7 ---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/app-admin/clsync/clsync-0.4.5.ebuild 
b/app-admin/clsync/clsync-0.4.5.ebuild
index 239047ab2b24..a8a38fe6d81f 100644
--- a/app-admin/clsync/clsync-0.4.5.ebuild
+++ b/app-admin/clsync/clsync-0.4.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,7 @@ LICENSE="GPL-3+"
 SLOT="0"
 IUSE="apidoc +caps +clsync cluster control-socket cgroups doc debug
 examples extra-debug extra-hardened gio +hardened +highload-locks
-+inotify +lto mhash namespaces seccomp socket-library static-libs"
++inotify mhash namespaces seccomp socket-library static-libs"
 
 REQUIRED_USE="
|| ( clsync socket-library )
@@ -65,7 +65,9 @@ src_configure() {
use debug && debug_level=1
use extra-debug && debug_level=2
 
+   # --enable-lto just appends -flto
econf \
+   --disable-lto \
--enable-debug=${debug_level} \
--enable-paranoid=${harden_level} \
--without-bsm \
@@ -75,7 +77,6 @@ src_configure() {
$(use_enable cluster) \
$(use_enable control-socket socket) \
$(use_enable highload-locks) \
-   $(use_enable lto) \
$(use_enable namespaces unshare) \
$(use_enable seccomp) \
$(use_enable socket-library) \

diff --git a/app-admin/clsync/clsync-.ebuild 
b/app-admin/clsync/clsync-.ebuild
index 3c91bb41d6fe..8c8429b74c63 100644
--- a/app-admin/clsync/clsync-.ebuild
+++ b/app-admin/clsync/clsync-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,7 @@ LICENSE="GPL-3+"
 SLOT="0"
 IUSE="apidoc +caps +clsync cluster control-socket cgroups doc debug
 examples extra-debug extra-hardened gio +hardened +highload-locks
-+inotify +lto mhash namespaces seccomp socket-library static-libs"
++inotify mhash namespaces seccomp socket-library static-libs"
 
 REQUIRED_USE="
|| ( clsync socket-library )
@@ -65,7 +65,9 @@ src_configure() {
use debug && debug_level=1
use extra-debug && debug_level=2
 
+   # --enable-lto just appends -flto
econf \
+   --disable-lto \
--enable-debug=${debug_level} \
--enable-paranoid=${harden_level} \
--without-bsm \
@@ -75,7 +77,6 @@ src_configure() {
$(use_enable cluster) \
$(use_enable control-socket socket) \
$(use_enable highload-locks) \
-   $(use_enable lto) \
$(use_enable namespaces unshare) \
$(use_enable seccomp) \
$(use_enable socket-library) \



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-12-18 Thread Agostino Sarubbo
commit: 92d19df22e1507e004e1b1efae74327c8a02b1bc
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Dec 18 10:48:21 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Dec 18 10:48:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d19df2

app-admin/clsync: amd64 stable wrt bug #757618

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 app-admin/clsync/clsync-0.4.5.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-admin/clsync/clsync-0.4.5.ebuild 
b/app-admin/clsync/clsync-0.4.5.ebuild
index ba4c91c7f45..2d61d65f2f0 100644
--- a/app-admin/clsync/clsync-0.4.5.ebuild
+++ b/app-admin/clsync/clsync-0.4.5.ebuild
@@ -6,10 +6,10 @@ EAPI=7
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://github.com/clsync/clsync.git;
inherit git-r3
-   KEYWORDS="x86"
+   KEYWORDS="amd64 x86"
 else
SRC_URI="https://github.com/clsync/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 x86"
+   KEYWORDS="amd64 x86"
 fi
 
 inherit autotools linux-info systemd



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-11-08 Thread Andrew Savchenko
commit: c5f4621f3787eca11e2673bfaf964c8fa2b22ae8
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Nov  8 14:13:27 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Nov  8 14:35:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f4621f

app-admin/clsync: update live ebuild to reflect upstream changes

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/clsync-.ebuild | 5 +++--
 app-admin/clsync/metadata.xml   | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app-admin/clsync/clsync-.ebuild 
b/app-admin/clsync/clsync-.ebuild
index 05e00ff84f2..c17448327bb 100644
--- a/app-admin/clsync/clsync-.ebuild
+++ b/app-admin/clsync/clsync-.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
KEYWORDS=""
 else
-   SRC_URI="https://github.com/clsync/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+   SRC_URI="https://github.com/clsync/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
 fi
 
@@ -20,7 +20,7 @@ LICENSE="GPL-3+"
 SLOT="0"
 IUSE="apidoc +caps +clsync cluster control-socket cgroups doc debug
 examples extra-debug extra-hardened gio +hardened +highload-locks
-+inotify mhash namespaces seccomp socket-library static-libs"
++inotify +lto mhash namespaces seccomp socket-library static-libs"
 
 REQUIRED_USE="
|| ( clsync socket-library )
@@ -76,6 +76,7 @@ src_configure() {
$(use_enable cluster) \
$(use_enable control-socket socket) \
$(use_enable highload-locks) \
+   $(use_enable lto) \
$(use_enable namespaces unshare) \
$(use_enable seccomp) \
$(use_enable socket-library) \

diff --git a/app-admin/clsync/metadata.xml b/app-admin/clsync/metadata.xml
index fd64593a277..39a9cda50e2 100644
--- a/app-admin/clsync/metadata.xml
+++ b/app-admin/clsync/metadata.xml
@@ -24,6 +24,7 @@
 Enable extra security checks. This will hurt 
performance.
 Enable GIO for FS monitoring (glib based alternative to 
inotify interface, not recommended; if both are compiled, may be selected at 
runtime).
 Allows to use spinlocks for short delays 
instead of mutexes, but only on SMP systems.
+Build with link time optimization (LTO).
 Enable namespaces isolation.
 Build the control and monitoring socket 
library: libclsync.
   



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-11-08 Thread Andrew Savchenko
commit: b1da862281d2c97a9fc1e6a63c377a30eefa4fbd
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Nov  8 14:30:53 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Nov  8 14:35:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1da8622

app-admin/clsync: version bump

- Update to 0.4.5
- Enable LTO support
- Merge back dev-libs/libclsync and app-doc/clsync-docs into app-admin/clsync

Bug: https://bugs.gentoo.org/749978
Bug: https://bugs.gentoo.org/750356
Closes: https://bugs.gentoo.org/717340
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/Manifest|   1 +
 app-admin/clsync/clsync-0.4.5.ebuild | 144 +++
 2 files changed, 145 insertions(+)

diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest
index 53ae0d386a1..aa1738bbfb7 100644
--- a/app-admin/clsync/Manifest
+++ b/app-admin/clsync/Manifest
@@ -1 +1,2 @@
 DIST clsync-0.4.4.tar.gz 268276 BLAKE2B 
0027760cfdee5c4410c4cea45aae2def6498d812d2f50038993c39a33c6029722ec2dd2cfff20815a3ffd8834eb8c439059e5f1d2cc3d2cf98ecb22ed22f2322
 SHA512 
cdafbf43fdeafe9cb53c08e0514ef356fb5b4bbd8da2226263180e7441d222c76e6c73f847f484b3688a8672e4a85df0346c0236d8d0ed4506d209189af02dcd
+DIST clsync-0.4.5.tar.gz 276096 BLAKE2B 
4fa534b342a806ca691f8a65455cb800800f7a943fa3f0913a26c37d2cd0f9d762630ad01eeb80bdd0d90a0731bed5f2aa60444a654972da9479c116e0e937aa
 SHA512 
6568f3c49ac4fe11e54593ba23eed392d0b7d9b5bf052983c4a5a2befbb807dbd3f9d13412264f8909998702f869d1cd6db77d89bd9491414b1f3213437c5212

diff --git a/app-admin/clsync/clsync-0.4.5.ebuild 
b/app-admin/clsync/clsync-0.4.5.ebuild
new file mode 100644
index 000..c17448327bb
--- /dev/null
+++ b/app-admin/clsync/clsync-0.4.5.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://github.com/clsync/clsync.git;
+   inherit git-r3
+   KEYWORDS=""
+else
+   SRC_URI="https://github.com/clsync/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+inherit autotools linux-info systemd
+
+DESCRIPTION="Live sync tool based on inotify, written in GNU C"
+HOMEPAGE="https://github.com/clsync/clsync http://ut.mephi.ru/oss/clsync;
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="apidoc +caps +clsync cluster control-socket cgroups doc debug
+examples extra-debug extra-hardened gio +hardened +highload-locks
++inotify +lto mhash namespaces seccomp socket-library static-libs"
+
+REQUIRED_USE="
+   || ( clsync socket-library )
+   || ( gio inotify )
+   mhash? ( cluster )
+   seccomp? ( caps )
+"
+BDEPEND="
+   virtual/pkgconfig
+   apidoc? ( app-doc/doxygen[dot] )
+"
+DEPEND="
+   caps? ( sys-libs/libcap )
+   cgroups? ( dev-libs/libcgroup )
+   clsync? ( dev-libs/glib:2 )
+   mhash? ( app-crypt/mhash )
+"
+RDEPEND="${DEPEND}
+   !app-doc/clsync-docs
+   !dev-libs/libclsync
+"
+
+pkg_pretend() {
+   if use clsync; then
+   use inotify && CONFIG_CHECK+=" ~INOTIFY_USER"
+   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS 
~USER_NS ~PID_NS ~NET_NS"
+   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
+   check_extra_config
+   fi
+}
+
+src_prepare() {
+   eapply_user
+   eautoreconf
+}
+
+src_configure() {
+   local harden_level=0
+   use hardened && harden_level=1
+   use extra-hardened && harden_level=2
+
+   local debug_level=0
+   use debug && debug_level=1
+   use extra-debug && debug_level=2
+
+   econf \
+   --enable-debug=${debug_level} \
+   --enable-paranoid=${harden_level} \
+   --without-bsm \
+   --without-kqueue \
+   $(use_enable caps capabilities) \
+   $(use_enable clsync) \
+   $(use_enable cluster) \
+   $(use_enable control-socket socket) \
+   $(use_enable highload-locks) \
+   $(use_enable lto) \
+   $(use_enable namespaces unshare) \
+   $(use_enable seccomp) \
+   $(use_enable socket-library) \
+   $(use_with cgroups libcgroup) \
+   $(use_with gio gio lib) \
+   $(use_with inotify inotify native) \
+   $(use_with mhash)
+}
+
+src_compile() {
+   default
+   if use apidoc; then
+   doxygen .doxygen || die "doxygen failed"
+   fi
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+
+   if use socket-library; then
+   find "${ED}" -name "*.la" -delete
+   use static-libs || find "${ED}" -name "*.a" -delete || die 
"failed to remove static libs"
+   fi
+
+   if use clsync; then
+   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+   newconfd 

[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-06-12 Thread Andrew Savchenko
commit: 8421f5d3141ac121ab0815abee28e62f4695d022
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Fri Jun 12 16:42:17 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Fri Jun 12 17:02:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8421f5d3

app-admin/clsync: remove old

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/Manifest|   1 -
 app-admin/clsync/clsync-0.4.2.ebuild | 102 ---
 2 files changed, 103 deletions(-)

diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest
index bc0327932be..53ae0d386a1 100644
--- a/app-admin/clsync/Manifest
+++ b/app-admin/clsync/Manifest
@@ -1,2 +1 @@
-DIST clsync-0.4.2.tar.gz 256042 BLAKE2B 
28474fc66341b93705a502fcff390e3affcd89a9e1eb272dce9b28be709562e09c03e9c300cfeb5371e2e618a2239468a58c46212a39d751fbbfddeaab12bcf6
 SHA512 
d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200
 DIST clsync-0.4.4.tar.gz 268276 BLAKE2B 
0027760cfdee5c4410c4cea45aae2def6498d812d2f50038993c39a33c6029722ec2dd2cfff20815a3ffd8834eb8c439059e5f1d2cc3d2cf98ecb22ed22f2322
 SHA512 
cdafbf43fdeafe9cb53c08e0514ef356fb5b4bbd8da2226263180e7441d222c76e6c73f847f484b3688a8672e4a85df0346c0236d8d0ed4506d209189af02dcd

diff --git a/app-admin/clsync/clsync-0.4.2.ebuild 
b/app-admin/clsync/clsync-0.4.2.ebuild
deleted file mode 100644
index d40e8568b97..000
--- a/app-admin/clsync/clsync-0.4.2.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils linux-info
-
-DESCRIPTION="Live sync tool based on inotify, written in GNU C"
-HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync;
-SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="+caps cluster control-socket cgroups debug extra-debug
-extra-hardened gio hardened +highload-locks +inotify mhash
-namespaces seccomp"
-
-REQUIRED_USE="
-   || ( gio inotify )
-   extra-debug? ( debug )
-   extra-hardened? ( hardened )
-   mhash? ( cluster )
-   seccomp? ( caps )
-"
-CDEPEND="
-   dev-libs/glib:2
-   cgroups? ( dev-libs/libcgroup )
-   mhash? ( app-crypt/mhash )
-"
-DEPEND="${CDEPEND}
-   virtual/pkgconfig
-"
-RDEPEND="${CDEPEND}
-   ~app-doc/clsync-docs-${PV}
-"
-
-pkg_pretend() {
-   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS 
~PID_NS ~NET_NS"
-   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
-   check_extra_config
-}
-
-src_prepare() {
-   eapply_user
-   eautoreconf
-}
-
-src_configure() {
-   local harden_level=0
-   use hardened && harden_level=1
-   use extra-hardened && harden_level=2
-
-   local debug_level=0
-   use debug && debug_level=1
-   use extra-debug && debug_level=2
-
-   econf \
-   --disable-socket-library \
-   --enable-clsync \
-   --enable-debug=${debug_level} \
-   --enable-paranoid=${harden_level} \
-   --without-bsm \
-   --without-kqueue \
-   $(use_enable caps capabilities) \
-   $(use_enable cluster) \
-   $(use_enable control-socket socket) \
-   $(use_enable highload-locks) \
-   $(use_enable namespaces unshare) \
-   $(use_enable seccomp) \
-   $(use_with cgroups libcgroup) \
-   $(use_with gio gio lib) \
-   $(use_with inotify inotify native) \
-   $(use_with mhash)
-}
-
-src_install() {
-   emake DESTDIR="${D}" install
-
-   # docs go into clsync-docs
-   rm -rf "${ED}/usr/share/doc" || die
-
-   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
-   newconfd "${FILESDIR}/${PN}.confd" "${PN}"
-
-   # filter rules and sync scripts are supposed to be here
-   insinto /etc/${PN}
-   newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
-   keepdir /etc/${PN}
-}
-
-pkg_postinst() {
-   einfo "${PN} is just a convenient way to run synchronization tools on 
live data,"
-   einfo "it doesn't copy data itself, so you need to install software to 
do actual"
-   einfo "data transfer. Usually net-misc/rsync is a good choise, but 
${PN} is"
-   einfo "is flexible enough to use any user tool, see manual page for 
details."
-   einfo
-   einfo "${PN} init script can be multiplexed, to use symlink init script 
to"
-   einfo "othername and use conf.d/othername to configure it."
-   einfo
-   einfo "If you're interested in improved security, enable"
-   einfo "USE=\"caps cgroups hardened namespaces seccomp\""
-}



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-05-31 Thread Andrew Savchenko
commit: 12ef9b3a598775cfa576812182006dcc0e8eaac7
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun May 31 07:56:15 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun May 31 08:09:52 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12ef9b3a

app-admin/clsync: add live ebuild

- Add live ebuild to facilitate development and testing
- Merge all clsync components (libclsync, clsync-docs) back to the
  main package.

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/clsync-.ebuild | 143 
 app-admin/clsync/metadata.xml   |   3 +
 2 files changed, 146 insertions(+)

diff --git a/app-admin/clsync/clsync-.ebuild 
b/app-admin/clsync/clsync-.ebuild
new file mode 100644
index 000..05e00ff84f2
--- /dev/null
+++ b/app-admin/clsync/clsync-.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://github.com/clsync/clsync.git;
+   inherit git-r3
+   KEYWORDS=""
+else
+   SRC_URI="https://github.com/clsync/${MY_PN}/archive/v${PV}.tar.gz -> 
${MY_P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+inherit autotools linux-info systemd
+
+DESCRIPTION="Live sync tool based on inotify, written in GNU C"
+HOMEPAGE="https://github.com/clsync/clsync http://ut.mephi.ru/oss/clsync;
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="apidoc +caps +clsync cluster control-socket cgroups doc debug
+examples extra-debug extra-hardened gio +hardened +highload-locks
++inotify mhash namespaces seccomp socket-library static-libs"
+
+REQUIRED_USE="
+   || ( clsync socket-library )
+   || ( gio inotify )
+   mhash? ( cluster )
+   seccomp? ( caps )
+"
+BDEPEND="
+   virtual/pkgconfig
+   apidoc? ( app-doc/doxygen[dot] )
+"
+DEPEND="
+   caps? ( sys-libs/libcap )
+   cgroups? ( dev-libs/libcgroup )
+   clsync? ( dev-libs/glib:2 )
+   mhash? ( app-crypt/mhash )
+"
+RDEPEND="${DEPEND}
+   !app-doc/clsync-docs
+   !dev-libs/libclsync
+"
+
+pkg_pretend() {
+   if use clsync; then
+   use inotify && CONFIG_CHECK+=" ~INOTIFY_USER"
+   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS 
~USER_NS ~PID_NS ~NET_NS"
+   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
+   check_extra_config
+   fi
+}
+
+src_prepare() {
+   eapply_user
+   eautoreconf
+}
+
+src_configure() {
+   local harden_level=0
+   use hardened && harden_level=1
+   use extra-hardened && harden_level=2
+
+   local debug_level=0
+   use debug && debug_level=1
+   use extra-debug && debug_level=2
+
+   econf \
+   --enable-debug=${debug_level} \
+   --enable-paranoid=${harden_level} \
+   --without-bsm \
+   --without-kqueue \
+   $(use_enable caps capabilities) \
+   $(use_enable clsync) \
+   $(use_enable cluster) \
+   $(use_enable control-socket socket) \
+   $(use_enable highload-locks) \
+   $(use_enable namespaces unshare) \
+   $(use_enable seccomp) \
+   $(use_enable socket-library) \
+   $(use_with cgroups libcgroup) \
+   $(use_with gio gio lib) \
+   $(use_with inotify inotify native) \
+   $(use_with mhash)
+}
+
+src_compile() {
+   default
+   if use apidoc; then
+   doxygen .doxygen || die "doxygen failed"
+   fi
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+
+   if use socket-library; then
+   find "${ED}" -name "*.la" -delete
+   use static-libs || find "${ED}" -name "*.a" -delete || die 
"failed to remove static libs"
+   fi
+
+   if use clsync; then
+   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+   newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+
+   # filter rules and sync scripts are supposed to be here
+   insinto /etc/${PN}
+   newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
+   keepdir /etc/${PN}
+
+   systemd_dounit "examples/clsync@.service"
+   fi
+
+   if use doc; then
+   dodoc -r DEVELOPING NOTES PROTOCOL SHORTHANDS TODO doc/devel/*
+   else
+   rm 
"${ED}/usr/share/doc/${PF}/"{DEVELOPING,LICENSE,PROTOCOL,TODO}* || die
+   fi
+   use apidoc && dodoc -r doc/doxygen/html
+   if ! use examples; then
+   rm -r "${ED}/usr/share/doc/${PF}/examples" || die
+   fi
+}
+
+pkg_postinst() {
+   einfo "${PN} is just a convenient way to run synchronization tools on 
live data,"
+   einfo "it doesn't copy data itself, so you need to install software to 
do actual"
+   einfo "data transfer. Usually 

[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-05-31 Thread Andrew Savchenko
commit: 5353570df96a853b2e95e194bfd4156940ab9802
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun May 31 08:08:05 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun May 31 08:09:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5353570d

app-admin/clsync: check for inotify support in kernel

However unlikely it is still possible that user has kernel without
inotify support, so check for INOTIFY_USER if inotify is requested
(which is default behaviour).

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/clsync-0.4.4.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-admin/clsync/clsync-0.4.4.ebuild 
b/app-admin/clsync/clsync-0.4.4.ebuild
index ee8baf2da67..2d3aee38a85 100644
--- a/app-admin/clsync/clsync-0.4.4.ebuild
+++ b/app-admin/clsync/clsync-0.4.4.ebuild
@@ -36,6 +36,7 @@ RDEPEND="${DEPEND}
 "
 
 pkg_pretend() {
+   use inotify && CONFIG_CHECK+=" ~INOTIFY_USER"
use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS 
~PID_NS ~NET_NS"
use seccomp && CONFIG_CHECK+=" ~SECCOMP"
check_extra_config



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-05-06 Thread Andrew Savchenko
commit: a95c392bd364a06b094344723366ba800429198a
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Wed May  6 16:02:20 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Wed May  6 16:24:59 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a95c392b

app-admin/clsync: add missed sys-libs/libcap dep

No revbump here since in case of user system affected by this bug,
the build will fail.

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/clsync-0.4.4.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-admin/clsync/clsync-0.4.4.ebuild 
b/app-admin/clsync/clsync-0.4.4.ebuild
index 1da3d5f2bf3..ee8baf2da67 100644
--- a/app-admin/clsync/clsync-0.4.4.ebuild
+++ b/app-admin/clsync/clsync-0.4.4.ebuild
@@ -27,6 +27,7 @@ BDEPEND="
 "
 DEPEND="
dev-libs/glib:2
+   caps? ( sys-libs/libcap )
cgroups? ( dev-libs/libcgroup )
mhash? ( app-crypt/mhash )
 "



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2020-05-05 Thread Andrew Savchenko
commit: 280c2145ce00536797fa0f53e53fadca090ab72a
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Tue May  5 15:36:50 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Tue May  5 15:52:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=280c2145

app-admin/clsync: version bump

Closes: https://bugs.gentoo.org/717340
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/Manifest|   1 +
 app-admin/clsync/clsync-0.4.4.ebuild | 104 +++
 app-admin/clsync/metadata.xml|   2 +-
 3 files changed, 106 insertions(+), 1 deletion(-)

diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest
index 908a4bd9d9e..bc0327932be 100644
--- a/app-admin/clsync/Manifest
+++ b/app-admin/clsync/Manifest
@@ -1 +1,2 @@
 DIST clsync-0.4.2.tar.gz 256042 BLAKE2B 
28474fc66341b93705a502fcff390e3affcd89a9e1eb272dce9b28be709562e09c03e9c300cfeb5371e2e618a2239468a58c46212a39d751fbbfddeaab12bcf6
 SHA512 
d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200
+DIST clsync-0.4.4.tar.gz 268276 BLAKE2B 
0027760cfdee5c4410c4cea45aae2def6498d812d2f50038993c39a33c6029722ec2dd2cfff20815a3ffd8834eb8c439059e5f1d2cc3d2cf98ecb22ed22f2322
 SHA512 
cdafbf43fdeafe9cb53c08e0514ef356fb5b4bbd8da2226263180e7441d222c76e6c73f847f484b3688a8672e4a85df0346c0236d8d0ed4506d209189af02dcd

diff --git a/app-admin/clsync/clsync-0.4.4.ebuild 
b/app-admin/clsync/clsync-0.4.4.ebuild
new file mode 100644
index 000..1da3d5f2bf3
--- /dev/null
+++ b/app-admin/clsync/clsync-0.4.4.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info systemd
+
+DESCRIPTION="Live sync tool based on inotify, written in GNU C"
+HOMEPAGE="https://github.com/clsync/clsync http://ut.mephi.ru/oss/clsync;
+SRC_URI="https://github.com/clsync/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+caps cluster control-socket cgroups debug extra-debug
+extra-hardened gio hardened +highload-locks +inotify mhash
+namespaces seccomp"
+
+REQUIRED_USE="
+   || ( gio inotify )
+   extra-debug? ( debug )
+   extra-hardened? ( hardened )
+   mhash? ( cluster )
+   seccomp? ( caps )
+"
+BDEPEND="
+   virtual/pkgconfig
+"
+DEPEND="
+   dev-libs/glib:2
+   cgroups? ( dev-libs/libcgroup )
+   mhash? ( app-crypt/mhash )
+"
+RDEPEND="${DEPEND}
+   ~app-doc/clsync-docs-${PV}
+"
+
+pkg_pretend() {
+   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS 
~PID_NS ~NET_NS"
+   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
+   check_extra_config
+}
+
+src_prepare() {
+   eapply_user
+   eautoreconf
+}
+
+src_configure() {
+   local harden_level=0
+   use hardened && harden_level=1
+   use extra-hardened && harden_level=2
+
+   local debug_level=0
+   use debug && debug_level=1
+   use extra-debug && debug_level=2
+
+   econf \
+   --disable-socket-library \
+   --enable-clsync \
+   --enable-debug=${debug_level} \
+   --enable-paranoid=${harden_level} \
+   --without-bsm \
+   --without-kqueue \
+   $(use_enable caps capabilities) \
+   $(use_enable cluster) \
+   $(use_enable control-socket socket) \
+   $(use_enable highload-locks) \
+   $(use_enable namespaces unshare) \
+   $(use_enable seccomp) \
+   $(use_with cgroups libcgroup) \
+   $(use_with gio gio lib) \
+   $(use_with inotify inotify native) \
+   $(use_with mhash)
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+
+   # docs go into clsync-docs
+   rm -rf "${ED}/usr/share/doc" || die
+
+   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+   newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+
+   # filter rules and sync scripts are supposed to be here
+   insinto /etc/${PN}
+   newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
+   keepdir /etc/${PN}
+
+   systemd_dounit "examples/clsync@.service"
+}
+
+pkg_postinst() {
+   einfo "${PN} is just a convenient way to run synchronization tools on 
live data,"
+   einfo "it doesn't copy data itself, so you need to install software to 
do actual"
+   einfo "data transfer. Usually net-misc/rsync is a good choise, but 
${PN} is"
+   einfo "is flexible enough to use any user tool, see manual page for 
details."
+   einfo
+   einfo "${PN} init script can be multiplexed, to use symlink init script 
to"
+   einfo "othername and use conf.d/othername to configure it."
+   einfo
+   einfo "If you're interested in improved security, enable"
+   einfo "USE=\"caps 

[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2019-08-17 Thread David Seifert
commit: 20314e9d3ef880fee4fbe0c6af6255112c4642c1
Author: David Seifert  gentoo  org>
AuthorDate: Sat Aug 17 11:24:49 2019 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Aug 17 11:24:49 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20314e9d

app-admin/clsync: Fix double EPREFIX

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert  gentoo.org>

 app-admin/clsync/clsync-0.4.2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-admin/clsync/clsync-0.4.2.ebuild 
b/app-admin/clsync/clsync-0.4.2.ebuild
index dc27fddf71f..ed88b00512a 100644
--- a/app-admin/clsync/clsync-0.4.2.ebuild
+++ b/app-admin/clsync/clsync-0.4.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -84,9 +84,9 @@ src_install() {
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
 
# filter rules and sync scripts are supposed to be here
-   keepdir "${EPREFIX}/etc/${PN}"
-   insinto "/etc/${PN}"
+   insinto /etc/${PN}
newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
+   keepdir /etc/${PN}
 }
 
 pkg_postinst() {



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2018-07-20 Thread Mikle Kolyada
commit: 7f73011aaf8051623c6748b752719f607e7614c8
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Fri Jul 20 22:06:55 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Fri Jul 20 22:06:55 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f73011a

app-admin/clsync: Drop old

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-admin/clsync/Manifest|   2 -
 app-admin/clsync/clsync-0.4.1.ebuild | 114 ---
 2 files changed, 116 deletions(-)

diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest
index c29a4046429..908a4bd9d9e 100644
--- a/app-admin/clsync/Manifest
+++ b/app-admin/clsync/Manifest
@@ -1,3 +1 @@
-DIST clsync-0.4.1-20150524-v2.patch.xz 13632 BLAKE2B 
422ec7dc05c2f21aa96c397efa7ce1079b882d5ec4ce14beb8ce5e308e134142dcc557857ff8162b5fba84d8eaa078016794ed26433427d6a80e4e4f81fd90a8
 SHA512 
d39c3c4f116eff2365668374ef62f4dfd8e5926267cbbf36b430f97ad5306f92cf6be3164c0e1c3d959db55453f5ded00d98d48af62f9eacde39a9f9667cfbf9
-DIST clsync-0.4.1.tar.gz 253890 BLAKE2B 
c8aada690635f1cac355a1eaa51f4379688b0005869c5dcd6edccf5ae8e86abddf9ff99ccfcffeb165ccc80f407087a3f0863d1b78279894ff410daf25467740
 SHA512 
875280f706026d44806b92c22fa58d016136b2792f67a6b7e77f932465081da7a1ebaf22c25e538e4b58bfe04cd1cd5450ecab99c3df53ddd2a0fa966442d444
 DIST clsync-0.4.2.tar.gz 256042 BLAKE2B 
28474fc66341b93705a502fcff390e3affcd89a9e1eb272dce9b28be709562e09c03e9c300cfeb5371e2e618a2239468a58c46212a39d751fbbfddeaab12bcf6
 SHA512 
d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200

diff --git a/app-admin/clsync/clsync-0.4.1.ebuild 
b/app-admin/clsync/clsync-0.4.1.ebuild
deleted file mode 100644
index c037951819d..000
--- a/app-admin/clsync/clsync-0.4.1.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-if [[ ${PV} == "" ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/xaionaro/${PN}.git;
-else
-   PVER="20150524-v2"
-   SRC_URI="
-   https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
-   https://dev.gentoo.org/~bircoph/patches/${P}-${PVER}.patch.xz
-   "
-   KEYWORDS="~amd64 ~x86"
-fi
-
-inherit autotools eutils linux-info
-
-DESCRIPTION="Live sync tool based on inotify, written in GNU C"
-HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync;
-LICENSE="GPL-3+"
-SLOT="0"
-IUSE="+caps cluster control-socket cgroups debug extra-debug
-extra-hardened gio hardened +highload-locks +inotify mhash
-namespaces seccomp"
-
-REQUIRED_USE="
-   || ( gio inotify )
-   extra-debug? ( debug )
-   extra-hardened? ( hardened )
-   mhash? ( cluster )
-   seccomp? ( caps )
-"
-CDEPEND="
-   dev-libs/glib:2
-   cgroups? ( dev-libs/libcgroup )
-   mhash? ( app-crypt/mhash )
-"
-DEPEND="${CDEPEND}
-   virtual/pkgconfig
-"
-RDEPEND="${CDEPEND}
-   ~app-doc/clsync-docs-${PV}
-"
-
-pkg_pretend() {
-   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS 
~PID_NS ~NET_NS"
-   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
-   check_extra_config
-}
-
-src_prepare() {
-   # upstream fixes for 0.4.1
-   epatch "${WORKDIR}/${P}-${PVER}.patch"
-   eautoreconf
-}
-
-src_configure() {
-   local harden_level=0
-   use hardened && harden_level=1
-   use extra-hardened && harden_level=2
-
-   local debug_level=0
-   use debug && debug_level=1
-   use extra-debug && debug_level=2
-
-   econf \
-   --docdir="${EPREFIX}/usr/share/doc/${PF}" \
-   --disable-socket-library \
-   --enable-clsync \
-   --enable-debug=${debug_level} \
-   --enable-paranoid=${harden_level} \
-   --without-bsm \
-   --without-kqueue \
-   $(use_enable caps capabilities) \
-   $(use_enable cluster) \
-   $(use_enable control-socket socket) \
-   $(use_enable highload-locks) \
-   $(use_enable namespaces unshare) \
-   $(use_enable seccomp) \
-   $(use_with cgroups libcgroup) \
-   $(use_with gio gio lib) \
-   $(use_with inotify inotify native) \
-   $(use_with mhash)
-}
-
-src_install() {
-   emake DESTDIR="${D}" install
-
-   # docs go into clsync-docs
-   rm -rf "${ED}/usr/share/doc" || die
-
-   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
-   newconfd "${FILESDIR}/${PN}.confd" "${PN}"
-
-   # filter rules and sync scripts are supposed to be here
-   keepdir "${EPREFIX}/etc/${PN}"
-   insinto "/etc/${PN}"
-   newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
-}
-
-pkg_postinst() {
-   einfo "${PN} is just a convenient way to run synchronization tools on 
live 

[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2018-07-20 Thread Mikle Kolyada
commit: 45dbc6ab64b4f2b5ba4c99cd2a92a2046d856abe
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Fri Jul 20 22:05:35 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Fri Jul 20 22:05:51 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45dbc6ab

app-admin/clsync: mark stable

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-admin/clsync/clsync-0.4.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-admin/clsync/clsync-0.4.2.ebuild 
b/app-admin/clsync/clsync-0.4.2.ebuild
index d0e9c3ece97..dc27fddf71f 100644
--- a/app-admin/clsync/clsync-0.4.2.ebuild
+++ b/app-admin/clsync/clsync-0.4.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/xaionaro/clsync 
http://ut.mephi.ru/oss/clsync;
 SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 x86"
 IUSE="+caps cluster control-socket cgroups debug extra-debug
 extra-hardened gio hardened +highload-locks +inotify mhash
 namespaces seccomp"



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/files/

2017-02-12 Thread Andrew Savchenko
commit: 1e3ddaff1aa465884fd094197290b8fb62407637
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Feb 12 09:07:02 2017 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Feb 12 09:28:22 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e3ddaff

app-admin/clsync: remove bashisms

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/files/clsync.initd | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app-admin/clsync/files/clsync.initd 
b/app-admin/clsync/files/clsync.initd
index 011163bbc0..bf9e55e5b0 100644
--- a/app-admin/clsync/files/clsync.initd
+++ b/app-admin/clsync/files/clsync.initd
@@ -1,11 +1,11 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-[[ -n "${CLSYNC_CONF}" ]] && conffile="--config-file ${CLSYNC_CONF}"
-[[ -n "${CLSYNC_NICE}" ]] && cmd_nice="--nice ${CLSYNC_NICE}"
-[[ -n "${CLSYNC_IONICE}" ]] && cmd_ionice="--ionice ${CLSYNC_IONICE}"
+[ -n "${CLSYNC_CONF}" ] && conffile="--config-file ${CLSYNC_CONF}"
+[ -n "${CLSYNC_NICE}" ] && cmd_nice="--nice ${CLSYNC_NICE}"
+[ -n "${CLSYNC_IONICE}" ] && cmd_ionice="--ionice ${CLSYNC_IONICE}"
 
 command="/usr/bin/clsync"
 pidfile="/var/run/${SVCNAME}.pid"



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2016-09-30 Thread Andrew Savchenko
commit: 91f8e6ccdeecde22eed08e2480ce9a03103251a3
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Fri Sep 30 11:33:22 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Fri Sep 30 12:03:50 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f8e6cc

app-admin/clsync: version bump

Bump to 0.4.2, update ebuild to EAPI 6.

Package-Manager: portage-2.3.1
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/Manifest|   1 +
 app-admin/clsync/clsync-0.4.2.ebuild | 104 +++
 2 files changed, 105 insertions(+)

diff --git a/app-admin/clsync/Manifest b/app-admin/clsync/Manifest
index a815e0c..f8a75d6 100644
--- a/app-admin/clsync/Manifest
+++ b/app-admin/clsync/Manifest
@@ -1,2 +1,3 @@
 DIST clsync-0.4.1-20150524-v2.patch.xz 13632 SHA256 
90a1ef820c83629c528e8c6fe4da5183caf60f8079c4de01a6d26945734c92f7 SHA512 
d39c3c4f116eff2365668374ef62f4dfd8e5926267cbbf36b430f97ad5306f92cf6be3164c0e1c3d959db55453f5ded00d98d48af62f9eacde39a9f9667cfbf9
 WHIRLPOOL 
d22fc6a1f0a59514506377f26ab7d9c0f4faca0abab044f2ce2e61ffa973ff04b43da561a4dd5c69d99e21108baa71d77bb2ea524313661b3b2440ceddca56aa
 DIST clsync-0.4.1.tar.gz 253890 SHA256 
3f14a72d7c3c1747ea908e373f25bd1918ce00450492fbb7094549db6bf21e27 SHA512 
875280f706026d44806b92c22fa58d016136b2792f67a6b7e77f932465081da7a1ebaf22c25e538e4b58bfe04cd1cd5450ecab99c3df53ddd2a0fa966442d444
 WHIRLPOOL 
10ab11821766f7d16d03993069ac4da5fe362a1e5977ea6721e49ada7044d3659e59b507b03be4de09609b0a0ca9d7878407d7b6e1f40df5dbe1d041dac373cb
+DIST clsync-0.4.2.tar.gz 256042 SHA256 
1af63b86c1d0bd663311f2129792446dc8fc4def5559f76658b51b69a8d0c3bd SHA512 
d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200
 WHIRLPOOL 
a59446337282cb63455b43bbbf17ad1213e39713d9c267ca5ee8785d863bc90e7b99e5938e4d5be02f3103a98b1bb5d5a628580160952d821e6caaad72fa2679

diff --git a/app-admin/clsync/clsync-0.4.2.ebuild 
b/app-admin/clsync/clsync-0.4.2.ebuild
new file mode 100644
index ..cad8320
--- /dev/null
+++ b/app-admin/clsync/clsync-0.4.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils linux-info
+
+DESCRIPTION="Live sync tool based on inotify, written in GNU C"
+HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync;
+SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+caps cluster control-socket cgroups debug extra-debug
+extra-hardened gio hardened +highload-locks +inotify mhash
+namespaces seccomp"
+
+REQUIRED_USE="
+   || ( gio inotify )
+   extra-debug? ( debug )
+   extra-hardened? ( hardened )
+   mhash? ( cluster )
+   seccomp? ( caps )
+"
+CDEPEND="
+   dev-libs/glib:2
+   cgroups? ( dev-libs/libcgroup )
+   mhash? ( app-crypt/mhash )
+"
+DEPEND="${CDEPEND}
+   virtual/pkgconfig
+"
+RDEPEND="${CDEPEND}
+   ~app-doc/clsync-docs-${PV}
+"
+
+pkg_pretend() {
+   use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS 
~PID_NS ~NET_NS"
+   use seccomp && CONFIG_CHECK+=" ~SECCOMP"
+   check_extra_config
+}
+
+src_prepare() {
+   eapply_user
+   eautoreconf
+}
+
+src_configure() {
+   local harden_level=0
+   use hardened && harden_level=1
+   use extra-hardened && harden_level=2
+
+   local debug_level=0
+   use debug && debug_level=1
+   use extra-debug && debug_level=2
+
+   econf \
+   --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+   --disable-socket-library \
+   --enable-clsync \
+   --enable-debug=${debug_level} \
+   --enable-paranoid=${harden_level} \
+   --without-bsm \
+   --without-kqueue \
+   $(use_enable caps capabilities) \
+   $(use_enable cluster) \
+   $(use_enable control-socket socket) \
+   $(use_enable highload-locks) \
+   $(use_enable namespaces unshare) \
+   $(use_enable seccomp) \
+   $(use_with cgroups libcgroup) \
+   $(use_with gio gio lib) \
+   $(use_with inotify inotify native) \
+   $(use_with mhash)
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+
+   # docs go into clsync-docs
+   rm -rf "${ED}/usr/share/doc" || die
+
+   newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+   newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+
+   # filter rules and sync scripts are supposed to be here
+   keepdir "${EPREFIX}/etc/${PN}"
+   insinto "/etc/${PN}"
+   newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
+}
+
+pkg_postinst() {
+   einfo "${PN} is just a convenient way to run synchronization tools on 
live data,"
+   einfo "it doesn't copy 

[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/files/

2016-05-18 Thread Austin English
commit: 5f30acb26e4ecca3c784f6fcdf7641af0322d653
Author: Austin English  gentoo  org>
AuthorDate: Wed May 18 06:38:03 2016 +
Commit: Austin English  gentoo  org>
CommitDate: Wed May 18 06:38:34 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f30acb2

app-admin/clsync: use #!/sbin/openrc-run instead of #!/sbin/runscript

 app-admin/clsync/files/clsync.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-admin/clsync/files/clsync.initd 
b/app-admin/clsync/files/clsync.initd
index d350f3d..011163b 100644
--- a/app-admin/clsync/files/clsync.initd
+++ b/app-admin/clsync/files/clsync.initd
@@ -1,4 +1,4 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2016-04-28 Thread Andrew Savchenko
commit: 5ab7e0cdb89482e78679b68ad9b41d09a61b747a
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Thu Apr 28 16:08:29 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Thu Apr 28 16:09:23 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ab7e0cd

app-admin/clsync: fix CDEPEND -> RDEPEND typo

Fixes bug 580798.

Package-Manager: portage-2.2.28
Signed-off-by: Andrew Savchenko  gentoo.org>

 app-admin/clsync/clsync-0.4.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-admin/clsync/clsync-0.4.1.ebuild 
b/app-admin/clsync/clsync-0.4.1.ebuild
index 431ce6c..388c01e 100644
--- a/app-admin/clsync/clsync-0.4.1.ebuild
+++ b/app-admin/clsync/clsync-0.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -33,7 +33,7 @@ REQUIRED_USE="
mhash? ( cluster )
seccomp? ( caps )
 "
-RDEPEND="
+CDEPEND="
dev-libs/glib:2
cgroups? ( dev-libs/libcgroup )
mhash? ( app-crypt/mhash )



[gentoo-commits] repo/gentoo:master commit in: app-admin/clsync/

2015-08-18 Thread Mike Frysinger
commit: 9fbb4dec8edf6a72cc49b9c8f086eed48bdf44ab
Author: Mike Frysinger vapier AT gentoo DOT org
AuthorDate: Tue Aug 18 15:44:14 2015 +
Commit: Mike Frysinger vapier AT gentoo DOT org
CommitDate: Tue Aug 18 15:52:11 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fbb4dec

app-admin/clsync: drop redundant USE=seccomp description

 app-admin/clsync/metadata.xml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app-admin/clsync/metadata.xml b/app-admin/clsync/metadata.xml
index 1d11fa5..c7f8538 100644
--- a/app-admin/clsync/metadata.xml
+++ b/app-admin/clsync/metadata.xml
@@ -23,7 +23,6 @@
 flag name=gioEnable GIO for FS monitoring (glib based alternative to 
inotify interface, not recommended; if both are compiled, may be selected at 
runtime)./flag
 flag name=highload-locksAllows to use spinlocks for short delays 
instead of mutexes, but only on SMP systems./flag
 flag name=namespacesEnable namespaces isolation./flag
-flag name=seccompEnable seccomp for system call filtering./flag
   /use
   upstream
 remote-id type=githubxaionaro/clsync/remote-id