summaryrefslogtreecommitdiff
path: root/sys-power/nvram-wakeup
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/nvram-wakeup')
-rw-r--r--sys-power/nvram-wakeup/Manifest8
-rw-r--r--sys-power/nvram-wakeup/files/nvram-wakeup-0.97-nonls.patch18
-rw-r--r--sys-power/nvram-wakeup/metadata.xml11
-rw-r--r--sys-power/nvram-wakeup/nvram-wakeup-1.0.ebuild69
-rw-r--r--sys-power/nvram-wakeup/nvram-wakeup-1.1.ebuild73
5 files changed, 179 insertions, 0 deletions
diff --git a/sys-power/nvram-wakeup/Manifest b/sys-power/nvram-wakeup/Manifest
new file mode 100644
index 000000000000..a5183c3d3115
--- /dev/null
+++ b/sys-power/nvram-wakeup/Manifest
@@ -0,0 +1,8 @@
+AUX nvram-wakeup-0.97-nonls.patch 450 SHA256 0ed4f1121e767360fe0efe91438bf4b1e68003ad281ca9f7aa62367eb2a17a1a SHA512 014c0d04d0b6a765a9ea1a42bdd11d5bc8f2d6c580f1a7d08c90b4622b6958a129add4c3be7c79e05e529e1dc38fffffe4c14d90a266fee252df71ac508121f1 WHIRLPOOL 1a9a5722a49fc20a54470ecb35e79b26b6421a555aabdde7ce0b804210326cfa5b62362b6c1063981799781839212ac324f1a12eda19a23c08d29d4502a9f14d
+DIST nvram-wakup-1.0.tar.gz 1068875 SHA256 831af412fdf8c75a31e470398a08da97266b2dd064daaf94e45833bd4428349b SHA512 f9f350323cfb65a33903edc5938c3503c60f4259acbc347d76aece65307d97e971e3350724e6d4a4870175db1baf1d3f1803b6536f0529371aae1f9fc6ee56c0 WHIRLPOOL 8b336e459ee6a1cdb58ed3a9bdf06084544f04eb3ff5b78184c3d57fc8a5d7dfbc57067a1e19342ad7402fd7dbeccb76d3020bd4b65fd49d9806a34f920cea93
+DIST nvram-wakup-1.1.tar.gz 1070097 SHA256 b5f6a86ec7ad1c25d22f7dd0bf3261c2766e6302f0f6f80a963ceb3eb3b74811 SHA512 a47c6831e004e25f43adbc25aa46aca457602c681693621e3acda12f1f775aa1c5fa30ec9a09d71945ef2de8a2dbe97f9c1c7e09b1ae3464c368c9b8fc0f11e0 WHIRLPOOL 468f3be815aa3e4cee60f66f5cc48aebfb3aa1343fc7ee7ab899fd72c12b9fb2595dbb7ed04bf65734d9d363e766b26bf19e307049424b997fbd2ca36bb72801
+EBUILD nvram-wakeup-1.0.ebuild 2045 SHA256 6ff7e0c5a33939edcc58d11f83d7fc0f25d456900ee6001e9cb6bae3a5a339f2 SHA512 475d0c60da5e481a918d0f444a519bccdb1912269734cf952ced1cfd3313fdb7c20d620cd5011af1aecf93096ccabdf782bd9042af552e1ca22a84f75f743b5a WHIRLPOOL 445e02e9accada63016e6af1fd3a693172439fdb376911e886fb2ee46c7860a2ffe7c15c8d2764cc5c3591e162dc3e806939264fe6024183376afc1ffb22c0a9
+EBUILD nvram-wakeup-1.1.ebuild 2169 SHA256 412266e515f9cebce7a80e90b483e41a5eded7260f2cac218d20a84c35b5dfd0 SHA512 52490df6c07880eb444f2100a10a05572838de030243322cfec3b78b7e15ee89a439df8de1cfdbb510afc3b0c59881d877ae1986b36743b37c00dac4ca605c74 WHIRLPOOL 7d40258543d15c4eb8935588569bcd88baec17463e0dd0a1c3a39b436dc8dc4ea85e005848aca3eab153db7cabe929e8d34e554dfda4d1145a90f0ff4d48eb0a
+MISC ChangeLog 3178 SHA256 abb9d3646a1b0d65a3571129cb1e1f665002b247b0aae9f452fb74794ba6c9d5 SHA512 447001003ec582701090585c77111042e5e86b7c3e16a7d1a81861dd18797eb25ba95e6466741b1a1ef9f05eda8f7a5d8394d40c7c2f8b63d067dc58539225b0 WHIRLPOOL e10d7f816e4ea2c492b0f6d9a00f0597e07cb968cc76330af5bd656ca2e922ccd52e4dd6967ab5a4582e21910edc9b20138ed0a128705979cc32f0375a077428
+MISC ChangeLog-2015 2601 SHA256 2e3a9f15890d06636664128f63e82e8362a65c9c9ca3f444596ef8e733298896 SHA512 bc4a01dbedc9d043f172fa5df734a6ff433abc95b074ed2ca5d5c47fa03e40592fb6ce1e249d4cefe83d0492125914a4c2360cb7d79a23f386430b61bb488c58 WHIRLPOOL ee59bb38e8c8705af8603cc4f3eec5c4604403ba325aa7c84abcdfb9d971b56f2bf808d3a04f4baa8765a2009592e2d9ae6f692ed4a37c2a27ece5b5aaf3aaaa
+MISC metadata.xml 332 SHA256 355dceaf4f6713b4ba803f8bdd348ad077ce2b6178cee7af0a558950d9e78348 SHA512 948648cf4b193094ffe04b679d159ea2acf4a42d5005792889b782d56fc96cccdd87ba2b92ed5eade664a379107a1ee3a2a197c6dd69b531c395ebdf38229ebb WHIRLPOOL 652ae11b8c43da2bac9d3df288c7338943d7f13c06cb63bf7580fb6582455b36d94054cfe119274c5cc5e205b4bf52a92b21a3665e735892ad57d2f3047f65ea
diff --git a/sys-power/nvram-wakeup/files/nvram-wakeup-0.97-nonls.patch b/sys-power/nvram-wakeup/files/nvram-wakeup-0.97-nonls.patch
new file mode 100644
index 000000000000..108d02eddd29
--- /dev/null
+++ b/sys-power/nvram-wakeup/files/nvram-wakeup-0.97-nonls.patch
@@ -0,0 +1,18 @@
+--- nvram-wakeup-0.97/Makefile
++++ nvram-wakeup-0.97/Makefile
+@@ -41,3 +41,3 @@
+
+-all: $(BINS) $(GTTXT)
++all: $(BINS)
+ size $(BINS)
+@@ -88,3 +88,2 @@
+ @$(INSTALL) -vd $(DOCDIR)
+- @$(INSTALL) -vd $(GTTXTDIR)
+ @$(INSTALL) -vm 755 $(PROG_SH) $(BINDIR)
+@@ -94,3 +93,2 @@
+ @$(INSTALL) -vm 644 $(DOC) $(DOCDIR)
+- @$(INSTALL) -vm 755 $(GTTXT) $(GTTXTDIR)
+
+@@ -110,2 +108 @@
+ cd $(DOCDIR); rm -f $(DOC)
+- cd $(GTTXTDIR); rm -f $(GTTXT)
diff --git a/sys-power/nvram-wakeup/metadata.xml b/sys-power/nvram-wakeup/metadata.xml
new file mode 100644
index 000000000000..0b3a391b3d5d
--- /dev/null
+++ b/sys-power/nvram-wakeup/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+<upstream>
+ <remote-id type="sourceforge">nvram-wakeup</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/sys-power/nvram-wakeup/nvram-wakeup-1.0.ebuild b/sys-power/nvram-wakeup/nvram-wakeup-1.0.ebuild
new file mode 100644
index 000000000000..a935e9529727
--- /dev/null
+++ b/sys-power/nvram-wakeup/nvram-wakeup-1.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit flag-o-matic eutils
+
+MY_P=${P%_p*}
+[[ ${PV} == *_p* ]] && REV=${P#*_p} || unset REV
+MY_P=${MY_P/e}
+DESCRIPTION="read and write the WakeUp time in the BIOS"
+HOMEPAGE="https://sourceforge.net/projects/nvram-wakeup"
+SRC_URI="mirror://sourceforge/nvram-wakeup/${MY_P}.tar.gz
+ ${REV+http://nvram-wakeup.svn.sourceforge.net/viewvc/*checkout*/nvram-wakeup/trunk/nvram-wakeup/nvram-wakeup-mb.c?revision=${REV}}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+[[ -n ${REV} ]] && RESTRICT="mirror" #168114
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if [[ -n ${REV} ]] ; then
+ cp "${DISTDIR}"/nvram-wakeup-mb.c?revision=${REV} "${S}"/nvram-wakeup-mb.c || die
+ fi
+ cd "${S}"
+ use nls || epatch "${FILESDIR}"/${PN}-0.97-nonls.patch
+ # Need to be careful with CFLAGS since this could eat your bios
+ strip-flags
+ sed -i \
+ -e '/^CFLAGS/s:= -O2 :+= $(CPPFLAGS) :' \
+ Makefile || die "setting CFLAGS"
+}
+
+src_install() {
+ emake \
+ prefix="${D}"/usr \
+ MANDIR="${D}"/usr/share/man \
+ DOCDIR="${D}"/usr/share/doc/${PF} \
+ install || die
+
+ dodoc "${D}"/usr/bin/vdrshutdown
+ rm -f "${D}"/usr/bin/vdrshutdown
+ dodoc set_timer
+
+ rm -f "${D}"/usr/sbin/time
+ rm -f "${D}"/usr/share/man/man*/time.8*
+
+ prepalldocs
+}
+
+pkg_postinst() {
+ echo
+ ewarn "WARNING:"
+ ewarn "This program writes into the NVRAM (used by BIOS to store the CMOS"
+ ewarn "settings). This is DANGEROUS. Do it at your own risk. Neither the"
+ ewarn "author of this program (nvram-wakeup) nor anyone else can be made"
+ ewarn "responsible to any damage made by this program in any way."
+ ewarn "(The worst case happened to me is that on reboot the BIOS noticed the"
+ ewarn "illegal contents of the nvram and set everything to default values."
+ ewarn "But this doesn't mean that you can't destroy even your whole computer.)"
+ echo
+ ewarn " YOU HAVE BEEN WARNED, HAVE A NICE DAY"
+ echo
+}
diff --git a/sys-power/nvram-wakeup/nvram-wakeup-1.1.ebuild b/sys-power/nvram-wakeup/nvram-wakeup-1.1.ebuild
new file mode 100644
index 000000000000..d4e1e1f8623c
--- /dev/null
+++ b/sys-power/nvram-wakeup/nvram-wakeup-1.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit flag-o-matic eutils
+
+MY_P=${P%_p*}
+[[ ${PV} == *_p* ]] && REV=${P#*_p} || unset REV
+MY_P=${MY_P/e}
+DESCRIPTION="read and write the WakeUp time in the BIOS"
+HOMEPAGE="https://sourceforge.net/projects/nvram-wakeup"
+SRC_URI="mirror://sourceforge/nvram-wakeup/${MY_P}.tar.gz
+ ${REV+http://nvram-wakeup.svn.sourceforge.net/viewvc/*checkout*/nvram-wakeup/trunk/nvram-wakeup/nvram-wakeup-mb.c?revision=${REV}}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+[[ -n ${REV} ]] && RESTRICT="mirror" #168114
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if [[ -n ${REV} ]] ; then
+ cp "${DISTDIR}"/nvram-wakeup-mb.c?revision=${REV} "${S}"/nvram-wakeup-mb.c || die
+ fi
+}
+
+src_prepare() {
+ use nls || epatch "${FILESDIR}"/${PN}-0.97-nonls.patch
+ # Need to be careful with CFLAGS since this could eat your bios
+ strip-flags
+ # GTTXT mode fix: https://sourceforge.net/tracker/?func=detail&aid=3599718&group_id=35022&atid=412757
+ sed -i \
+ -e '/^CFLAGS/s:= -O2 :+= $(CPPFLAGS) :' \
+ -e '/GTTXT/s:755:644:' \
+ Makefile || die
+}
+
+src_install() {
+ emake \
+ prefix="${D}"/usr \
+ MANDIR="${D}"/usr/share/man \
+ DOCDIR="${D}"/usr/share/doc/${PF} \
+ install
+
+ dodoc "${D}"/usr/bin/vdrshutdown
+ rm "${D}"/usr/bin/vdrshutdown || die
+ dodoc set_timer
+
+ rm "${D}"/usr/sbin/time || die
+ rm "${D}"/usr/share/man/man*/time.8* || die
+}
+
+pkg_postinst() {
+ echo
+ ewarn "WARNING:"
+ ewarn "This program writes into the NVRAM (used by BIOS to store the CMOS"
+ ewarn "settings). This is DANGEROUS. Do it at your own risk. Neither the"
+ ewarn "author of this program (nvram-wakeup) nor anyone else can be made"
+ ewarn "responsible to any damage made by this program in any way."
+ ewarn "(The worst case happened to me is that on reboot the BIOS noticed the"
+ ewarn "illegal contents of the nvram and set everything to default values."
+ ewarn "But this doesn't mean that you can't destroy even your whole computer.)"
+ echo
+ ewarn " YOU HAVE BEEN WARNED, HAVE A NICE DAY"
+ echo
+}