net-misc/babeld: version bump.
authorBenda Xu <heroxbd@gentoo.org>
Sun, 8 Jul 2018 15:19:18 +0000 (00:19 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Sun, 8 Jul 2018 15:19:18 +0000 (00:19 +0900)
  Add an openrc script.

Package-Manager: Portage-2.3.28, Repoman-2.3.9

net-misc/babeld/Manifest
net-misc/babeld/babeld-1.8.2.ebuild [new file with mode: 0644]
net-misc/babeld/files/babeld [new file with mode: 0755]

index 47d25338d767da0778a25aa196c199697565ef8e..fd28ca5ff26a28235d7c65f55b8026d60cb2dcd6 100644 (file)
@@ -1 +1,2 @@
 DIST babeld-1.8.0.tar.gz 92124 BLAKE2B 43f24c64280597201880a257095235447a49b97e7fcfc4f53db1c6e45564e41dc751017ce664779e4accdf03cb134cb33856288e2deebc6f194ae1e3744bad4e SHA512 6665ea5108200fe9d158a221ee5697c35fa1bf1d59e99a354aabea844342505731d77c1e3dff3917d048c2154bbadcdda5904ad6e46f16c43f52b5c297480b7d
+DIST babeld-1.8.2.tar.gz 92852 BLAKE2B ddf64558ebe2c96812e0b68382cda118539a1221fa15df7ee5d6aa67cdb5e1da556e4518371580bfb9df61780f559892787057605a02b8870c0a8e1f2018fc5d SHA512 08ef0747a672e7a3f2e06d4082da0d021378cea94633fdddf7de38178552bc5a587852fdb5c8bfdeeb6897ba4fd61c78e6ee4d19523a6c3e60d0e3c150418319
diff --git a/net-misc/babeld/babeld-1.8.2.ebuild b/net-misc/babeld/babeld-1.8.2.ebuild
new file mode 100644 (file)
index 0000000..a72348e
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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/"
+SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_compile() {
+       emake CDEBUGFLAGS="${CFLAGS}"
+}
+
+src_install(){
+       emake "TARGET=${D}"  PREFIX="${EPREFIX}"/usr install
+       dodoc CHANGES README
+       doinitd "${FILESDIR}"/${PN}
+}
diff --git a/net-misc/babeld/files/babeld b/net-misc/babeld/files/babeld
new file mode 100755 (executable)
index 0000000..d45cf2d
--- /dev/null
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+description="Babel routing daemon"
+command=babeld
+pidfile=/var/run/$command.pid
+command_args="-I $pidfile -S /var/lib/babeld/state"
+command_args_background="-D"
+retry="TERM/30/KILL/5"