From 79da64982138dbf5d2fa7fc80ecba5beb8e6c0fa Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 1 Aug 2018 20:00:19 +0000 Subject: [PATCH] [app-misc/sabayon-version] automatic version bump to 18.09 --- .../sabayon-version-18.09.ebuild | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 app-misc/sabayon-version/sabayon-version-18.09.ebuild diff --git a/app-misc/sabayon-version/sabayon-version-18.09.ebuild b/app-misc/sabayon-version/sabayon-version-18.09.ebuild new file mode 100644 index 000000000..8221dd13b --- /dev/null +++ b/app-misc/sabayon-version/sabayon-version-18.09.ebuild @@ -0,0 +1,81 @@ +# Copyright 2004-2017 Sabayon +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib + +DESCRIPTION="Sabayon system release virtual package" +HOMEPAGE="http://www.sabayon.org" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~arm64" + +IUSE="" +DEPEND="" +GCC_VER="6.4.0" +# Listing default packages for the current release +RDEPEND="!app-admin/eselect-init + ! "${T}/sabayon-release" + + # Anaconda expects a "release" somewhere in the string + # and no trailing \n + echo -n "Sabayon ${ARCH} release ${PV}" > "${T}/system-release" + mkdir -p "${S}" || die +} + +src_install () { + insinto /etc + doins "${T}"/sabayon-release + doins "${T}"/system-release + + # Bug 3459 - reduce the risk of fork bombs + insinto /etc/security/limits.d + doins "${FILESDIR}/00-sabayon-anti-fork-bomb.conf" + + # Create this directory here. It is normally provided by + # sys-apps/baselayout, but in a way (installed in pkg_preinst when + # USE=build) that it is not recorded as belonging to that package. + keepdir /var/empty +} + +pkg_postinst() { + # No need to set the GCC profile here, since it's done in base-gcc + + # Improve systemd support + if [[ ! -L /etc/mtab ]] && [[ -e /proc/self/mounts ]]; then + rm -f /etc/mtab + einfo "Migrating /etc/mtab to a /proc/self/mounts symlink" + ln -sf /proc/self/mounts /etc/mtab + fi + + # force kdm back to the default runlevel if added to boot + # this is in preparation for the logind migration + local xdm_conf="${ROOT}/etc/conf.d/xdm" + local xdm_boot_runlevel="${ROOT}/etc/runlevels/boot/xdm" + local xdm_default_runlevel="${ROOT}/etc/runlevels/default/xdm" + if [ -e "${xdm_conf}" ] && [ -e "${xdm_boot_runlevel}" ]; then + DISPLAYMANAGER="" + . "${xdm_conf}" + if [ "${DISPLAYMANAGER}" = "kdm" ]; then + elog "Moving xdm (kdm) from boot runlevel to default" + elog "or logind will not work as expected" + mv -f "${xdm_boot_runlevel}" "${xdm_default_runlevel}" + fi + fi + + # remove old hal udev rules.d file, if found. sys-apps/hal is long gone. + rm -f "${ROOT}/lib/udev/rules.d/90-hal.rules" +}