summaryrefslogtreecommitdiff
blob: 9e223ddc4256ebabc52d00bb5c6273b09321091f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/qtools/qtools-0.56.ebuild,v 1.1 2003/04/05 23:29:37 robbat2 Exp $

inherit eutils

DESCRIPTION="Several utilities for use with qmail, typically as part of .qmail command processing"

HOMEPAGE="http://www.superscript.com/qtools/intro.html"

SRC_URI="http://www.superscript.com/qtools/${P}.tar.gz"

LICENSE="as-is"

SLOT="0"

KEYWORDS="~x86"

DEPEND=""

S=${WORKDIR}/${P}

src_unpack() {
    unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-errno.patch
}

src_compile() {
    LDFLAGS=
    use static && LDFLAGS="-static"
    echo "gcc ${CFLAGS}" > conf-cc
    echo "gcc ${LDFLAGS}" > conf-ld
    echo "/usr" > conf-home
    emake || die "emake failed"
}

src_install() {
	into /usr
	dobin 822addr 822body 822bodyfilter 822fields 822headerfilter \
		  822headerok 822headers checkaddr checkdomain \
		  condtomaildir filterto ifaddr iftoccfrom replier \
		  replier-config tomaildir
	
	dodoc BAPVERSION CHANGES FILES README SYSDEPS TARGETS TODO VERSION
}