--- /usr/portage/net-misc/ucarp/ucarp-1.5.2.ebuild 2010-06-26 21:29:16.000000000 +0200 +++ ucarp-1.5.2.ebuild 2010-11-13 18:16:35.761868686 +0100 @@ -1,6 +1,5 @@ # Copyright 1999-2010 Gentoo Foundation # 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.1 2010/06/26 19:29:16 xarthisius Exp $ EAPI="2" @@ -15,9 +14,11 @@ KEYWORDS="~amd64 ~ppc ~x86" IUSE="nls" -RDEPEND="virtual/libpcap" -DEPEND="${RDEPEND} - nls? ( sys-devel/gettext )" +DEPEND="nls? ( sys-devel/gettext )" +RDEPEND="${DEPEND} + virtual/libpcap + sys-apps/iproute2" + DOCS=( "README" "NEWS" "AUTHORS" "ChangeLog" "examples/linux/vip-up.sh" "examples/linux/vip-down.sh" ) @@ -25,3 +26,26 @@ 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." +} +