summaryrefslogtreecommitdiff
path: root/app-admin/calamares
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-26 14:57:31 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-26 14:57:31 +0100
commit723c90a6e3bb24a25e47be2103caa68fcbd74e47 (patch)
tree18b81bb8f63466846ea8e156bcd4a4e0b03191f1 /app-admin/calamares
parentb92cdf1f8f29458560f7d37d72d225e192bfb39e (diff)
insert disable kogaionlive services into calamares src tree, disable kogaionlive services during installation, enable lightdm service
Diffstat (limited to 'app-admin/calamares')
-rw-r--r--app-admin/calamares/calamares-1.1.ebuild4
-rw-r--r--app-admin/calamares/files/calamares-disable-kogaionlive-services-module.patch81
2 files changed, 85 insertions, 0 deletions
diff --git a/app-admin/calamares/calamares-1.1.ebuild b/app-admin/calamares/calamares-1.1.ebuild
index 9dc37615..f063cb11 100644
--- a/app-admin/calamares/calamares-1.1.ebuild
+++ b/app-admin/calamares/calamares-1.1.ebuild
@@ -47,6 +47,10 @@ DEPEND="
RDEPEND=">=app-misc/calamares-runtime-2.0[branding]"
src_prepare() {
+ # insert disable kogaionlive services module into src tree
+ epatch -p1 "${FILESDIR}"/${PN}-disable-kogaionlive-services-module.patch
+ # replace calamares installer desktop icon
+ sed -i "s/Icon=calamares/Icon=start-here/g" "${S}/calamares.desktop"
# If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used.
# Setting QT_SELECT environment variable will enforce correct binaries (fix taken from vlc ebuild)
export QT_SELECT=qt5
diff --git a/app-admin/calamares/files/calamares-disable-kogaionlive-services-module.patch b/app-admin/calamares/files/calamares-disable-kogaionlive-services-module.patch
new file mode 100644
index 00000000..181a5cbb
--- /dev/null
+++ b/app-admin/calamares/files/calamares-disable-kogaionlive-services-module.patch
@@ -0,0 +1,81 @@
+diff -Nur a/src/modules/liveservices/liveservices.conf b/src/modules/liveservices/liveservices.conf
+--- a/src/modules/liveservices/liveservices.conf 1970-01-01 01:00:00.000000000 +0100
++++ b/src/modules/liveservices/liveservices.conf 2015-07-26 14:31:44.353557382 +0100
+@@ -0,0 +1,21 @@
++---
++#systemd kogaion live services are disabled in this precise order
++
++services:
++ - name: "x-setup" #name of the service file
++ mandatory: false #true=> if disabling fails the installer errors out and quits
++ #false=>if disabling fails print warning to console and continue
++ - name: "cdeject"
++ mandatory: false
++
++ - name: "installer-text"
++ mandatory: false
++
++ - name: "installer-gui"
++ mandatory: false
++
++ - name: "graphical_start"
++ mandatory: false
++
++ - name: "kogaionlive"
++ mandatory: false
+diff -Nur a/src/modules/liveservices/main.py b/src/modules/liveservices/main.py
+--- a/src/modules/liveservices/main.py 1970-01-01 01:00:00.000000000 +0100
++++ b/src/modules/liveservices/main.py 2015-07-26 14:24:57.722530083 +0100
+@@ -0,0 +1,42 @@
++#!/usr/bin/env python3
++# -*- coding: utf-8 -*-
++#
++# === This file is part of Calamares - <http://github.com/calamares> ===
++#
++# Copyright 2014, Philip Müller <philm@manjaro.org>
++# Copyright 2014, Teo Mrnjavac <teo@kde.org>
++# Copyright 2015, V3n3RiX <venerix@rogentos.ro>
++#
++# Calamares is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# Calamares is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with Calamares. If not, see <http://www.gnu.org/licenses/>.
++
++import libcalamares
++
++
++def run():
++ """ Setup systemd services """
++ services = libcalamares.job.configuration['services']
++
++ # disable kogaion live services
++ for svc in services:
++ ec = libcalamares.utils.chroot_call(['systemctl', 'disable', '{}.service'.format(svc['name'])])
++
++ if ec != 0:
++ if svc['mandatory']:
++ return "Cannot disable systemd service {}".format(svc['name']), \
++ "systemctl disable call in chroot returned error code {}".format(ec)
++ else:
++ libcalamares.utils.debug("Cannot disable systemd service {}".format(svc['name']))
++ libcalamares.utils.debug("systemctl disable call in chroot returned error code {}".format(ec))
++
++ return None
+diff -Nur a/src/modules/liveservices/module.desc b/src/modules/liveservices/module.desc
+--- a/src/modules/liveservices/module.desc 1970-01-01 01:00:00.000000000 +0100
++++ b/src/modules/liveservices/module.desc 2015-07-26 14:32:23.925560039 +0100
+@@ -0,0 +1,6 @@
++---
++type: "job"
++name: "liveservices"
++interface: "python"
++requires: []
++script: "main.py"