From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-misc/ucarp/ucarp-1.5.2-r3.ebuild | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 net-misc/ucarp/ucarp-1.5.2-r3.ebuild (limited to 'net-misc/ucarp/ucarp-1.5.2-r3.ebuild') diff --git a/net-misc/ucarp/ucarp-1.5.2-r3.ebuild b/net-misc/ucarp/ucarp-1.5.2-r3.ebuild new file mode 100644 index 000000000000..7a09ba18faf4 --- /dev/null +++ b/net-misc/ucarp/ucarp-1.5.2-r3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +DESCRIPTION="Portable userland implementation of Common Address Redundancy Protocol (CARP)" +HOMEPAGE="http://www.ucarp.org" +SRC_URI="ftp://ftp.ucarp.org/pub/ucarp/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="nls" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_configure() { + econf $(use_enable nls) +} + +src_install() { + default + + doman "${FILESDIR}"/ucarp.8 + + exeinto /usr/libexec/ucarp + doexe "${FILESDIR}"/vip-up-default.sh + doexe "${FILESDIR}"/vip-down-default.sh + + keepdir /etc/ucarp + + newinitd "${FILESDIR}"/ucarp.initd-r1 ucarp + newconfd "${FILESDIR}"/ucarp.confd ucarp +} + +pkg_postinst() { + elog "The provided init script needs to be configured first." + elog "Edit /etc/conf.d/ucarp to suite your environment." + elog "You will also have to set a shared password within /etc/ucarp/ucarp.pass" + elog "or whatever file you have set \$UCARP_PASSFILE to." + + elog "If you need more than one instance of ucarp running, simply symlink" + elog "the init script and create a copy of the init script configuration" + elog "which corresponds to the name of the init script." +} -- cgit v1.2.3