reGen2 Linux Release Metatool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openrc-branding.ezmod 611B

123456789101112131415
  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/openrc package"
  4. EZMOD_COMPATIBILITY="ezsync"
  5. EZMOD_AUTHOR="Rafal Kupiec"
  6. EZMOD_VERSION="1.1"
  7. ezsync_precommit() {
  8. printInfo "Enabling custom OpenRC branding..."
  9. while read EBUILD; do
  10. sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOMBRANDING} \${brand}\"/g" ${EBUILD} || return 1
  11. run "ebuild ${EBUILD} manifest" || return 1
  12. done < <(find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild)
  13. return 0
  14. }