--- /usr/portage/net-misc/ucarp/ucarp-1.5.2.ebuild 2011-04-02 15:01:20.000000000 +0200 +++ ucarp-1.5.2-r1.ebuild 2011-12-13 23:26:19.977693744 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ucarp/ucarp-1.5.2.ebuild,v 1.2 2011/04/02 12:50:07 ssuominen Exp $ -EAPI="2" +EAPI="4" inherit base @@ -15,13 +15,34 @@ KEYWORDS="~amd64 ~ppc ~x86" IUSE="nls" -RDEPEND="net-libs/libpcap" -DEPEND="${RDEPEND} - nls? ( sys-devel/gettext )" - -DOCS=( "README" "NEWS" "AUTHORS" "ChangeLog" - "examples/linux/vip-up.sh" "examples/linux/vip-down.sh" ) +DEPEND="nls? ( sys-devel/gettext )" +RDEPEND="${DEPEND} + net-libs/libpcap + sys-apps/iproute2" src_configure() { econf $(use_enable nls) } + +src_install() { + emake DESTDIR=${D} install || die + + dodoc README INSTALL NEWS ChangeLog || die + dodoc examples/linux/vip-up.sh examples/linux/vip-down.sh + + newconfd "${FILESDIR}/ucarp.conf" ucarp + newinitd "${FILESDIR}/ucarp.init" ucarp + + exeinto /etc/ucarp + doexe "${FILESDIR}/vip-up.sh" + doexe "${FILESDIR}/vip-down.sh" +} + +pkg_postinst() { + elog "PLEASE NOTE:" + elog "" + elog "UCARP must be configured before it can be used. Make sure you" + elog "edit the config file located in /etc/conf.d/ucarp before" + elog "starting the daemon." +} +