# SliTaz package receipt.

PACKAGE="masqmail"
VERSION="0.2.28"
CATEGORY="network"
SHORT_DESC="An MTA for workstations and for servers in small networks."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://marmaro.de/prog/masqmail"
WGET_URL="$WEB_SITE/files/$TARBALL"
BUILD_DEPENDS="pkg-config glib glib-dev"
TAGS="mail"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--with-user=root --with-group=root \
	--mandir=/usr/share/man \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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