# SliTaz package receipt.

PACKAGE="bird"
VERSION="1.3.6"
CATEGORY="network"
SHORT_DESC="internet routing daemon"
MAINTAINER="allan316@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://bird.network.cz"
WGET_URL="ftp://bird.network.cz/pub/$PACKAGE/$TARBALL"
TAGS="route routing daemon"

DEPENDS="readline ncurses"
BUILD_DEPENDS="flex bison readline-dev ncurses-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/sbin $fs/usr
	cp -a $_pkg/etc $fs
	cp -a $_pkg/var $fs
}