Browse Source

small changes in openrc-branding; adding baselayout-branding

master
belliash 7 years ago
parent
commit
564e8e98d2

+ 4
- 0
config/modules/baselayout-branding.conf View File

@@ -0,0 +1,4 @@
1
+# This directive defines the new branding for BaseLayout package that will be set by the
2
+# baselayout-branding module. Usually this should be a string representing distribution
3
+# name.
4
+CUSTOM_BRANDING="MyOwn Base System"

+ 2
- 2
config/modules/openrc-branding.conf View File

@@ -1,3 +1,3 @@
1
-# This directive defines the new branding for OpenRC that will be set by openrc-branding
2
-# module. Usually this should be a distribution name.
1
+# This directive defines the new branding for OpenRC package that will be set by
2
+# openrc-branding module. Usually this should be a distribution name.
3 3
 CUSTOM_BRANDING="MyOwn"

+ 14
- 0
modules/baselayout-branding.ezmod View File

@@ -0,0 +1,14 @@
1
+# Copyright 2010-2012, Asio Software Technologies
2
+# Distributed under the terms of the GNU General Public License v3
3
+EZMOD_DESCRIPTION="Allows to re-brand the sys-apps/baselayout package"
4
+EZMOD_COMPATIBILITY="ezsync"
5
+EZMOD_AUTHOR="Rafal Kupiec"
6
+EZMOD_VERSION="1.0"
7
+
8
+ezsync_precommit() {
9
+	printInfo "Enabling custom BaseLayout branding..."
10
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/baselayout -type f -name \*.ebuild | while read EBUILD; do
11
+		sed -i "s/echo \"Gentoo Base System release/echo \"${CUSTOM_BRANDING}/g" ${EBUILD} || return 1
12
+	done
13
+	return 0
14
+}

+ 1
- 1
modules/openrc-branding.ezmod View File

@@ -1,6 +1,6 @@
1 1
 # Copyright 2010-2012, Asio Software Technologies
2 2
 # Distributed under the terms of the GNU General Public License v3
3
-EZMOD_DESCRIPTION="Allows to re-brand the OpenRC package"
3
+EZMOD_DESCRIPTION="Allows to re-brand the sys-apps/openrc package"
4 4
 EZMOD_COMPATIBILITY="ezsync"
5 5
 EZMOD_AUTHOR="Rafal Kupiec"
6 6
 EZMOD_VERSION="1.0"

Loading…
Cancel
Save