All pastes #740139 Raw Edit

iwar-0.071.ebuild

public text v1 · immutable
·published 2007-10-17 18:48 UTC
rendered paste body
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools 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 "${FILESDIR}"/${PN}-total-fix.patch
                epatch "${FILESDIR}"/${PN}-path-fix.patch
#               epatch "${FILESDIR}"/${PN}-configure-in.patch
                epatch "${FILESDIR}"/${PN}-conf.patch
                epatch "${FILESDIR}"/${PN}-destdir-fix.patch
}

src_compile() {
        econf $(use_enable mysql) $(use_enable iax2) || die
                "econf failed"

                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
#               insinto /etc/iwar
#               doins banners.txt iwar-blacklist.txt iwar.conf
}

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