diff --git a/app-portage/grs/Manifest b/app-portage/grs/Manifest new file mode 100644 index 0000000..3ae9401 --- /dev/null +++ b/app-portage/grs/Manifest @@ -0,0 +1,3 @@ +DIST ISO-1.tar.gz 2887967 BLAKE2B 0ae9d9c4078974316d6865a8601705f7c69c8305d8401835bfa544d14a90b3688ea6b881a1c07bcb969fe2b15f210d05f114ebaf3af5ba6f1ae3705d395f1603 SHA512 50bd9bcaa3d1900763936beb4801fd9e5cb963e39d51c39c9cc9a8d160469db1b0c6fffae01bbb5d5d5c6d4e42d84a6c499c465bbdd964835c2d190785eed52d +DIST sergiotarxz-v0.1.tar.gz 36442 BLAKE2B b66f65c5680d843faf5bd7d04d8d10d17e765906f3c88df1a617973fc2691b8db5a030894085925128d0d1a16a9d52ed3e68dc312a592e68f2b85df12f5f362a SHA512 0beb3d1d39c0e708f257369205ad97d9a014dd4b11bafc77eda56efe020505047f4469c50fa44b768d5df363b7c9a5d23cad1092e384163d4c8781b9e916b78c +EBUILD grs-0.1.ebuild 1383 BLAKE2B 47367315104a1f01dea5f230c9b805ddf00e6105cec6986dcb7825a579215ef09eab4d28f7eb672680183d8cdba2f7dea07dcd98cd3a6d42e1f540c98a3c7c12 SHA512 8c7dc2b23de0bbd1fa85a80f16b89eb0fc1f540d03734f061aee52ee77a71c11c9c7d53cbc8cccf2f909f8cb0dfa07e1d32c61dfce40ce5d166150e3f7730f8b diff --git a/app-portage/grs/grs-0.1.ebuild b/app-portage/grs/grs-0.1.ebuild new file mode 100644 index 0000000..a2d85de --- /dev/null +++ b/app-portage/grs/grs-0.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{8,9} ) +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 linux-info + +ISO="ISO-1.tar.gz" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/sergiotarxz/grss.git" + SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${ISO}" + inherit git-r3 +else + SRC_URI="https://github.com/sergiotarxz/grss/archive/refs/tags/sergiotarxz-v${PV}.tar.gz + https://dev.gentoo.org/~blueness/${PN}/${ISO}" + KEYWORDS="amd64 arm arm64 x86" +fi + +DESCRIPTION="Suite to build Gentoo Reference Systems" +HOMEPAGE="https://dev.gentoo.org/~blueness/grs" + +LICENSE="GPL-2" +SLOT="0" +IUSE="server" + +DEPEND="" +RDEPEND=" + sys-apps/portage + server? ( + app-arch/tar[xattr] + app-cdr/cdrtools + app-crypt/md5deep + dev-libs/libcgroup + dev-vcs/git + net-misc/rsync + sys-fs/squashfs-tools + || ( + sys-kernel/genkernel + sys-kernel/genkernel-next + ) + )" + +pkg_setup() { + if use server; then + local CONFIG_CHECK="~CGROUPS" + local ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the kernel." + linux-info_pkg_setup + fi +} + +src_install() { + distutils-r1_src_install + echo "CONFIG_PROTECT=\"/etc/grs/systems.conf\"" > "${T}"/20grs + doenvd "${T}"/20grs + if use server; then + mkdir "${D}"/usr/share/${PN} + cp "${DISTDIR}"/${ISO} "${D}"/usr/share/${PN} + fi +}