diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-03-06 21:09:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-03-06 21:09:39 +0000 |
commit | 9d501d74c1b8a06242b92752e721e3a5b48bd3ac (patch) | |
tree | 185ade48e20c51f6249653a645bc1e9982173f9a | |
parent | 5887913181014ee1e73f211dd91119fa449e2436 (diff) | |
parent | ce7d58599e63ed4c46ac95f720f66a122f063bf7 (diff) |
Merge branch 'master' of gitlab.com:kogaion/kogaion-desktop
-rw-r--r-- | app-misc/kogaion-version/kogaion-version-3.ebuild | 84 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-2.2-r2.ebuild | 2 |
2 files changed, 85 insertions, 1 deletions
diff --git a/app-misc/kogaion-version/kogaion-version-3.ebuild b/app-misc/kogaion-version/kogaion-version-3.ebuild new file mode 100644 index 00000000..0984766d --- /dev/null +++ b/app-misc/kogaion-version/kogaion-version-3.ebuild @@ -0,0 +1,84 @@ +# Copyright 2004-2013 Kogaion +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit multilib + +DESCRIPTION="Kogaion system release virtual package" +HOMEPAGE="http://www.rogentos.ro" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm x86" + +IUSE="" +DEPEND="" +GCC_VER="4.8" +PYTHON_VER="2.7" +# Listing default packages for the current release +RDEPEND="!app-admin/eselect-init + !sys-apps/hal + !sys-auth/consolekit + app-eselect/eselect-python + sys-apps/gentoo-systemd-integration + dev-lang/python:${PYTHON_VER} + sys-apps/systemd + sys-devel/base-gcc:${GCC_VER} + sys-devel/gcc-config" + +src_unpack () { + echo "Kogaion Linux ${ARCH} ${PV}" > "${T}/kogaion-release" + + # Anaconda expects a "release" somewhere in the string + # and no trailing \n + echo -n "Kogaion ${ARCH} release ${PV}" > "${T}/system-release" + mkdir -p "${S}" || die +} + +src_install () { + insinto /etc + doins "${T}"/kogaion-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" +} + +pkg_postinst() { + # Setup Python ${PYTHON_VER} + eselect python set python${PYTHON_VER} + # 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" + + # make sure that systemd is correctly linked to /sbin/init + # Drop this in 2015, keep in sync with systemd-sysv-utils + ln -sf ../usr/lib/systemd/systemd "${ROOT}/sbin/init" || true +} diff --git a/sys-apps/baselayout/baselayout-2.2-r2.ebuild b/sys-apps/baselayout/baselayout-2.2-r2.ebuild index 9935e23d..2e5a40b3 100644 --- a/sys-apps/baselayout/baselayout-2.2-r2.ebuild +++ b/sys-apps/baselayout/baselayout-2.2-r2.ebuild @@ -187,7 +187,7 @@ src_install() { echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic # rc-scripts version for testing of features that *should* be present - echo "Kogaion Gentoo-based system release ${PV}" > "${D}"/etc/gentoo-release + echo "Kogaion Gentoo Linux 3.0" > "${D}"/etc/gentoo-release # Sabayon customization, install /etc/hosts separately (to .example) mv "${D}"/etc/hosts "${D}"/etc/hosts.example || die "cannot move /etc/hosts" |