/[gentoo-x86]/sys-power/nvram-wakeup/nvram-wakeup-0.97-r1.ebuild
Gentoo

Contents of /sys-power/nvram-wakeup/nvram-wakeup-0.97-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Dec 13 23:14:19 2005 UTC (14 years, 3 months ago) by zzam
Branch: MAIN
Changes since 1.1: +2 -2 lines
Marked stable on x86.
(Portage version: 2.0.53)

1 ciaranm 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 zzam 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-power/nvram-wakeup/nvram-wakeup-0.97-r1.ebuild,v 1.1 2005/03/14 22:22:57 ciaranm Exp $
4 ciaranm 1.1
5     inherit flag-o-matic
6    
7     DESCRIPTION="read and write the WakeUp time in the BIOS"
8     HOMEPAGE="http://sourceforge.net/projects/nvram-wakeup"
9     SRC_URI="mirror://sourceforge/nvram-wakeup/${P}.tar.bz2"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 zzam 1.2 KEYWORDS="x86"
14 ciaranm 1.1 IUSE="nls"
15    
16     DEPEND="nls? ( sys-devel/gettext )"
17     RDEPEND=""
18    
19     src_unpack() {
20     unpack ${A}
21     cd "${S}"
22     use nls || epatch "${FILESDIR}"/${P}-nonls.patch
23     # Need to be careful with CFLAGS since this could eat your bios
24     strip-flags
25     sed -i \
26     -e "s:-O2 -Wall -Wstrict-prototypes -g -mcpu=i686:${CFLAGS}:" \
27     Makefile || die "setting CFLAGS"
28     }
29    
30     src_install() {
31     make \
32     prefix="${D}"/usr \
33     MANDIR="${D}"/usr/share/man \
34     DOCDIR="${D}"/usr/share/doc/${PF} \
35     install || die
36    
37     dodoc "${D}"/usr/bin/vdrshutdown
38     rm -f "${D}"/usr/bin/vdrshutdown
39     dodoc set_timer
40    
41     rm -f "${D}"/usr/sbin/time
42     rm -f "${D}"/usr/share/man/man*/time.8*
43    
44     prepalldocs
45     }
46    
47     pkg_postinst() {
48     echo
49     ewarn "WARNING:"
50     ewarn "This program writes into the NVRAM (used by BIOS to store the CMOS"
51     ewarn "settings). This is DANGEROUS. Do it at your own risk. Neither the"
52     ewarn "author of this program (nvram-wakeup) nor anyone else can be made"
53     ewarn "responsible to any damage made by this program in any way."
54     ewarn "(The worst case happened to me is that on reboot the BIOS noticed the"
55     ewarn "illegal contents of the nvram and set everything to default values."
56     ewarn "But this doesn't mean that you can't destroy even your whole computer.)"
57     echo
58     ewarn " YOU HAVE BEEN WARNED, HAVE A NICE DAY"
59     echo
60     }

  ViewVC Help
Powered by ViewVC 1.1.20