Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 580798
Collapse All | Expand All

(-)/var/db/portage/repos/gentoo/app-admin/clsync/clsync-0.4.1.ebuild (-21 / +30 lines)
Lines 1-50 Link Here
1
# Copyright 1999-2015 Gentoo Foundation
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI=5
5
EAPI=6
6
6
7
if [[ ${PV} == "9999" ]] ; then
7
PVER="20150524-v2"
8
	inherit git-r3
9
	EGIT_REPO_URI="https://github.com/xaionaro/${PN}.git"
10
else
11
	PVER="20150524-v2"
12
	SRC_URI="
13
		https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
14
		https://dev.gentoo.org/~bircoph/patches/${P}-${PVER}.patch.xz
15
	"
16
	KEYWORDS="~amd64 ~x86"
17
fi
18
8
19
inherit autotools eutils linux-info
9
inherit autotools eutils linux-info
20
10
21
DESCRIPTION="Live sync tool based on inotify, written in GNU C"
11
DESCRIPTION="Live sync tool based on inotify, written in GNU C"
22
HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync"
12
HOMEPAGE="https://github.com/xaionaro/clsync http://ut.mephi.ru/oss/clsync"
13
SRC_URI="
14
	https://github.com/xaionaro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
15
	https://dev.gentoo.org/~bircoph/patches/${P}-${PVER}.patch.xz
16
"
17
23
LICENSE="GPL-3+"
18
LICENSE="GPL-3+"
24
SLOT="0"
19
SLOT="0"
25
IUSE="+caps cluster control-socket cgroups debug extra-debug
20
KEYWORDS="~amd64 ~x86"
26
extra-hardened gio hardened +highload-locks +inotify mhash
21
27
namespaces seccomp"
22
IUSE="+caps cluster control-socket cgroups debug extra-debug extra-hardened"
23
IUSE+=" gio hardened +highload-locks +inotify mhash namespaces seccomp"
28
24
29
REQUIRED_USE="
25
REQUIRED_USE="
30
	|| ( gio inotify )
26
	|| ( gio inotify )
27
31
	extra-debug? ( debug )
28
	extra-debug? ( debug )
29
32
	extra-hardened? ( hardened )
30
	extra-hardened? ( hardened )
31
33
	mhash? ( cluster )
32
	mhash? ( cluster )
33
34
	seccomp? ( caps )
34
	seccomp? ( caps )
35
"
35
"
36
RDEPEND="
36
37
CDEPEND="
37
	dev-libs/glib:2
38
	dev-libs/glib:2
39
38
	cgroups? ( dev-libs/libcgroup )
40
	cgroups? ( dev-libs/libcgroup )
41
39
	mhash? ( app-crypt/mhash )
42
	mhash? ( app-crypt/mhash )
40
"
43
"
44
41
DEPEND="${CDEPEND}
45
DEPEND="${CDEPEND}
42
	virtual/pkgconfig
46
	virtual/pkgconfig
43
"
47
"
48
44
RDEPEND="${CDEPEND}
49
RDEPEND="${CDEPEND}
45
	~app-doc/clsync-docs-${PV}
50
	~app-doc/clsync-docs-${PV}
46
"
51
"
47
52
53
PATCHES=(
54
	"${WORKDIR}/${P}-${PVER}.patch"
55
)
56
48
pkg_pretend() {
57
pkg_pretend() {
49
	use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
58
	use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
50
	use seccomp && CONFIG_CHECK+=" ~SECCOMP"
59
	use seccomp && CONFIG_CHECK+=" ~SECCOMP"
Lines 52-59 Link Here
52
}
61
}
53
62
54
src_prepare() {
63
src_prepare() {
55
	# upstream fixes for 0.4.1
64
	default
56
	epatch "${WORKDIR}/${P}-${PVER}.patch"
65
57
	eautoreconf
66
	eautoreconf
58
}
67
}
59
68
Lines 89-101 Link Here
89
src_install() {
98
src_install() {
90
	emake DESTDIR="${D}" install
99
	emake DESTDIR="${D}" install
91
100
92
	# docs go into clsync-docs
101
	# Docs go into clsync-docs
93
	rm -rf "${ED}/usr/share/doc" || die
102
	rm -rf "${ED}/usr/share/doc" || die
94
103
95
	newinitd "${FILESDIR}/${PN}.initd" "${PN}"
104
	newinitd "${FILESDIR}/${PN}.initd" "${PN}"
96
	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
105
	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
97
106
98
	# filter rules and sync scripts are supposed to be here
107
	# Filter rules and sync scripts are supposed to be here.
99
	keepdir "${EPREFIX}/etc/${PN}"
108
	keepdir "${EPREFIX}/etc/${PN}"
100
	insinto "/etc/${PN}"
109
	insinto "/etc/${PN}"
101
	newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
110
	newins "${FILESDIR}/${PN}.conf" "${PN}.conf"

Return to bug 580798