New package: frr-6.0.2

This commit is contained in:
Cameron Nemo 2018-11-13 20:53:20 -08:00 committed by maxice8
parent 5fb767155c
commit 8c9b72ffa0
46 changed files with 191 additions and 0 deletions

View File

@ -3410,3 +3410,5 @@ libOsi.so.1 libClp-1.16.11_1
libOGDF.so libogdf-2018.03_1
libCOIN.so libogdf-2018.03_1
librocksdb.so.5 rocksdb-5.17.2_1
libfrr.so.0 libfrr-6.0_1
libfrrospfapiclient.so.0 libfrrospfapiclient-6.0_1

1
srcpkgs/frr-flush Symbolic link
View File

@ -0,0 +1 @@
frr

1
srcpkgs/frr-reload Symbolic link
View File

@ -0,0 +1 @@
frr

8
srcpkgs/frr/INSTALL Normal file
View File

@ -0,0 +1,8 @@
case "${ACTION}" in
post)
if [ "$UPDATE" != "yes" ]; then
chown _frr:_frr etc/frr/*.conf
chown root:_frrvty etc/frr/vtysh.conf
fi
;;
esac

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/bfdd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/bgpd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

23
srcpkgs/frr/files/frr-flush Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
# Remove routes created by FRR
set -e
test "$(id -u)" = "0"
ip route flush proto 4
ip route flush proto 11
ip route flush proto 42
ip route flush proto 186
ip route flush proto 187
ip route flush proto 188
ip route flush proto 189
ip route flush proto 190
ip route flush proto 191
ip route flush proto 192
ip route flush proto 193
ip route flush proto 194
ip route flush proto 195
ip route flush proto 196
ip route flush proto 197

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec vtysh -c 'exit' -d "$(basename "${PWD}")" >/dev/null 2>&1

View File

@ -0,0 +1,13 @@
#!/bin/sh
daemon="$(basename "${PWD}")"
if [ "${daemon}" = "staticd" ]; then
sv check zebra
elif [ "${daemon}" != "zebra" ]; then
sv check staticd
fi
[ -r conf ] && . ./conf
exec "${daemon}" $ARGS

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/isisd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/ldpd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/nhrpd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/ospfd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/pbrd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/pimd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/ripd/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

View File

@ -0,0 +1 @@
../frr-generic/run

View File

@ -0,0 +1 @@
../frr-generic/check

1
srcpkgs/frr/files/zebra/run Symbolic link
View File

@ -0,0 +1 @@
../frr-generic/run

102
srcpkgs/frr/template Normal file
View File

@ -0,0 +1,102 @@
# Template file for 'frr'
pkgname=frr
version=6.0.2
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
# chroot-texinfo is not able to build frr's docs
configure_args="--disable-doc
--localstatedir=/run/frr --sysconfdir=/etc/frr
--enable-exampledir=/usr/share/examples/frr
--enable-user=_frr --enable-group=_frr --enable-vty-group=_frrvty"
make_build_args="SPHINXBUILD=sphinx-build3"
conf_files="/etc/frr/*.conf"
make_dirs="/var/log/frr 0700 _frr _frr"
hostmakedepends="pkg-config flex bison autoconf automake libtool
python python3 python3-Sphinx python-devel python3-devel"
makedepends="pcre-devel libcap-devel json-c-devel pam-devel c-ares-devel
readline-devel python-devel python3-devel"
short_desc="IP routing protocol suite"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://frrouting.org"
distfiles="https://github.com/FRRouting/frr/archive/${pkgname}-${version}.tar.gz"
checksum=dde97d012b6068a1230c0c6a03b38015befae37f617b9ffbd17024c71a170d94
nocross="http://ix.io/1rQ6"
system_groups="_frrvty"
system_accounts="_frr"
_frr_groups="_frrvty"
pre_configure() {
autoreconf -fi
}
post_install() {
# LSB init script is not needed
rm -f -- "${DESTDIR}/usr/bin/frr"
# frr-reload wrapper script hardcodes sbindir as usr/lib/frr, so avoid it
rm -f -- "${DESTDIR}/usr/bin/frr-reload"
mv "${DESTDIR}/usr/bin/frr-reload.py" "${DESTDIR}/usr/bin/frr-reload"
vbin "${FILESDIR}"/frr-flush
vsv frr-generic
vmkdir etc/frr 0755
vinstall /dev/null 0640 etc/frr vtysh.conf
for daemon in zebra staticd bgpd ospfd ospf6d ripd ripngd isisd pimd ldpd nhrpd eigrpd babeld sharpd pbrd bfdd fabricd; do
vinstall /dev/null 0640 etc/frr "${daemon}.conf"
vsv "${daemon}"
done
}
frr-flush_package() {
short_desc+=" - route flushing tool"
depends="iproute2 ${srcpkgname}-${version}_${revision}"
pkg_install() {
vmove usr/bin/frr-flush
}
}
frr-reload_package() {
short_desc+=" - reload tool"
depends="python-ipaddr python ${srcpkgname}-${version}_${revision}"
pkg_install() {
vmove usr/bin/frr-reload
}
}
libfrr_package() {
short_desc+=" - client library"
pkg_install() {
vmove "usr/lib/libfrr.so.*"
}
}
libfrr-devel_package() {
short_desc+=" - client library (development files)"
depends="${pkgname%-devel}-${version}_${revision}"
pkg_install() {
vmove "usr/include/frr/*.h"
vmove usr/include/frr/ospfd
vmove usr/include/frr/eigrpd
vmove usr/lib/libfrr.so
vmove usr/lib/libfrr.a
}
}
libfrrospfapiclient_package() {
short_desc+=" - OSPF client library"
pkg_install() {
vmove "usr/lib/libfrrospfapiclient.so.*"
}
}
libfrrospfapiclient-devel_package() {
short_desc+=" - OSPF client library (development files)"
depends="${pkgname%-devel}-${version}_${revision}"
pkg_install() {
vmove usr/include/frr/ospfapi
vmove usr/lib/libfrrospfapiclient.so
vmove usr/lib/libfrrospfapiclient.a
}
}

1
srcpkgs/libfrr Symbolic link
View File

@ -0,0 +1 @@
frr

1
srcpkgs/libfrr-devel Symbolic link
View File

@ -0,0 +1 @@
frr

1
srcpkgs/libfrrospfapiclient Symbolic link
View File

@ -0,0 +1 @@
frr

View File

@ -0,0 +1 @@
frr