From: Michael Tremer Date: Sat, 25 Jun 2011 11:12:14 +0000 (+0200) Subject: bird: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=badfa52e391b213ff46e7ac5d5df8bdcbf1068c1;p=ipfire-3.x.git bird: New package. --- diff --git a/pkgs/bird/bird.nm b/pkgs/bird/bird.nm new file mode 100644 index 000000000..b8ecdb56c --- /dev/null +++ b/pkgs/bird/bird.nm @@ -0,0 +1,70 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = bird +PKG_VER = 1.3.1 +PKG_REL = 1 + +PKG_MAINTAINER = +PKG_GROUPS = Networking/Routing +PKG_URL = http://bird.network.cz/ +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = BIRD Internet Routing Daemon. + +PKG_BUILD_DEPS+= bison flex ncurses-devel readline-devel + +define PKG_DESCRIPTION + BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing + protocols BGP, RIP and OSPF. +endef + +PKG_TARBALL = $(THISAPP).tar.gz + +CONFIGURE_OPTIONS += \ + --sysconfdir=/etc \ + --localstatedir=/var + +define STAGE_PREPARE_CMDS + -mkdir -pv $(DIR_APP)/ipv6 + cd $(DIR_APP) && tar c --exclude ipv6 . | tar x -C ipv6 +endef + +define STAGE_BUILD + cd $(DIR_APP) && \ + ./configure $(CONFIGURE_OPTIONS) + cd $(DIR_APP) && make $(PARALLELISMFLAGS) + + cd $(DIR_APP)/ipv6 && \ + ./configure $(CONFIGURE_OPTIONS) --enable-ipv6 + cd $(DIR_APP)/ipv6 && make $(PARALLELISMFLAGS) +endef + +define STAGE_INSTALL + cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) + cd $(DIR_APP)/ipv6 && make install DESTDIR=$(BUILDROOT) + + rm -rfv $(BUILDROOT)/var +endef diff --git a/pkgs/bird/systemd/bird.service b/pkgs/bird/systemd/bird.service new file mode 100644 index 000000000..438d6afef --- /dev/null +++ b/pkgs/bird/systemd/bird.service @@ -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 diff --git a/pkgs/bird/systemd/bird6.service b/pkgs/bird/systemd/bird6.service new file mode 100644 index 000000000..0d8e9b58a --- /dev/null +++ b/pkgs/bird/systemd/bird6.service @@ -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