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:
parent
b1d14d61d2
commit
286cfe362a
@ -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:
|
28 Feb 2019; Horea Christian <h.chr@mail.ru> +files/gebuilder_global_update:
|
||||||
app-misc/gebuilder: added update file
|
app-misc/gebuilder: added update file
|
||||||
|
|
||||||
|
@ -13,11 +13,10 @@ EGIT_REPO_URI="https://github.com/IBT-FMI/gebuilder.git"
|
|||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE="autoupdate btrfs docker"
|
IUSE="autoupdate btrfs -docker -openstack test"
|
||||||
|
|
||||||
DEPEND="
|
COMMON_DEPEND="
|
||||||
>=app-shells/bash-4.2:*
|
>=app-shells/bash-4.2:*
|
||||||
dev-python/python-glanceclient
|
|
||||||
net-misc/rsync
|
net-misc/rsync
|
||||||
sys-apps/portage
|
sys-apps/portage
|
||||||
sys-apps/util-linux
|
sys-apps/util-linux
|
||||||
@ -25,25 +24,45 @@ DEPEND="
|
|||||||
sys-fs/duperemove
|
sys-fs/duperemove
|
||||||
sys-kernel/dracut
|
sys-kernel/dracut
|
||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
sys-devel/m4
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
sys-process/lsof
|
sys-process/lsof
|
||||||
docker? ( >=app-emulation/docker-18.05.0 )
|
|
||||||
btrfs? ( sys-fs/btrfs-progs )
|
|
||||||
autoupdate? ( virtual/cron )
|
autoupdate? ( virtual/cron )
|
||||||
|
btrfs? ( sys-fs/btrfs-progs )
|
||||||
|
docker? ( >=app-emulation/docker-18.05.0 )
|
||||||
|
openstack? ( dev-python/python-glanceclient )
|
||||||
"
|
"
|
||||||
|
|
||||||
src_install() {
|
src_prepare(){
|
||||||
cd gebuilder || die
|
if use !docker; then
|
||||||
insinto /usr/share/gebuilder
|
rm -rf gebuilder/scripts/*docker* || die
|
||||||
doins -r utils config
|
rm gebuilder/tests/*docker* || die
|
||||||
exeinto /usr/bin
|
fi
|
||||||
doexe gebuild
|
if use !openstack; then
|
||||||
insopts "-m0755"
|
rm -rf gebuilder/scripts/*openstack* || die
|
||||||
doins -r example_hooks exec.sh scripts
|
rm gebuilder/tests/*openstack* || die
|
||||||
|
fi
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile(){
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
if use autoupdate; then
|
if use autoupdate; then
|
||||||
einfo "Installing weekly cron job:"
|
einfo "Installing weekly cron job:"
|
||||||
insinto /etc/cron.weekly
|
insinto /etc/cron.weekly
|
||||||
doins "${FILESDIR}/gebuilder_global_update"
|
doins "${FILESDIR}/gebuilder_global_update"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
TMPDIR="${WORKDIR}/test_results"
|
||||||
|
mkdir ${TMPDIR}
|
||||||
|
cd gebuilder
|
||||||
|
./tests.sh || die
|
||||||
|
}
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
<flag name="autoupdate">Configures the system to auto-update existing images.</flag>
|
<flag name="autoupdate">Configures the system to auto-update existing images.</flag>
|
||||||
<flag name="btrfs">Enable support for btrfs filesystem formatting
|
<flag name="btrfs">Enable support for btrfs filesystem formatting
|
||||||
(saves space for many images).</flag>
|
(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>
|
</use>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">IBT-FMI/gebuilder</remote-id>
|
<remote-id type="github">IBT-FMI/gebuilder</remote-id>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user