summaryrefslogtreecommitdiff
blob: 72affaa76f552b22b61fecf1001363af06356aeb (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pconsole/pconsole-1.0-r2.ebuild,v 1.1 2006/09/25 08:03:42 dberkholz Exp $

inherit autotools eutils

DESCRIPTION="Tool for managing multiple xterms simultaneously."
HOMEPAGE="http://www.heiho.net/pconsole/"
SRC_URI="http://www.xs4all.nl/~walterj/pconsole/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="virtual/ssh"

src_compile() {
	epatch ${FILESDIR}/${P}-exit-warn.patch || einfo "Never mind.."
	sed -i \
		-e "s:\(CCOPTS=\).*:\1'${CFLAGS}':g" \
		"${S}"/configure.in
	eautoreconf
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	einstall bindir="${D}/usr/bin" || die "install failed"
	fperms 4111 /usr/bin/pconsole
	dodoc ChangeLog public_html/pconsole.html README.pconsole
}

pkg_postinst() {
	ewarn
	ewarn "Warning:"
	ewarn "pconsole installed with suid root!"
	ewarn
}