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.

regen2-features.ezmod 779B

12345678910111213141516
  1. # Copyright 2010-2012, Asio Software Technologies
  2. # Distributed under the terms of the GNU General Public License v3
  3. EZMOD_DESCRIPTION="Enables reGen2 specific features in generated tree"
  4. EZMOD_COMPATIBILITY="ezsync"
  5. EZMOD_AUTHOR="Rafal Kupiec"
  6. EZMOD_VERSION="1.2"
  7. ezsync_precommit() {
  8. printInfo "Enabling compatibility options..."
  9. rm -rf ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/cache
  10. echo "cache-formats = md5-dict" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
  11. echo "profile-formats = portage-1" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
  12. run "cp ${EZROOT}/files/dispatch.sh ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/scripts/dispatch.sh" || return 1
  13. run "chmod +x ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/scripts/dispatch.sh" || return 1
  14. return 0
  15. }