--- /usr/portage/net-dns/unbound/unbound-1.4.12.ebuild 2011-07-16 05:52:59.000000000 +0200 +++ unbound-9999.ebuild 2011-08-08 21:56:45.211230733 +0200 @@ -38,6 +38,8 @@ pkg_setup() { enewgroup unbound enewuser unbound -1 -1 /etc/unbound unbound + + use python && python_pkg_setup } src_prepare() { @@ -96,3 +98,11 @@ exeinto /usr/share/${PN} doexe contrib/update-anchor.sh || die "doexe failed" } + +pkg_postinst() { + use python && python_mod_optimize unbound.py unboundmodule.py +} + +pkg_postrm() { + use python && python_mod_cleanup unbound.py unboundmodule.py +}