Version bump, add baselayout-2 compatibility
authorStefan Schweizer <genstef@gentoo.org>
Tue, 17 Apr 2007 16:36:06 +0000 (16:36 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Tue, 17 Apr 2007 16:36:06 +0000 (16:36 +0000)
Package-Manager: portage-2.1.2.3

sys-apps/915resolution/915resolution-0.5.3.ebuild [new file with mode: 0644]
sys-apps/915resolution/ChangeLog
sys-apps/915resolution/Manifest
sys-apps/915resolution/files/digest-915resolution-0.5.3 [new file with mode: 0644]
sys-apps/915resolution/files/initd

diff --git a/sys-apps/915resolution/915resolution-0.5.3.ebuild b/sys-apps/915resolution/915resolution-0.5.3.ebuild
new file mode 100644 (file)
index 0000000..62bf392
--- /dev/null
@@ -0,0 +1,39 @@
+# 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.3.ebuild,v 1.1 2007/04/17 16:36:06 genstef Exp $
+
+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_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.txt 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
+}
index bb94bcb74d73677369fde379a04647f95459cf13..f2b27d9a7e19f153cc01dcebaf5641c203023dde 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-apps/915resolution
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/ChangeLog,v 1.7 2007/01/07 21:32:41 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/ChangeLog,v 1.8 2007/04/17 16:36:06 genstef Exp $
+
+*915resolution-0.5.3 (17 Apr 2007)
+
+  17 Apr 2007; Stefan Schweizer <genstef@gentoo.org> files/initd,
+  +915resolution-0.5.3.ebuild:
+  Version bump, add baselayout-2 compatibility
 
 *915resolution-0.5.2-r1 (07 Jan 2007)
 
index e346a9b8eed77be16dc003f276797e161b056a9e..93ac8038d9a81acc8998f1af87c21e1ebc0ffa97 100644 (file)
@@ -1,6 +1,3 @@
------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
@@ -9,11 +6,12 @@ AUX confd 643 RMD160 08e5975acb3436d1180a1aee255a2fff5ffbdfb1 SHA1 7f4c2554c289a
 MD5 012d4342494096aaa27b3ffb48f22a39 files/confd 643
 RMD160 08e5975acb3436d1180a1aee255a2fff5ffbdfb1 files/confd 643
 SHA256 947f7eedc618bccd58dad95b4aa0ff8b80fb1fa161c8bd7abb3ffc55c5ac27c5 files/confd 643
-AUX initd 699 RMD160 842fbd97c0e94eb03a9fe3b1d6b37609427e300a SHA1 371488342193ed7d4ea8acb42e51c311ed18ff0d SHA256 ca7665a882bc6913da137efa681b8a14ac5c691e4e960aa35bf9dbf289f76131
-MD5 4b94e1ba80f6b8c81b1c9816978a5138 files/initd 699
-RMD160 842fbd97c0e94eb03a9fe3b1d6b37609427e300a files/initd 699
-SHA256 ca7665a882bc6913da137efa681b8a14ac5c691e4e960aa35bf9dbf289f76131 files/initd 699
+AUX initd 960 RMD160 d8ea8b2e94d33a65f9cdf39cf3b439d17039c310 SHA1 f41fd2056d12f55ed864b0a4770fc61f445ac4d3 SHA256 54833d3dfb7cf8f5342fbd8cb0c288d7a6c5ace577524f398e23bb5d392ecc62
+MD5 4f8a3dc2fafb2fe93965dbf2659c141a files/initd 960
+RMD160 d8ea8b2e94d33a65f9cdf39cf3b439d17039c310 files/initd 960
+SHA256 54833d3dfb7cf8f5342fbd8cb0c288d7a6c5ace577524f398e23bb5d392ecc62 files/initd 960
 DIST 915resolution-0.5.2.tar.gz 21183 RMD160 722b352a83f41f0e9822ed4e096e8064f239dcc1 SHA1 9f26eb1b728ca0b2d28c948207b034a49b477089 SHA256 98827dd5adb5ffb5e415b2b28364033ffc173796555051ef52983ec5df77b6d4
+DIST 915resolution-0.5.3.tar.gz 22583 RMD160 a406c6810bbfcf94c5352ea1b1e9178af4078589 SHA1 377a32d33f1987adf372341c8c6664d5673da9b8 SHA256 b64cab834b5e410bca555dc9db8e69f62f6f02496942f35ff4a68f3f27f1b542
 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
@@ -22,10 +20,14 @@ EBUILD 915resolution-0.5.2.ebuild 1173 RMD160 27461097bf217872fa76685f77a75744e1
 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 963 RMD160 0192d51f3f5d16bff1731b4be41111d07796c8e3 SHA1 52bdd914a764c928a2f7f2bdde1c7682db11e886 SHA256 4292d5d69ccee6869bb74af833d3e63b85744ae51303bd21817182fd49c22d8a
