From 2beebd1d3252a4a93b02af14aa5826abc62a6a90 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Sun, 7 Jan 2007 02:12:30 +0000 Subject: [PATCH] New revision, add support for 830 chipsets, bug #157403. Package-Manager: portage-2.1.2_rc4-r6 --- .../915resolution-0.5.2-r1.ebuild | 48 ++++++++++++++ .../915resolution/915resolution-0.5.2.ebuild | 4 +- sys-apps/915resolution/ChangeLog | 10 ++- sys-apps/915resolution/Manifest | 37 +++++------ .../files/915resolution-0.5.2-830.patch | 63 +++++++++++++++++++ .../files/digest-915resolution-0.5.2-r1 | 3 + 6 files changed, 143 insertions(+), 22 deletions(-) create mode 100644 sys-apps/915resolution/915resolution-0.5.2-r1.ebuild create mode 100644 sys-apps/915resolution/files/915resolution-0.5.2-830.patch create mode 100644 sys-apps/915resolution/files/digest-915resolution-0.5.2-r1 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 + +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 915resolution-0.5.2.ebuild: diff --git a/sys-apps/915resolution/Manifest b/sys-apps/915resolution/Manifest index 7afb99b01047..acbf84bcc36a 100644 --- a/sys-apps/915resolution/Manifest +++ b/sys-apps/915resolution/Manifest @@ -1,6 +1,7 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX 915resolution-0.5.2-830.patch 2284 RMD160 9a7dfb7107c41b14544e3911de3bfeeefeb95c27 SHA1 36e71d3944ed0fd02c5c3b309a23df6c0fd53b12 SHA256 6441481adfee24b10c4c53f7a5b7792d47fa1992d30162db5ebcbb1b63a583af +MD5 54baa1f7bedd081849e500b34203b08c files/915resolution-0.5.2-830.patch 2284 +RMD160 9a7dfb7107c41b14544e3911de3bfeeefeb95c27 files/915resolution-0.5.2-830.patch 2284 +SHA256 6441481adfee24b10c4c53f7a5b7792d47fa1992d30162db5ebcbb1b63a583af files/915resolution-0.5.2-830.patch 2284 AUX confd 643 RMD160 08e5975acb3436d1180a1aee255a2fff5ffbdfb1 SHA1 7f4c2554c289a690359bf7fc3211e2a3ef062c9b SHA256 947f7eedc618bccd58dad95b4aa0ff8b80fb1fa161c8bd7abb3ffc55c5ac27c5 MD5 012d4342494096aaa27b3ffb48f22a39 files/confd 643 RMD160 08e5975acb3436d1180a1aee255a2fff5ffbdfb1 files/confd 643 @@ -10,14 +11,18 @@ MD5 4b94e1ba80f6b8c81b1c9816978a5138 files/initd 699 RMD160 842fbd97c0e94eb03a9fe3b1d6b37609427e300a files/initd 699 SHA256 ca7665a882bc6913da137efa681b8a14ac5c691e4e960aa35bf9dbf289f76131 files/initd 699 DIST 915resolution-0.5.2.tar.gz 21183 RMD160 722b352a83f41f0e9822ed4e096e8064f239dcc1 SHA1 9f26eb1b728ca0b2d28c948207b034a49b477089 SHA256 98827dd5adb5ffb5e415b2b28364033ffc173796555051ef52983ec5df77b6d4 -EBUILD 915resolution-0.5.2.ebuild 1170 RMD160 07548d31f8a0fd5f428f9a36c5c2492ba63c4564 SHA1 b9d75b505b08a54a257cbb115e88b65b1ee04abc SHA256 d7b5a17cf77009e43f50089741489936b3780ec962c4e338bf51945fae3005d2 -MD5 d6da6235338b87c480a4dc9732240217 915resolution-0.5.2.ebuild 1170 -RMD160 07548d31f8a0fd5f428f9a36c5c2492ba63c4564 915resolution-0.5.2.ebuild 1170 -SHA256 d7b5a17cf77009e43f50089741489936b3780ec962c4e338bf51945fae3005d2 915resolution-0.5.2.ebuild 1170 -MISC ChangeLog 680 RMD160 5f4be2252014eccd819009e2d2d05cbeb3d21870 SHA1 c23fc8c4262bb4105ae0441d35bfa359e6e390c4 SHA256 a6c9ebcbd2743bd8b809c30fcb798d15beda26eaf51f6662bfe4e896579bc012 -MD5 1098eaaba184881688a4fa015d186524 ChangeLog 680 -RMD160 5f4be2252014eccd819009e2d2d05cbeb3d21870 ChangeLog 680 -SHA256 a6c9ebcbd2743bd8b809c30fcb798d15beda26eaf51f6662bfe4e896579bc012 ChangeLog 680 +EBUILD 915resolution-0.5.2-r1.ebuild 1272 RMD160 1f958bbcdd35b1a106ef851a7445707a07a9ab6d SHA1 b1aa41378b877379770b822aee93e7df027e2618 SHA256 d2f33fb6384a0ad7eeb1f2519be6d2799abf076a2531be3bbdba36951f89893a +MD5 294cba60cb5e221a0c7b49d9c5d5b30d 915resolution-0.5.2-r1.ebuild 1272 +RMD160 1f958bbcdd35b1a106ef851a7445707a07a9ab6d 915resolution-0.5.2-r1.ebuild 1272 +SHA256 d2f33fb6384a0ad7eeb1f2519be6d2799abf076a2531be3bbdba36951f89893a 915resolution-0.5.2-r1.ebuild 1272 +EBUILD 915resolution-0.5.2.ebuild 1173 RMD160 27461097bf217872fa76685f77a75744e18bbf37 SHA1 f0b4f589ca7b777f7bde1a804bca547789c397a7 SHA256 bfd165cd789155d4e98511517ac3e1f6d1bf76bef87b1d7861b5dbb81ec47c77 +MD5 824bc54e9f70d905cdd2ddd26cdab125 915resolution-0.5.2.ebuild 1173 +RMD160 27461097bf217872fa76685f77a75744e18bbf37 915resolution-0.5.2.ebuild 1173 +SHA256 bfd165cd789155d4e98511517ac3e1f6d1bf76bef87b1d7861b5dbb81ec47c77 915resolution-0.5.2.ebuild 1173 +MISC ChangeLog 906 RMD160 cbbc1860d946c6865db4787815c9b776ef622d47 SHA1 58142dda0f9019b0c9b335bdaed3af55b3d06d75 SHA256 8172ca2c7d91216bc4d2c6f5ad52d2f4b44682bef314644cc260a203c4505aae +MD5 87e3414ee15ab859e93baa070def2df6 ChangeLog 906 +RMD160 cbbc1860d946c6865db4787815c9b776ef622d47 ChangeLog 906 +SHA256 8172ca2c7d91216bc4d2c6f5ad52d2f4b44682bef314644cc260a203c4505aae ChangeLog 906 MISC metadata.xml 881 RMD160 ee2512f9c6e548f7207d1580bfdd49fff63c18c9 SHA1 dfedf75eb54306e1239afcc755bbe13caecbc73f SHA256 c47c6272a492e2c33a31f7d34660c7ee81b2d45ddcb62a50f8e7eb295962d769 MD5 be1d758355885a0958ec4db89a454bea metadata.xml 881 RMD160 ee2512f9c6e548f7207d1580bfdd49fff63c18c9 metadata.xml 881 @@ -25,10 +30,6 @@ SHA256 c47c6272a492e2c33a31f7d34660c7ee81b2d45ddcb62a50f8e7eb295962d769 metadata MD5 4796a2ce0e9d7cc0f16a63fb5038e352 files/digest-915resolution-0.5.2 256 RMD160 0dc3039740106b490b01db11cc33adea5bdc37fb files/digest-915resolution-0.5.2 256 SHA256 a9b1e1c8d39680132cb47bfb19be139315dccd0a537fb97cc3a03eae79bc1499 files/digest-915resolution-0.5.2 256 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.1 (GNU/Linux) - -iD8DBQFFkrFKppoStNGKGywRAp8kAJ9sTAXy+zDRmjjMqudzSfOWo5lwogCgxyar -MqmqMjAcGZvCMwABR9jg990= -=Dc3Q ------END PGP SIGNATURE----- +MD5 4796a2ce0e9d7cc0f16a63fb5038e352 files/digest-915resolution-0.5.2-r1 256 +RMD160 0dc3039740106b490b01db11cc33adea5bdc37fb files/digest-915resolution-0.5.2-r1 256 +SHA256 a9b1e1c8d39680132cb47bfb19be139315dccd0a537fb97cc3a03eae79bc1499 files/digest-915resolution-0.5.2-r1 256 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 -- 2.26.2