summaryrefslogtreecommitdiff
path: root/sys-cluster/netfs/netfs-1.5.2.ebuild
blob: c2aa2d0ee6091dbb72882377fefba798869e8f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
EAPI="7"

inherit bjam

DESCRIPTION="Cluster capable network filesytem"
HOMEPAGE="http://netfs.randomdan.homeip.net/"

SRC_URI="https://git.randomdan.homeip.net/repo/${PN}/snapshot/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="client server"

RDEPEND="=dev-libs/Ice-3.7*
	>=dev-cpp/slicer-1.9:=[xml]
	server? (
			=sys-apps/icebox-service-1.11
		)
	>=dev-libs/libadhocutil-0.7:=
	client? (
			sys-fs/fuse:3
			>=dev-libs/boost-1.66:=
			)
	dev-libs/boost:="
DEPEND="${RDEPEND}
	virtual/pkgconfig
	dev-build/b2"

src_compile() {
	bjambuild \
		$(use client && echo netfs/fuse//netfs) \
		$(use server && echo netfs/daemon//netfsd++11) \
		netfs/ice//netfs-api
}

src_install() {
	bjaminstall \
		$(use client && echo netfs/fuse//install) \
		$(use server && echo netfs/daemon//install) \
		netfs/ice//install

	if use client ; then
		insinto /etc/netfs
		doins netfs/etc/client.xml
		dosym ../usr/bin/netfs /sbin/mount.netfs
	fi
	if use server ; then
		insinto /etc/netfs
		doins netfs/etc/daemon.xml
		doins netfs/etc/icebox.config
	fi
}