-MD5 30282425b060d322462628b01063f8f6 ChangeLog 963
-RMD160 0192d51f3f5d16bff1731b4be41111d07796c8e3 ChangeLog 963
-SHA256 4292d5d69ccee6869bb74af833d3e63b85744ae51303bd21817182fd49c22d8a ChangeLog 963
+EBUILD 915resolution-0.5.3.ebuild 1176 RMD160 92d51ce08889baf5c243d2ac90bf18d1d22fa675 SHA1 0391ae39bb0a496dbcf5887be4b3ca90006b51e3 SHA256 0d6a4d04289bdac1c5e231fdf4037493053dc1e3deea9bdd6a22bb19b825b245
+MD5 38a9684e9d57dde07e9fea6272a9bc90 915resolution-0.5.3.ebuild 1176
+RMD160 92d51ce08889baf5c243d2ac90bf18d1d22fa675 915resolution-0.5.3.ebuild 1176
+SHA256 0d6a4d04289bdac1c5e231fdf4037493053dc1e3deea9bdd6a22bb19b825b245 915resolution-0.5.3.ebuild 1176
+MISC ChangeLog 1147 RMD160 9b519d964ff3dd29733cf80632fd130dce560a23 SHA1 8f8927e2f7baecf062f8056246b15e8888937365 SHA256 611716699d8f726a006a7b9a145206126679f1d50082308492eb3c2cdd37e481
+MD5 339fcb116d63571b58ace8a29e3364e1 ChangeLog 1147
+RMD160 9b519d964ff3dd29733cf80632fd130dce560a23 ChangeLog 1147
+SHA256 611716699d8f726a006a7b9a145206126679f1d50082308492eb3c2cdd37e481 ChangeLog 1147
 MISC metadata.xml 881 RMD160 ee2512f9c6e548f7207d1580bfdd49fff63c18c9 SHA1 dfedf75eb54306e1239afcc755bbe13caecbc73f SHA256 c47c6272a492e2c33a31f7d34660c7ee81b2d45ddcb62a50f8e7eb295962d769
 MD5 be1d758355885a0958ec4db89a454bea metadata.xml 881
 RMD160 ee2512f9c6e548f7207d1580bfdd49fff63c18c9 metadata.xml 881
@@ -36,10 +38,6 @@ SHA256 a9b1e1c8d39680132cb47bfb19be139315dccd0a537fb97cc3a03eae79bc1499 files/di
 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
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.1 (GNU/Linux)
-
-iD8DBQFFoWblV3J2n04EauwRAh1KAJ9iE+KPYAqpO25puLq7sG1VOpUnPwCgq2+g
-U2kUL4KKkgjS437gzWLRH3g=
-=dh1d
------END PGP SIGNATURE-----
+MD5 e384f115c3773085943ac8408d14e5d2 files/digest-915resolution-0.5.3 256
+RMD160 699b6640c9d4cc1a932c60f46627aac294aa5f2e files/digest-915resolution-0.5.3 256
+SHA256 977bd888b239c8b0ce49a141d97478a6ce96e55bdc62b6c6630194b5b61df117 files/digest-915resolution-0.5.3 256
diff --git a/sys-apps/915resolution/files/digest-915resolution-0.5.3 b/sys-apps/915resolution/files/digest-915resolution-0.5.3
new file mode 100644 (file)
index 0000000..db57602
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 ed287778a53d02c31a7a6a52bc146291 915resolution-0.5.3.tar.gz 22583
+RMD160 a406c6810bbfcf94c5352ea1b1e9178af4078589 915resolution-0.5.3.tar.gz 22583
+SHA256 b64cab834b5e410bca555dc9db8e69f62f6f02496942f35ff4a68f3f27f1b542 915resolution-0.5.3.tar.gz 22583
index 1ad70cb09b70fa439e6248cfb41c656de16a0a40..b4825418d550d418b88d163cda0826506030ce28 100644 (file)
@@ -1,32 +1,47 @@
 #!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/files/initd,v 1.1 2006/07/22 17:29:44 chutzpah Exp $
 
 depend() {
-       before xdm
+    before xdm
+}
+
+# Credit to David Leverton for this function which handily maps a bash array
+# structure to positional parameters so existing configs work :)
+# We'll deprecate arrays at some point though.
+_get_array() {
+    if [ -n "${BASH}" ] ; then
+               case "$(declare -p "$1" 2>/dev/null)" in
+               "declare -a "*)
+               echo "set -- \"\${$1[@]}\""
+               return
+               ;;
+               esac
+    fi
+
+    echo "eval set -- \"\$$1\""
 }
 
 checkconfig() {
-       if [[ -z "${replace[*]}" ]]; then
-               eerror "You need to have at least one resolution to replace"
-               eerror "/etc/conf.d/915resolution"
-               return 1
-       fi
+    if [[ -z "${replace[*]}" ]]; then
+        eerror "You need to have at least one resolution to replace"
+        eerror "/etc/conf.d/915resolution"
+        return 1
+    fi
 
-       [[ "${log}" && -f "${log}" ]] && echo > "${log}"
+    [[ "${log}" && -f "${log}" ]] && echo > "${log}"
 
-       return 0
+    return 0
 }
 
 start() {
-       checkconfig || return 1
+    checkconfig || return 1
 
-       ebegin "Patching video BIOS with new video modes."
+    ebegin "Patching video BIOS with new video modes."
 
-       for mode in "${replace[@]}"; do
-               915resolution ${mode} >> ${log:-/dev/null} || retval=$?
-       done
+    eval $(_get_array replace)
+    for mode in "$@"; do
+        915resolution ${mode} >> ${log:-/dev/null}; retval=$?
+    done
 
-       eend ${retval}
+    eend ${retval}
 }
+