summaryrefslogtreecommitdiff
blob: af1a479a1449b6f897193e6cafd9c3db6e5c7593 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-0.2.3.ebuild,v 1.5 2004/06/24 22:23:10 agriffis Exp $

DESCRIPTION="Qingy is a DirectFB getty replacement."
HOMEPAGE="http://qingy.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="pam"
DEPEND=">=dev-libs/DirectFB-0.9.18
	pam? ( >=sys-libs/pam-0.75-r11 )
	>=dev-util/pkgconfig-0.12.0"
S=${WORKDIR}/${P}

src_compile()
{
	econf || die

	emake || die
}

src_install()
{
	# create some dirs
	mkdir -m 755 ${D}etc
	use pam && mkdir -m 755 ${D}etc/pam.d
	mkdir -m 755 ${D}sbin

	# copy documentation manually as make install doesn't do that
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README HOWTO_THEMES

	# and finally install the program
	make prefix=${D} install || die
}

pkg_postinst ()
{
	einfo "In order to use qingy you must first edit your /etc/inittab"
	einfo "Check files INSTALL and README in /usr/share/doc/${P}"
	einfo "for instructions on how to do that."
}