summaryrefslogtreecommitdiff
path: root/app-misc/rogentoslive-tools/rogentoslive-tools-2.ebuild
blob: 88361edb352a5b0a4a45e561daa9b1c20b0f3996 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright 2004-2013 Sabayon
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils systemd

DESCRIPTION="Sabayon Live tools for autoconfiguration of the system"
HOMEPAGE="http://rogentos.ro/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""

DEPEND=""
RDEPEND="!app-misc/livecd-tools
	app-admin/eselect-opengl
	dev-util/dialog
	sys-apps/gawk
	sys-apps/pciutils
	>=sys-apps/keyboard-configuration-helpers-2.6
	sys-apps/sed"

S="${WORKDIR}"

src_unpack() { :; }

src_install() {
	local dir="${FILESDIR}/${PV}"

	exeinto /usr/libexec
	doexe "${dir}/installer-text.sh"
	doexe "${dir}/installer-gui.sh"
	doexe "${dir}/rogentoslive.sh"
	doexe "${dir}/x-setup.sh"
	doexe "${dir}/cdeject.sh"

	dosbin "${dir}/x-setup-configuration"
	newinitd "${dir}/x-setup-init.d" x-setup

	dosbin "${dir}/net-setup"
	into /
	dosbin "${dir}/"*-functions.sh
	dosbin "${dir}/logscript.sh"
	dobin "${dir}/bashlogin"
	dobin "${dir}/vga-cmd-parser"

	exeinto /usr/bin
	doexe "${dir}/livespawn"
	doexe "${dir}/sabutil"
	doexe "${dir}/rogentos-live-check"
	doexe "${dir}/rogentos-welcome-loader"

	dodir /etc/rogentos
	insinto /etc/rogentos
	doins "${dir}/rogentos-welcome-loader.desktop"

	dodir /usr/share/rogentoslive-tools/xorg.conf.d
	insinto /usr/share/rogentoslive-tools/xorg.conf.d

	doinitd "${dir}/rogentoslive"
	systemd_dounit "${dir}/rogentoslive.service"
	systemd_dounit "${dir}/x-setup.service"

	doinitd "${dir}/installer-gui"
	systemd_dounit "${dir}/installer-gui.service"

	doinitd "${dir}/installer-text"
	systemd_dounit "${dir}/installer-text.service"

	doinitd "${dir}/cdeject"
	systemd_dounit "${dir}/cdeject.service"
}