babeld: add 9999

This commit is contained in:
layman 2020-04-21 14:41:33 +02:00
parent 6d1b2b691b
commit c93d6ef8df
No known key found for this signature in database
GPG key ID: 92D2BF778E1308C0
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
DESCRIPTION="a loop-free distance-vector routing protocol"
HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/babel/"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jech/babeld.git"
else
SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
src_compile() {
emake CDEBUGFLAGS="${CFLAGS}"
}
src_install() {
emake "TARGET=${D}" PREFIX="${EPREFIX}"/usr install
dodoc CHANGES README
doinitd "${FILESDIR}"/${PN}
}

View file

@ -0,0 +1,10 @@
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
description="Babel routing daemon"
command=babeld
pidfile=/run/$command.pid
command_args="-I $pidfile -S /var/lib/babeld/state"
command_args_background="-D"
retry="TERM/30/KILL/5"

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person"><email>heroxbd@gentoo.org</email></maintainer>
</pkgmetadata>