2012-01-17 00:01:06 +01:00
|
|
|
# Copyright 2010-2012, Asio Software Technologies
|
|
|
|
# Distributed under the terms of the GNU General Public License v3
|
2012-01-17 00:31:04 +01:00
|
|
|
EZMOD_DESCRIPTION="Allows to re-brand the sys-apps/openrc package"
|
2012-01-17 00:01:06 +01:00
|
|
|
EZMOD_COMPATIBILITY="ezsync"
|
|
|
|
EZMOD_AUTHOR="Rafal Kupiec"
|
2012-01-17 23:26:41 +01:00
|
|
|
EZMOD_VERSION="1.1"
|
2012-01-17 00:01:06 +01:00
|
|
|
|
|
|
|
ezsync_precommit() {
|
|
|
|
printInfo "Enabling custom OpenRC branding..."
|
2012-01-17 23:26:41 +01:00
|
|
|
while read EBUILD; do
|
|
|
|
sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOMBRANDING} \${brand}\"/g" ${EBUILD} || return 1
|
2012-01-17 11:45:12 +01:00
|
|
|
run "ebuild ${EBUILD} manifest" || return 1
|
2012-01-17 23:26:41 +01:00
|
|
|
done < <(find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild)
|
2012-01-17 00:01:06 +01:00
|
|
|
return 0
|
|
|
|
}
|