]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
bird: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jun 2011 11:12:14 +0000 (13:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jun 2011 11:12:14 +0000 (13:12 +0200)
pkgs/bird/bird.nm [new file with mode: 0644]
pkgs/bird/systemd/bird.service [new file with mode: 0644]
pkgs/bird/systemd/bird6.service [new file with mode: 0644]

diff --git a/pkgs/bird/bird.nm b/pkgs/bird/bird.nm
new file mode 100644 (file)
index 0000000..b8ecdb5
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 (file)
index 0000000..438d6af
--- /dev/null
@@ -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 (file)
index 0000000..0d8e9b5
--- /dev/null
@@ -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