# SliTaz package receipt.

PACKAGE="procmail"
VERSION="3.22"
CATEGORY="network"
SHORT_DESC="mail processing and SmartList mailing list suites."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.procmail.org/"
WGET_URL="${WEB_SITE}$TARBALL"
CONFIG_FILES="/etc/procmail*"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	find -name '*.c' | xargs sed -i 's/getline/get_line/' src/formisc.h
	sed -i 's/exec <_autotst.rrr/cat _autotst.rrr |/' initmake
	yes '' | make VISIBLE_BINDIR=$PWD/_pkg/usr/bin
	make BINDIR=$PWD/_pkg/usr/bin install.bin
}

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