2019-02-27 18:51:46 +01:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-02-28 14:50:40 +01:00
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit git-r3
|
2019-02-27 18:51:46 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Gentoo System and Image Builder"
|
|
|
|
HOMEPAGE="https://github.com/IBT-FMI/gebuilder"
|
|
|
|
SRC_URI=""
|
2019-02-28 14:57:14 +01:00
|
|
|
EGIT_REPO_URI="https://github.com/IBT-FMI/gebuilder.git"
|
2019-02-27 18:51:46 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="autoupdate btrfs docker"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
>=app-shells/bash-4.2:*
|
|
|
|
dev-python/python-glanceclient
|
|
|
|
net-misc/rsync
|
|
|
|
sys-apps/portage
|
|
|
|
sys-apps/util-linux
|
|
|
|
sys-boot/syslinux
|
|
|
|
sys-fs/duperemove
|
|
|
|
sys-kernel/dracut
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
sys-process/lsof
|
|
|
|
docker? ( >=app-emulation/docker-18.05.0 )
|
|
|
|
btrfs? ( sys-fs/btrfs-progs )
|
|
|
|
autoupdate? ( virtual/cron )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_install() {
|
2019-02-28 14:15:13 +01:00
|
|
|
cd gebuilder || die
|
2019-02-27 18:51:46 +01:00
|
|
|
insinto /usr/share/gebuilder
|
|
|
|
doins -r utils config
|
|
|
|
exeinto /usr/bin
|
|
|
|
doexe gebuild
|
|
|
|
insopts "-m0755"
|
|
|
|
doins -r example_hooks exec.sh scripts
|
|
|
|
|
|
|
|
if use autoupdate; then
|
|
|
|
einfo "Installing weekly cron job:"
|
|
|
|
insinto /etc/cron.weekly
|
|
|
|
doins "${FILESDIR}/gebuilder_global_update"
|
|
|
|
fi
|
|
|
|
}
|