PECL GeoIP on Gentoo

Until now, I was using the PEAR installer, which is great for installing PECL packages. The only downside is that those packages won't be seen when doing a world upgrade with Gentoo. You then have two choices:
- Do an
emerge world
followed by apecl upgrade-all
- Install PECL packages via Portage
Since I'm lazy, I like the fact to upgrade everything at one place.
The hard part now is to write the ebuild, which is really simple considering the fact that it is a PECL package and that eclass are available.
One thing to another, this ebuild is now part of the testing overlay for Gentoo. If no bugs are found, it should be part of the normal tree shortly.
Kerberos kpropd on Gentoo
Nothing fancy, but while configuring a Kerberos slave on a Gentoo server, an init script seems to be missing for starting kpropd.
While it seems some have difficulties writing init scripts, here is what I am using:
#!/sbin/runscript
daemon="MIT Kerberos 5 KPROPD"
exec="/usr/sbin/kpropd"
opts="start stop restart"
depend() {
need net
}
start() {
ebegin "Starting $daemon"
start-stop-daemon --start --quiet --exec ${exec} -- -S 1>&2
eend $? "Error starting $daemon"
}
stop() {
ebegin "Stopping $daemon"
start-stop-daemon --stop --quiet --oknodo --exec ${exec} 1>&2
eend $? "Error stopping $daemon"
}
restart() {
svc_stop
svc_start
}