summaryrefslogtreecommitdiff
blob: 03d5dc3fa9634a9235583a761d7862c0f7dc091d (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
44
45
46
47
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gpe-base/gpe-login/gpe-login-0.95.ebuild,v 1.1 2009/03/15 21:00:44 miknix Exp $

GPE_TARBALL_SUFFIX="bz2"
inherit gpe

DESCRIPTION="The GPE user login screen"

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

RDEPEND=">=gpe-base/libgpewidget-0.102 gpe-utils/gpe-ownerinfo x11-libs/gtk+ x11-misc/xkbd"
DEPEND=""

src_unpack() {
	gpe_src_unpack "$@"

	# Use our gentooish gpe-login.setup instead
	cp "${FILESDIR}/gpe-login.setup-gentoo" gpe-login.setup \
		|| die "Cannot replace gpe-login.setup"
	chmod 0755 gpe-login.setup \
		|| die "Cannot chmod gpe-login.setup"
	# This file is device specific, dont install it
	sed -i -e 's;gpe-login.keylaunchrc;;' Makefile.in \
		|| die "Sed failed"
}

src_install() {
	gpe_src_install "$@"

	insinto /etc/X11/
	newins "${FILESDIR}/gpe-login.geometry-gentoo" gpe-login.geometry
	insinto /etc/gpe/
	newins "${FILESDIR}/locale.default-gentoo" locale.default
}

pkg_postinst() {
	einfo "Have a look on the following files to fine tune"
	einfo "your brand new login manager:"
	einfo "/etc/X11/gpe-login.setup"
	einfo "/etc/X11/gpe-login.geometry"
	einfo "/etc/gpe/gpe-login.conf"
	einfo "/etc/gpe/locale.default"
}