-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Support control-socket in live ebuild. 2. Use git-r3 eclass. 3. Mask broken or not fully implemented flags using package.use.mask, drop -use statements. 4. v0.2.1 is now considered stable.
- Loading branch information
Showing
7 changed files
with
133 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
EAPI=5 | ||
|
||
if [[ ${PV} == "9999" ]] ; then | ||
_GIT=git-2 | ||
EGIT_REPO_URI="https://github.com/xaionaro/${PN}.git" | ||
SRC_URI="" | ||
KEYWORDS="" | ||
else | ||
SRC_URI="https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
KEYWORDS="x86 amd64" | ||
fi | ||
|
||
inherit autotools $_GIT | ||
|
||
DESCRIPTION="Live sync tool based on inotify, written in GNU C" | ||
HOMEPAGE="http://ut.mephi.ru/oss" | ||
LICENSE="GPL-3+" | ||
SLOT="0" | ||
IUSE="-caps -cluster debug doc +examples extra-hardened hardened mhash" | ||
REQUIRED_USE=" | ||
extra-hardened? ( hardened ) | ||
mhash? ( cluster )" | ||
|
||
RDEPEND=" | ||
caps? ( sys-libs/libcap ) | ||
mhash? ( app-crypt/mhash ) | ||
dev-libs/glib:2 | ||
" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig | ||
doc? ( app-doc/doxygen ) | ||
" | ||
|
||
src_prepare() { | ||
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}" \ | ||
--enable-paranoid=${harden_level} \ | ||
$(use_enable cluster) \ | ||
$(use_enable debug) \ | ||
$(use_with caps capabilities) \ | ||
$(use_with mhash) | ||
} | ||
|
||
src_compile() { | ||
emake | ||
use doc && emake doc | ||
} | ||
|
||
src_install() { | ||
emake DESTDIR="${D}" install | ||
use doc && dohtml -r doc/html/* | ||
|
||
# remove unwanted docs | ||
rm "${ED}/usr/share/doc/${PF}"/{LICENSE,TODO} || die | ||
use examples || rm -r "${ED}/usr/share/doc/${PF}/examples" || 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}" | ||
doins "${FILESDIR}/${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 now be multiplexed, to use symlink init script to" | ||
einfo "othername and use conf.d/othername to configure it." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# clsync system configuration file | ||
# | ||
# General recommendations: | ||
# 1. Put --dir-lists on tmpfs. | ||
# 2. Use --uid and --gid to drop privileges whenever possible. | ||
# 3. Keeep your clsync rules and sync scripts in /etc/clsync/. | ||
|
||
[default] | ||
# Put your options here, see clsync man pages for a list of valid options. | ||
# Also check examples directory (/usr/share/doc/clsync-*/examples). | ||
# | ||
#watch-dir = /what/dir/to/sync | ||
#sync-handler = /etc/clsync/action.sh | ||
#rules-dir = /etc/clsync/rules | ||
#lists-dir = /tmp/clsync | ||
#threading = safe | ||
#delay-sync = 5 | ||
#delay-collect = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/sbin/runscript | ||
# Copyright 1999-2014 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
[[ -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" | ||
command_args="--background --output=syslog --pid-file=${pidfile} \ | ||
${conffile} ${CLSYNC_OPTS}" | ||
start_stop_daemon_args="${cmd_nice} ${cmd_ionice}" | ||
|
||
depend() { | ||
use net | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Features are still under development and not working properly | ||
app-admin/clsync caps cluster |