summaryrefslogtreecommitdiff
blob: 381b871c366a898fb1d90cfc0892ba45b817507f (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/mingetty/mingetty-1.00.3.ebuild,v 1.5 2003/07/18 21:03:47 tester Exp $

RHP=${PN}-1.00
S=${WORKDIR}/${RHP}
MYP=${PN}-1.00-3
DESCRIPTION="A compact getty program for virtual consoles only."
SRC_URI="http://distro.ibiblio.org/pub/Linux/distributions/redhat/8.0/en/os/i386/SRPMS/${MYP}.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/8.0/en/os/i386/SRPMS/${MYP}.src.rpm"

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

DEPEND="app-arch/rpm2targz"
RDEPEND="virtual/glibc"

src_unpack() {
	cd ${WORKDIR}
	rpm2targz ${DISTDIR}/${MYP}.src.rpm || die
	tar zxf ${WORKDIR}/${MYP}.src.tar.gz || die
	tar zxf ${WORKDIR}/${RHP}.tar.gz || die
	patch -p0 < ${FILESDIR}/mingetty-1.00-autologin.patch || die
}

src_compile() {
	emake RPM_OPTS="${CFLAGS}" || die
}

src_install () {
	into /
	dosbin mingetty
	doman mingetty.8
}