diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2007-01-07 02:12:30 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2007-01-07 02:12:30 +0000 |
commit | ae3dc141b281fe9ea6634a2dce3daf8c2454a774 (patch) | |
tree | 1ebb8e28453fce437df7e7892bb1007098fbabb2 /sys-apps | |
parent | uses elog, whitespace fix (diff) | |
download | gentoo-2-ae3dc141b281fe9ea6634a2dce3daf8c2454a774.tar.gz gentoo-2-ae3dc141b281fe9ea6634a2dce3daf8c2454a774.tar.bz2 gentoo-2-ae3dc141b281fe9ea6634a2dce3daf8c2454a774.zip |
New revision, add support for 830 chipsets, bug #157403.
(Portage version: 2.1.2_rc4-r6)
Diffstat (limited to 'sys-apps')
5 files changed, 124 insertions, 4 deletions
diff --git a/sys-apps/915resolution/915resolution-0.5.2-r1.ebuild b/sys-apps/915resolution/915resolution-0.5.2-r1.ebuild new file mode 100644 index 000000000000..872d384f1339 --- /dev/null +++ b/sys-apps/915resolution/915resolution-0.5.2-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/915resolution-0.5.2-r1.ebuild,v 1.1 2007/01/07 02:12:30 chutzpah Exp $ + +inherit eutils + +DESCRIPTION="Utility to patch VBIOS of Intel 855 / 865 / 915 chipsets" +HOMEPAGE="http://www.geocities.com/stomljen/" +SRC_URI="http://www.geocities.com/stomljen/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-830.patch +} + +src_compile() { + emake clean + emake CFLAGS="${CFLAGS}" || die "Compiliation failed." +} + +src_install() { + dosbin ${PN} + newconfd "${FILESDIR}/confd" ${PN} + newinitd "${FILESDIR}/initd" ${PN} + dodoc README.txt changes.log chipset_info dump_bios +} + +pkg_postinst() { + elog + elog "${PN} alters your video BIOS in a non-permanent way, this means" + elog "that there is no risk of permanent damage to your video card, but" + elog "it also means that it must be run at every boot. To set it up, " + elog "edit /etc/conf.d/${PN} to add your configuration and type the" + elog "following command to add it the your defautl runlevel:" + elog + elog " \"rc-update add ${PN} default\"" + elog +} diff --git a/sys-apps/915resolution/915resolution-0.5.2.ebuild b/sys-apps/915resolution/915resolution-0.5.2.ebuild index 6d423879d4fd..fcfd4c49a1be 100644 --- a/sys-apps/915resolution/915resolution-0.5.2.ebuild +++ b/sys-apps/915resolution/915resolution-0.5.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/915resolution-0.5.2.ebuild,v 1.3 2006/12/27 17:45:38 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/915resolution-0.5.2.ebuild,v 1.4 2007/01/07 02:12:30 chutzpah Exp $ DESCRIPTION="Utility to patch VBIOS of Intel 855 / 865 / 915 chipsets" HOMEPAGE="http://www.geocities.com/stomljen/" diff --git a/sys-apps/915resolution/ChangeLog b/sys-apps/915resolution/ChangeLog index e9a51602ce03..1483319894c9 100644 --- a/sys-apps/915resolution/ChangeLog +++ b/sys-apps/915resolution/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/915resolution -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/ChangeLog,v 1.4 2006/12/27 17:45:38 peper Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/ChangeLog,v 1.5 2007/01/07 02:12:30 chutzpah Exp $ + +*915resolution-0.5.2-r1 (07 Jan 2007) + + 07 Jan 2007; Patrick McLean <chutzpah@gentoo.org> + +files/915resolution-0.5.2-830.patch, +915resolution-0.5.2-r1.ebuild: + New revision, add support for 830 chipsets, bug #157403. 27 Dec 2006; Piotr Jaroszyński <peper@gentoo.org> 915resolution-0.5.2.ebuild: diff --git a/sys-apps/915resolution/files/915resolution-0.5.2-830.patch b/sys-apps/915resolution/files/915resolution-0.5.2-830.patch new file mode 100644 index 000000000000..fb1f84d5d34b --- /dev/null +++ b/sys-apps/915resolution/files/915resolution-0.5.2-830.patch @@ -0,0 +1,63 @@ +diff -u 915resolution-0.5.2/915resolution.c 915resolution-0.5.2-830/915resolution.c +--- 915resolution-0.5.2/915resolution.c 2006-02-02 15:28:34.000000000 +0100 ++++ 915resolution-0.5.2-830/915resolution.c 2006-12-07 07:30:44.000000000 +0100 +@@ -55,10 +55,10 @@ + typedef unsigned int cardinal; + + typedef enum { +- CT_UNKWN, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM ++ CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM + } chipset_type; + +-char * chipset_type_names[] = {"UNKNOWN", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM"}; ++char * chipset_type_names[] = {"UNKNOWN", "830M/MG", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM"}; + + typedef enum { + BT_UNKWN, BT_1, BT_2, BT_3 +@@ -177,6 +177,10 @@ + chipset_type type; + + switch (id) { ++ case 0x35758086: ++ type = CT_830; ++ break; ++ + case 0x25608086: + type = CT_845G; + break; +@@ -475,6 +479,7 @@ + switch (map->chipset) { + case CT_UNKWN: + break; ++ case CT_830: + case CT_855GM: + outl(0x8000005a, 0xcf8); + map->b1 = inb(0xcfe); +@@ -525,6 +530,7 @@ + switch (map->chipset) { + case CT_UNKWN: + break; ++ case CT_830: + case CT_855GM: + outl(0x8000005a, 0xcf8); + outb(map->b1, 0xcfe); +@@ -773,6 +779,9 @@ + else if (!strcmp(argv[index], "945GM")) { + *forced_chipset = CT_945GM; + } ++ else if (!strncmp(argv[index], "830", 3)) { ++ *forced_chipset = CT_830; ++ } + else { + *forced_chipset = CT_UNKWN; + } +diff -u 915resolution-0.5.2/chipset_info.txt 915resolution-0.5.2-830/chipset_info.txt +--- 915resolution-0.5.2/chipset_info.txt 2006-02-02 15:01:38.000000000 +0100 ++++ 915resolution-0.5.2-830/chipset_info.txt 2006-12-07 07:30:57.000000000 +0100 +@@ -1,5 +1,6 @@ + CHIPSET ID PAM + ====================================================== ++830M, 830MG $3575_8086 $5A - $5B + 845G, 845GL, 845GV $2560_8086 $91 - $92 + 865G, 865GV $2570_8086 $91 - $92 + 855GM, 855GME, 852GM, 852GMV $3580_8086 $5A - $5b diff --git a/sys-apps/915resolution/files/digest-915resolution-0.5.2-r1 b/sys-apps/915resolution/files/digest-915resolution-0.5.2-r1 new file mode 100644 index 000000000000..a8810e39eff6 --- /dev/null +++ b/sys-apps/915resolution/files/digest-915resolution-0.5.2-r1 @@ -0,0 +1,3 @@ +MD5 a3441e5662c5ff1e00dc97de4487e8f8 915resolution-0.5.2.tar.gz 21183 +RMD160 722b352a83f41f0e9822ed4e096e8064f239dcc1 915resolution-0.5.2.tar.gz 21183 +SHA256 98827dd5adb5ffb5e415b2b28364033ffc173796555051ef52983ec5df77b6d4 915resolution-0.5.2.tar.gz 21183 |