public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-admin/clsync: ChangeLog clsync-0.4.ebuild metadata.xml Manifest
@ 2015-02-11  3:39 Andrew Savchenko (bircoph)
  0 siblings, 0 replies; only message in thread
From: Andrew Savchenko (bircoph) @ 2015-02-11  3:39 UTC (permalink / raw
  To: gentoo-commits

bircoph     15/02/11 03:39:24

  Added:                ChangeLog clsync-0.4.ebuild metadata.xml Manifest
  Log:
  Initial version ported from bircoph overlay. Nice lsyncd replacement. Have fun!
  
  Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
  (Portage version: 2.2.15/cvs/Linux i686, signed Manifest commit with key 565953B95372756C)

Revision  Changes    Path
1.1                  app-admin/clsync/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# ChangeLog for app-admin/clsync
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/clsync/ChangeLog,v 1.1 2015/02/11 03:39:24 bircoph Exp $

*clsync-0.4 (11 Feb 2015)

  11 Feb 2015; Andrew Savchenko <bircoph@gentoo.org> +clsync-0.4.ebuild,
  +files/clsync-0.4-direct_mode.patch, +files/clsync-0.4-gio.patch,
  +files/clsync-0.4-handler_path.patch, +files/clsync-0.4-hl_locks.patch,
  +files/clsync-0.4-unset_env.patch, +files/clsync-0.4-unshare-configure.patch,
  +files/clsync-0.4-unshare-ifdef.patch, +files/clsync-0.4-unused-deps.patch,
  +files/clsync-0.4-version.patch, +files/clsync.conf, +files/clsync.confd,
  +files/clsync.initd, +metadata.xml:
  Initial version ported from bircoph overlay




1.1                  app-admin/clsync/clsync-0.4.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/clsync-0.4.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/clsync-0.4.ebuild?rev=1.1&content-type=text/plain

Index: clsync-0.4.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/clsync/clsync-0.4.ebuild,v 1.1 2015/02/11 03:39:24 bircoph Exp $

EAPI=5

if [[ ${PV} == "9999" ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/xaionaro/${PN}.git"
else
	SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	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 doc +examples
extra-hardened gio hardened +highload-locks +inotify mhash
namespaces seccomp"

REQUIRED_USE="
	|| ( gio inotify )
	extra-hardened? ( hardened )
	mhash? ( cluster )"

RDEPEND="
	dev-libs/glib:2
	cgroups? ( dev-libs/libcgroup )
	mhash? ( app-crypt/mhash )
"
DEPEND="${RDEPEND}
	virtual/pkgconfig
	doc? ( ~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
	epatch \
		"${FILESDIR}/${P}-gio.patch" \
		"${FILESDIR}/${P}-unshare-configure.patch" \
		"${FILESDIR}/${P}-unshare-ifdef.patch" \
		"${FILESDIR}/${P}-version.patch" \
		"${FILESDIR}/${P}-direct_mode.patch" \
		"${FILESDIR}/${P}-handler_path.patch" \
		"${FILESDIR}/${P}-hl_locks.patch" \
		"${FILESDIR}/${P}-unset_env.patch" \
		"${FILESDIR}/${P}-unused-deps.patch"
	eautoreconf
}

src_configure() {
	local harden_level=0
	use hardened && harden_level=1
	use extra-hardened && harden_level=2

	econf \
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
		--disable-socket-library \
		--enable-clsync \
		--enable-paranoid=${harden_level} \
		--without-bsm \
		--without-kqueue \
		$(use_enable caps capabilities) \
		$(use_enable cluster) \
		$(use_enable control-socket socket) \
		$(use_enable debug) \
		$(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

	# remove unwanted docs
	rm "${ED}/usr/share/doc/${PF}/LICENSE" || die "failed to cleanup docs"
	use examples || rm -r "${ED}/usr/share/doc/${PF}/examples" || die "failed to remove examples"

	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 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\""
}



1.1                  app-admin/clsync/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
  <email>bircoph@gentoo.org</email>
  <name>Andrew Savchenko</name>
</maintainer>
<longdescription>
  Clsync recursively watches for source directory and executes external
  program to sync the changes. Clsync is adapted to be used together with rsync.
  This utility is much more lightweight than competitors and supports such
  features as separate queue for big files, regex file filter, multi-threading
  and multicast notifing clsync instances on another nodes to prevent loop
  syncing. Clsync can use advanced features for isolation: capabilities, cgroups,
  namespaces, seccomp, code hardening.
</longdescription>
<use>
	<flag name="cluster">Enable clustering support (allows master-master clsync on multiple hosts). Not fully implemented yet.</flag>
	<flag name="control-socket">Enable AF_UNIX control socket support.</flag>
	<flag name="cgroups">Use cgroups to limit /dev access.</flag>
	<flag name="extra-hardened">Enable extra security checks. This will hurt performance.</flag>
	<flag name="gio">Enable 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-locks">Allows to use spinlocks for short delays instead of mutexes, but only on SMP systems.</flag>
	<flag name="namespaces">Enable namespaces isolation.</flag>
	<flag name="seccomp">Enable seccomp for system call filtering.</flag>
</use>
</pkgmetadata>



1.1                  app-admin/clsync/Manifest

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/Manifest?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/clsync/Manifest?rev=1.1&content-type=text/plain

Index: Manifest
===================================================================
AUX clsync-0.4-direct_mode.patch 1782 SHA256 fc429bc6b830c76233d083b5ed882f4c9dbdee14de3bfbdf944c606a07e1cfc3 SHA512 99e4074343ff2d69811af0fcbc8481e016c3c8d685d4775bce3075939527a04d14573c745e5ee000f991ff74391a4355b63c15f7ac4f692d411d50a29f119cc9 WHIRLPOOL 9606eff1cfb55126345a2502c6222074111dfaa7557cf946926d130da1bbfc27e6265bfe0bf367264ec81f840f55a27ecb2cb8ca73ccaf313a065e5052026707
AUX clsync-0.4-gio.patch 1254 SHA256 2bc5cc03cd456ed09879e77e963e17bedb05d3deaff77f4d18bdc67c521773f1 SHA512 888f0941dcfd8843007afee889c005c613d731750882b0acbadceb08b514f177b9b75f992827050a40247002c8d29d7fcf4e75eabafe6eb54fc1d05e30893ffd WHIRLPOOL 5df5185fd97bb4d77297e40e1722b4ddfbb27c444c6a506939ee9a3075be0200aeca3c0f08f62e9650a04583cd55f1d05c106a77b7f2eb2e9af3621f9597d4f2
AUX clsync-0.4-handler_path.patch 822 SHA256 fcd4f9ff6308e18984dd4a97bda2d3bd9c9de8bd37a9ef758d6e0ba2485c70c6 SHA512 de4a7fa17e158f5527a4b28e90414ee8513a140fed2f62815578e9e97550662c0cc7d36d3debd366c7543cb879763443dc839356640647d82f6709c954c4f0ad WHIRLPOOL 9f18153267d70f4964e8d7a14b87e3a21056874254874452a9895bc3613515f5f9d059b5c10bb8d7ffd0077e5eb00c8fcbd52059807dc65553875d59e05d3777
AUX clsync-0.4-hl_locks.patch 899 SHA256 ee85116d992dd9e089e2e0a3f0bfbc5502705e4de08953b13a2bd00ed259d3bf SHA512 279bb3560a37a163763d9de09c894d8d98e79ed32e3f1c2f2231d567b0492f93c078a560296c706536ddabddf05e4218f106a0f271f8bcd3c9b18cee153083d0 WHIRLPOOL de98b88abb9089456157366b9145433ae371176cd81b34e3bc5a72852b238f6b7ed98610e3259831389eacd7990ff248d7c890b87a93a4afcdeb4f287d1f631b
AUX clsync-0.4-unset_env.patch 1820 SHA256 830f7d495be48faa1b13ae9794371561808dd904cb45192e40f790b33dc32475 SHA512 e89bd1834180487bb0feecfbac90a6512531547fbaa3053fe9907e776a2212e5dc0f912c7a59bccf9f15058d991dbe03f9ae7c89a741d6807c9df4fa930af915 WHIRLPOOL b058e0a41535770c81232e4587856f69e152dbae1683929c7fa3bf171db7d76cd67456bf4e2fe3e2902da6d72ba2720990247eac8a3fef6c8ae250004eee2fd3
AUX clsync-0.4-unshare-configure.patch 1198 SHA256 c60e2f8e33e1ca04d27e8887982d83eb5efb8a3f3f6871f97feba931aaa0db74 SHA512 c0be6a085a33e3c09bfe52fc5aff3a1136fbbdde7cf928bd1ff21c7e435ae8562a626ed7d561c83e74580f17e2ad1c61be778d0a7f01b2ad0890a9d5cc1e54cd WHIRLPOOL 826d597da90d8f71b3ff902c5c55bbd3ae82bae33157f99469bfe8dec4ad93f16a1f2d10c0b78f561c58f6d01832ed2bbc2267ab619e21bd19c939034ae8b401
AUX clsync-0.4-unshare-ifdef.patch 989 SHA256 2fc98fa742ed24068af39c950eb7fa33a048a2cbb3aab44b074928cd86c5cefb SHA512 2a6e98a2ea8d1dd663fdaf6eed0d6706c61b646c4178ca8be5598d1d6a3dd8023b92f02858f7324c5ceab601ed5c8ec1ee6bcc7210664cd57dc281a116bbde3c WHIRLPOOL 9535ac8e746e4ce980d4f17c05f554e55f5ab717d79e20ba09751f176383e46c2b52777cccce10f28422b4d459f0ef8c8a5f900c4857994a8bab5c6108bd5e27
AUX clsync-0.4-unused-deps.patch 4281 SHA256 a9dc293dfdec61ea44d55e309115a2eb32452440c76562a9f0f29c3100f0e554 SHA512 a777744f2ef2e069cb5c533b4c6b00bc1017e6b29db079fe4aec1cb1833193e102ec9ca8c7f70743d4864d003a6efb38f061f1ecb65c879e67915bf9ae206cb7 WHIRLPOOL 36f6aa91f49b720aabfdc23b71f02834e98160cc06db8633e07bfe46b0dd26f86fdc3ea57eed889493ac5034d30b072a1bb156118bd6a2c266f99bec37d23270
AUX clsync-0.4-version.patch 694 SHA256 8b899b74f59dc6acb134ab4b2254e222c8d148ed827054c1e263625a73405c9d SHA512 9a08ecf5c062827d8e02b4822a879115d394d36d6c81bc138dee4b65519c6a2e333445e953965057d8b32ad3bca6ced8a699f59d798d31bb022c4b9129d8b681 WHIRLPOOL fd214257b4a2fd24120a4620df55edd78010f5db507493b3e0c1bd06f91e97e2b3caffdbabad4c4b0d1cc7c3f02d9d290805c4d6e10edf5e44d081ae1b837e1b
AUX clsync.conf 589 SHA256 1a8689b86cf9475ef72ef42a623a1bb1ae55abff31578dcfdf3537331c681815 SHA512 46d8d786378eed0bfa46195e45f764015258ba55b35a5acf2685967e9fbd1fc7656c6aeba26b06889fa2f7c62cb11ecb84b10b856356ea3c0d463eaa4980c33d WHIRLPOOL cd9a0800b75eab476d7feec079f23538295dca5067f979ce4280c3188b9a24adf7c78e0c2ec5e2e8cadd71d11be181d873bc462d9fe321ada85e4e11690272db
AUX clsync.confd 645 SHA256 ae7e9cacf618f9a32a4a1580580a901831aaaa0abb9de9e0379fbcc6a7359b0d SHA512 75dcc49d51f6da94d42eb501f1ad2868f163405dd7aa933f4c8078ec18f5b54eb6c66ff796ee744f7751699162627af843edbe5de5adf99c23712cedaebaddc5 WHIRLPOOL 06289c7645430d10b242983daa9cd2d4c2f327b34ede308012354947c64c654a7864586743ae6de7c02770a8b1c22de04b63404a6431b317b328ac6ac1e121ce
AUX clsync.initd 573 SHA256 1f3306dfeb4c8d8260551ed0edebe842452de2a2b7e85d07aa0fe46b88f10414 SHA512 c944388d5e61cfba73d462d457dbdcfef42c4bfc6f9ba814eea592dd630d64309e8e2b4af1cb621a41151613f28ab4508cc7d26d44def0b5a01938742cfbdd2e WHIRLPOOL c824fd5ed8e45afcd5df737dfea7645fc3460e42c5ab0512c4c462fc646f789e81597fb460126412f2347e0cb9468339b1874a697b65a40a3ff278625241f460
DIST clsync-0.4.tar.gz 253396 SHA256 6f0ce7a5f61fbb50db53b787b62cf5347870f3be315acb02c4aee6b76206d19e SHA512 9b17f5f8f0bfc48531f3d8cb4f1c1edd3116e0b7d140e8ab2465dd1c590521c9857202ed3f36466f13fb3309abb9232fb4acbe25b5652914a816fac498f74a48 WHIRLPOOL 18ae12df2d7e0403b21c5d4ab7352cd81446729d94fb300a799b98dad9f88aeaa98deb2ba5f52858d3b6ba7406d777e53e97dae5c3a4802a229511db9c8a3482
EBUILD clsync-0.4.ebuild 3280 SHA256 3ffdaad7f1b8f077065ea08ed974196e9172284c11e6a0e9fe48c4ca44c02e50 SHA512 82811e438a3a68ea99c62b8a997c03af2073de708007ac382209144e46cf85aefb07c774d94b7d4c4676442d3afce96851cfaf04745f0479992327d3d8c78210 WHIRLPOOL 52f1144f896f9d56c447a448edfb2908334b73f1fdb2199b403ecb4955af58e9fbe75008755a331ec2b4d9d44ac878a0bc454ac7227149f91bd14c7649604b78
MISC ChangeLog 678 SHA256 378ba611cea2dbda7bc053bfa3f8ed18eb67fa2f460e5650db52a4df00ef49d7 SHA512 603cd44fa93c392de159578fc3aacbabd88b6c6c6ace926e8d81920ab3bbfc6af0ccdb12cf27fbe838d74ab20e0a02c39f5421cbfcb89c84dcc410ec14085ecd WHIRLPOOL e0bc5bc52364310372d3f60ed05724daec4f425c13c5871e9d7c097f60f60ba489c678424637978c5e259b4f1c1c3d15b76535cc01ea338a2123f72d442fae4b
MISC metadata.xml 1572 SHA256 6d90b9c0f0b37dffda05a9b5ca6d02f05ce0362eb8bf8fbe19e90c3f77570940 SHA512 5be148bc1f8b1ca76e2b5713bf5a9ecfc88c4c101620fbbf1cb4efcbe7b33a923038ea0c2d5b2d66689552a04b865c4b0625887baa98a80d64f486208143ce67 WHIRLPOOL e1cd84b85b5ac476407930f14217cfed16f67d3aeb221e61dffa94c688b69ada4f29f7a7e9f4f2b610f8730c10d700bff9148d6b871ca9d98e76eaa0c5de68c8





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-11  3:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11  3:39 [gentoo-commits] gentoo-x86 commit in app-admin/clsync: ChangeLog clsync-0.4.ebuild metadata.xml Manifest Andrew Savchenko (bircoph)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox