# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 6582 2009-10-27 09:47:00Z dg8ngn $

include $(TOPDIR)/rules.mk

PKG_NAME:=bird
PKG_VERSION:=1.1.4
PKG_RELEASE:=1

PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
PKG_MD5SUM:=46291d7997adf118ecd2c375baa432e8

PKG_BUILD_DIR:=$(BUILD_DIR)/bird-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/bird
  SECTION:=net
  CATEGORY:=Network
  TITLE:=The BIRD Internet Routing Daemon
  DESCRIPTION:=\
	The BIRD project aims to develop a fully functional dynamic IP \\\
	routing daemon.
  URL:=http://bird.network.cz
  DEPENDS:=
endef

CONFIGURE_ARGS += --with-linux-headers="$(LINUX_DIR)" -prefix= --disable-client bird_cv_c_endian=little-endian

define Package/bird/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_DIR) $(1)/etc
	$(INSTALL_DATA) ./files/bird.conf $(1)/etc/bird.conf
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/bird $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,bird))
