# SliTaz package receipt.

PACKAGE="ucarp"
VERSION="1.5.2"
CATEGORY="network"
SHORT_DESC="Portable implementation of the CARP protocol."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.ucarp.org/project/ucarp"
WGET_URL="http://download.pureftpd.org/pub/$PACKAGE/$TARBALL"
TAGS="High availability HA"

BUILD_DEPENDS="libpcap-dev"
DEPENDS="libpcap"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/\$(SHELL) @install_sh@/@install_sh@/' po/Makefile.in*
	./configure --prefix=/usr --mandir=/usr/share/man \
		--localstatedir=/var \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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