summaryrefslogtreecommitdiff
blob: 6dabc1c292f100b7cb4c0fd413b6ae4a2222d9e0 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Intelligent Wardialer Program"
HOMEPAGE="http://www.softwink.com/iwar"
SRC_URI="http://softwink.com/iwar/download/${P}.tar.gz"

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

DEPEND="sys-libs/ncurses
	mysql? ( dev-db/mysql )"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	EPATCH_SOURCE="${FILESDIR}"
	EPATCH_SUFFIX="patch"
	EPATCH_FORCE="yes" epatch
}

src_compile() {
	econf $(use_enable mysql) \
		$(use_enable iax2)

	emake || die "emake failed"
}

src_install() {
	dodir /etc/iwar
		emake DESTDIR="${D}" install || die "Install failed"
		dodoc AUTHORS ChangeLog FAQ MODEMS-TESTED README README.IAX2 THANKS TODO
		doman "${FILESDIR}"/${PN}.1
}

pkg_postinst() {
	elog "Users must be in group uucp in order to be able to use iwar."
}