From 564e8e98d22caca01cca520d9aa6d80a139a3547 Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 17 Jan 2012 00:31:04 +0100 Subject: [PATCH] small changes in openrc-branding; adding baselayout-branding --- config/modules/baselayout-branding.conf | 4 ++++ config/modules/openrc-branding.conf | 4 ++-- modules/baselayout-branding.ezmod | 14 ++++++++++++++ modules/openrc-branding.ezmod | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 config/modules/baselayout-branding.conf create mode 100644 modules/baselayout-branding.ezmod diff --git a/config/modules/baselayout-branding.conf b/config/modules/baselayout-branding.conf new file mode 100644 index 0000000..c702352 --- /dev/null +++ b/config/modules/baselayout-branding.conf @@ -0,0 +1,4 @@ +# This directive defines the new branding for BaseLayout package that will be set by the +# baselayout-branding module. Usually this should be a string representing distribution +# name. +CUSTOM_BRANDING="MyOwn Base System" diff --git a/config/modules/openrc-branding.conf b/config/modules/openrc-branding.conf index a82c57f..9261762 100644 --- a/config/modules/openrc-branding.conf +++ b/config/modules/openrc-branding.conf @@ -1,3 +1,3 @@ -# This directive defines the new branding for OpenRC that will be set by openrc-branding -# module. Usually this should be a distribution name. +# This directive defines the new branding for OpenRC package that will be set by +# openrc-branding module. Usually this should be a distribution name. CUSTOM_BRANDING="MyOwn" diff --git a/modules/baselayout-branding.ezmod b/modules/baselayout-branding.ezmod new file mode 100644 index 0000000..d645602 --- /dev/null +++ b/modules/baselayout-branding.ezmod @@ -0,0 +1,14 @@ +# Copyright 2010-2012, Asio Software Technologies +# Distributed under the terms of the GNU General Public License v3 +EZMOD_DESCRIPTION="Allows to re-brand the sys-apps/baselayout package" +EZMOD_COMPATIBILITY="ezsync" +EZMOD_AUTHOR="Rafal Kupiec" +EZMOD_VERSION="1.0" + +ezsync_precommit() { + printInfo "Enabling custom BaseLayout branding..." + find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/baselayout -type f -name \*.ebuild | while read EBUILD; do + sed -i "s/echo \"Gentoo Base System release/echo \"${CUSTOM_BRANDING}/g" ${EBUILD} || return 1 + done + return 0 +} diff --git a/modules/openrc-branding.ezmod b/modules/openrc-branding.ezmod index c62ecd3..4415458 100644 --- a/modules/openrc-branding.ezmod +++ b/modules/openrc-branding.ezmod @@ -1,6 +1,6 @@ # Copyright 2010-2012, Asio Software Technologies # Distributed under the terms of the GNU General Public License v3 -EZMOD_DESCRIPTION="Allows to re-brand the OpenRC package" +EZMOD_DESCRIPTION="Allows to re-brand the sys-apps/openrc package" EZMOD_COMPATIBILITY="ezsync" EZMOD_AUTHOR="Rafal Kupiec" EZMOD_VERSION="1.0"