From 0fb912a0d0803a1c5db0b238a6cd7af56e1037ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Mon, 3 Oct 2022 18:41:25 +0000 Subject: [PATCH] - use /etc/bird dir --- bird2.init | 4 ++-- bird2.spec | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bird2.init b/bird2.init index 00f9d6a..87fae58 100644 --- a/bird2.init +++ b/bird2.init @@ -7,7 +7,7 @@ # description: Dynamic Route Daemon for IPv4/IPv6 routers # # processname: bird -# config: /etc/bird.conf +# config: /etc/bird/bird.conf # Source function library @@ -30,7 +30,7 @@ else fi # Sanity checks. -[ -f /etc/bird.conf ] || exit 0 +[ -f /etc/bird/bird.conf ] || exit 0 RETVAL=0 # See how we were called. diff --git a/bird2.spec b/bird2.spec index ceb6514..535ac3e 100644 --- a/bird2.spec +++ b/bird2.spec @@ -43,6 +43,8 @@ Obsoletes: zebra Obsoletes: zebra-guile BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _sysconfdir /etc/bird + %description The BIRD project is an attempt to create a routing daemon running on UNIX-like systems (but not necessarily limited to them) with full @@ -112,6 +114,7 @@ fi %files %defattr(644,root,root,755) %doc %{?with_docs:obj/doc/*.html} doc/reply_codes bird-doc-%{version}/doc/*.pdf ChangeLog NEWS README +%dir %{_sysconfdir} %attr(755,root,root) %{_sbindir}/bird %attr(755,root,root) %{_sbindir}/birdc %attr(755,root,root) %{_sbindir}/birdcl -- 2.44.0