summaryrefslogtreecommitdiff
blob: 0d2e3d100644bb57cf2ce6bc2d682ac71682ab40 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Program for changing the resolution of an unavailable VBIOS mode on Intel 915 cards"
HOMEPAGE="http://www.geocities.com/stomljen/"
SRC_URI="http://www.geocities.com/stomljen/${PN}-${PV}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RESTRICT="nomirror"
S=${WORKDIR}/${PN}-${PV}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	install -m755 -D 915resolution ${D}/usr/sbin/915resolution \
	|| die "install failed"
	dodoc README.txt
	
	insinto /etc/conf.d
	newins "${FILESDIR}/${PATCHLEVEL}/conf.d" 915resolution

	exeinto /etc/init.d
	newexe "${FILESDIR}/${PATCHLEVEL}/init.d" 915resolution
}

pkg_postinst() {
	einfo ""
	einfo "Edit your the config file in /etc/conf.d as you need"
	einfo "and add 915resolution to the default runlevel."
	einfo ""
}