Revert "bird: Drop package"

This reverts commit 09c3106fb1.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer 2018-12-13 13:30:46 +00:00
parent 198756ea97
commit 1e1ddde293
3 changed files with 110 additions and 0 deletions

84
bird/bird.nm Normal file
View File

@ -0,0 +1,84 @@
###############################################################################
# IPFire.org - An Open Source Firewall Solution #
# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
name = bird
version = 1.6.0
release = 1
groups = Networking/Routing
url = http://bird.network.cz/
license = GPLv2+
summary = BIRD Internet Routing Daemon.
description
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
protocols BGP, RIP and OSPF.
end
source_dl = ftp://bird.network.cz/pub/bird/
build
requires
bison
flex
ncurses-devel
readline-devel
end
prepare_cmds
mkdir -pv %{DIR_APP}/ipv6
tar c --exclude ipv6 . | tar x -C ipv6
end
build
./configure %{configure_options}
make %{PARALLELISMFLAGS}
cd ipv6
./configure %{configure_options} --enable-ipv6
make %{PARALLELISMFLAGS}
end
install
make install DESTDIR=%{BUILDROOT}
cd ipv6
make install DESTDIR=%{BUILDROOT}
rm -rfv %{BUILDROOT}/var
end
end
packages
package %{name}
prerequires = systemd-units
script postin
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
end
script preun
/bin/systemctl --no-reload disable bird.service > /dev/null 2>&1 || :
/bin/systemctl stop bird.service > /dev/null 2>&1 || :
/bin/systemctl --no-reload disable bird6.service > /dev/null 2>&1 || :
/bin/systemctl stop bird6.service > /dev/null 2>&1 || :
end
script postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
end
script postup
/bin/systemctl daemon-reload 2>&1 || :
/bin/systemctl reload-or-try-restart bird.service >/dev/null 2>&1 || :
/bin/systemctl reload-or-try-restart bird6.service >/dev/null 2>&1 || :
end
end
package %{name}-debuginfo
template DEBUGINFO
end
end

13
bird/systemd/bird.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=BIRD Internet Routing Daemon
Requires=network.target
After=network.target
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/sbin/bird
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=BIRD Internet Routing Daemon
Requires=network.target
After=network.target
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/sbin/bird6
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target