# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/queue-fix/queue-fix-1.4-r2.ebuild,v 1.12 2005/05/30 19:05:18 swegener Exp $ inherit eutils toolchain-funcs DESCRIPTION="Qmail Queue Repair Application with support for big-todo" HOMEPAGE="http://www.netmeridian.com/e-huss/" SRC_URI="http://www.netmeridian.com/e-huss/${P}.tar.gz mirror://qmail/queue-fix-todo.patch" LICENSE="as-is" SLOT="0" KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64" IUSE="" DEPEND="sys-devel/gcc-config" RDEPEND=" || ( mail-mta/qmail mail-mta/qmail-mysql mail-mta/qmail-ldap )" src_unpack() { unpack ${P}.tar.gz epatch ${DISTDIR}/queue-fix-todo.patch sed -i 's/^extern int errno;/#include /' ${S}/error.h sed -i 's/head -1/head -n1/' ${S}/Makefile } src_compile() { echo "$(tc-getCC) ${CFLAGS}" > conf-cc echo "$(tc-getCC) ${LDFLAGS}" > conf-ld emake || die } src_install () { into /var/qmail dobin queue-fix || die into /usr dodoc README CHANGES }