summaryrefslogtreecommitdiff
blob: f82f2287dbbe2820e296700257249f24b16e1374 (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/vbox3/vbox3-0.1.9.ebuild,v 1.5 2007/04/15 11:29:58 mrness Exp $

inherit eutils libtool

DESCRIPTION="ISDN voice response system"
SRC_URI="http://smarden.org/pape/${PN}/${PN}_${PV}.tar.gz"
HOMEPAGE="http://smarden.org/pape/${PN}/"

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

DEPEND="sys-libs/ncurses
	dev-lang/tcl"
RDEPEND="${DEPEND}
	net-dialup/isdn4k-utils"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/makefile-${PV}.patch"
	epatch "${FILESDIR}/${P}-implicit-decl.patch"
	elibtoolize
}

src_install() {
	keepdir /var/log/vbox
	einstall || die "make install failed"
	dosym vboxgetty /usr/sbin/vboxputty

	dodoc AUTHORS CHANGES README doc/INSTALL
	dohtml doc/*.html
	doman debian/*.8

	# install logrotate configs
	insinto /etc/logrotate.d
	newins "${FILESDIR}/vbox3.logrotate" vbox3
}