blob: 8433cf14bdadc54c2ddf2e5bfcf597393d811d8a (
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
|
# Copyright 2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1
DESCRIPTION="Inspectable orchestration around Portage and OSForge runs"
HOMEPAGE="https://git.baldeagleos.com/osforge"
SRC_URI="https://distfiles.baldeagleos.com/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="usb-writer"
PATCHES=(
"${FILESDIR}/osforge-0.2.1-fast-seed-restore.patch"
)
RDEPEND="
${PYTHON_DEPS}
acct-group/osforge
app-arch/tar
dev-python/prompt-toolkit[${PYTHON_USEDEP}]
dev-vcs/git
net-misc/rsync
sys-apps/portage
usb-writer? (
sys-apps/gptfdisk
sys-block/parted
sys-boot/grub
sys-fs/dosfstools
sys-fs/e2fsprogs
)
"
BDEPEND="
test? (
app-arch/tar
dev-vcs/git
net-misc/rsync
)
"
distutils_enable_tests unittest
python_test() {
eunittest -s tests
}
python_install_all() {
distutils-r1_python_install_all
newinitd src/osforge/data/openrc/osforged osforged
newconfd src/osforge/data/openrc/osforged.confd osforged
dodoc -r examples
if use usb-writer; then
dosbin scripts/osforge-write-usb
fi
}
pkg_postinst() {
elog "OSForge installed. To start the daemon now:"
elog " rc-service osforged start"
elog "To enable it at boot:"
elog " rc-update add osforged default"
}
|