On Fri, Jul 20, 2007 at 10:05:23PM +0200, Benedikt Boehm wrote: > > qmail_base_install should be split in smaller functions, maybe with > > callbacks (if possible in bash).
> There is now qmail_mini_install (called by every qmail ebuild) and > qmail_{full,man,sendmail}_install for the rest of a full blown install. > I'm not sure what you mean with "callbacks" here, maybe you can > elaborate? If we have a common part which cannot, due to whatever reason, be split into several functions, but we've to do something package specific in between, we need callbacks. Just a sample (might not work at all, I'm not that much into eclasses): foo.eclass: foo_src_install() { # Some prefix code # … package_specific_code # Some postfix code # … } foo-simple.ebuild: src_install() { foo_src_install } package_specific_code() { # code for foo-simple } foo-adv.ebuild: src_install() { foo_src_install } package_specific_code() { # code for foo-adv } > The qmail_*_install changes are already in my overlay, How can I get it using SVN? Looking at the site for more than a minute shouldn't be required to find it. Btw.: you didn't correct your blog posting to show the actual facts. Thanks, Michael -- http://hansmi.ch/
pgpheRVzzvEaH.pgp
Description: PGP signature