1
0
mirror of synced 2024-12-22 12:50:33 +01:00

app-misc/gebuilder: included tests and more USE

Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2019-10-26 18:03:16 +02:00
parent b1d14d61d2
commit 286cfe362a
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 39 additions and 16 deletions

View File

@ -1,3 +1,6 @@
26 Oct 2019; <chymera@gentoo.org> gebuilder-9999.ebuild, metadata.xml:
app-misc/gebuilder: included tests and more USE
28 Feb 2019; Horea Christian <h.chr@mail.ru> +files/gebuilder_global_update:
app-misc/gebuilder: added update file

View File

@ -13,11 +13,10 @@ EGIT_REPO_URI="https://github.com/IBT-FMI/gebuilder.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="autoupdate btrfs docker"
IUSE="autoupdate btrfs -docker -openstack test"
DEPEND="
COMMON_DEPEND="
>=app-shells/bash-4.2:*
dev-python/python-glanceclient
net-misc/rsync
sys-apps/portage
sys-apps/util-linux
@ -25,25 +24,45 @@ DEPEND="
sys-fs/duperemove
sys-kernel/dracut
"
RDEPEND="${DEPEND}
DEPEND="${COMMON_DEPEND}
sys-devel/m4
"
RDEPEND="${COMMON_DEPEND}
sys-process/lsof
docker? ( >=app-emulation/docker-18.05.0 )
btrfs? ( sys-fs/btrfs-progs )
autoupdate? ( virtual/cron )
btrfs? ( sys-fs/btrfs-progs )
docker? ( >=app-emulation/docker-18.05.0 )
openstack? ( dev-python/python-glanceclient )
"
src_install() {
cd gebuilder || die
insinto /usr/share/gebuilder
doins -r utils config
exeinto /usr/bin
doexe gebuild
insopts "-m0755"
doins -r example_hooks exec.sh scripts
src_prepare(){
if use !docker; then
rm -rf gebuilder/scripts/*docker* || die
rm gebuilder/tests/*docker* || die
fi
if use !openstack; then
rm -rf gebuilder/scripts/*openstack* || die
rm gebuilder/tests/*openstack* || die
fi
default
}
src_compile(){
emake
}
src_install() {
default
if use autoupdate; then
einfo "Installing weekly cron job:"
insinto /etc/cron.weekly
doins "${FILESDIR}/gebuilder_global_update"
fi
}
src_test() {
TMPDIR="${WORKDIR}/test_results"
mkdir ${TMPDIR}
cd gebuilder
./tests.sh || die
}

View File

@ -14,7 +14,8 @@
<flag name="autoupdate">Configures the system to auto-update existing images.</flag>
<flag name="btrfs">Enable support for btrfs filesystem formatting
(saves space for many images).</flag>
<flag name="docker">Ensure prerequisites for Docker scripts are met.</flag>
<flag name="docker">Docker image generation functionality.</flag>
<flag name="openstack">Openstack image generation functionality.</flag>
</use>
<upstream>
<remote-id type="github">IBT-FMI/gebuilder</remote-id>