summaryrefslogtreecommitdiff
blob: 98056b1a0e5cc80f4fbcd9f3a0a8e51b75d69bae (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/vmailmgr-tools/vmailmgr-tools-0.2.ebuild,v 1.1 2005/12/26 11:39:28 mrness Exp $

inherit toolchain-funcs eutils fixheadtails

DESCRIPTION="Add-on tools for use with vmailmgr"
HOMEPAGE="http://untroubled.org/vmailmgr-tools/"
SRC_URI="http://untroubled.org/vmailmgr-tools/archive/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="virtual/libc"
RDEPEND="${DEPEND}
	net-mail/vmailmgr"

src_unpack() {
	unpack ${A}

	epatch ${FILESDIR}/${P}-gcc34.patch
	ht_fix_file "${S}/Makefile"
}

src_compile() {
	echo "${D}/usr/bin" > conf-bin
	echo "$(tc-getCC) ${CFLAGS}" > conf-cc
	echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
	make || die "make failed"
}

src_install() {
	dodir /usr/bin
	./installer || die "install failed"

	doman *.1
	dodoc ANNOUNCEMENT NEWS README VERSION
}