/[gentoo-x86]/sys-power/nvram-wakeup/nvram-wakeup-0.99b.ebuild
Gentoo

Contents of /sys-power/nvram-wakeup/nvram-wakeup-0.99b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Apr 29 19:38:46 2015 UTC (4 years, 8 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/nvram-wakeup/nvram-wakeup-0.99b.ebuild,v 1.2 2012/05/24 05:48:22 vapier Exp $
4
5 inherit flag-o-matic eutils
6
7 MY_P=${P%_p*}
8 [[ ${PV} == *_p* ]] && REV=${P#*_p} || unset REV
9 MY_P=${MY_P/e}
10 DESCRIPTION="read and write the WakeUp time in the BIOS"
11 HOMEPAGE="http://sourceforge.net/projects/nvram-wakeup"
12 SRC_URI="mirror://sourceforge/nvram-wakeup/${MY_P}.tar.gz
13 ${REV+http://nvram-wakeup.svn.sourceforge.net/viewvc/*checkout*/nvram-wakeup/trunk/nvram-wakeup/nvram-wakeup-mb.c?revision=${REV}}"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="nls"
19 [[ -n ${REV} ]] && RESTRICT="mirror" #168114
20
21 DEPEND="nls? ( sys-devel/gettext )"
22 RDEPEND=""
23
24 S=${WORKDIR}/${MY_P}
25
26 src_unpack() {
27 unpack ${MY_P}.tar.gz
28 if [[ -n ${REV} ]] ; then
29 cp "${DISTDIR}"/nvram-wakeup-mb.c?revision=${REV} "${S}"/nvram-wakeup-mb.c || die
30 fi
31 cd "${S}"
32 use nls || epatch "${FILESDIR}"/${PN}-0.97-nonls.patch
33 # Need to be careful with CFLAGS since this could eat your bios
34 strip-flags
35 sed -i \
36 -e '/^CFLAGS/s:= -O2 :+= $(CPPFLAGS) :' \
37 Makefile || die "setting CFLAGS"
38 }
39
40 src_install() {
41 emake \
42 prefix="${D}"/usr \
43 MANDIR="${D}"/usr/share/man \
44 DOCDIR="${D}"/usr/share/doc/${PF} \
45 install || die
46
47 dodoc "${D}"/usr/bin/vdrshutdown
48 rm -f "${D}"/usr/bin/vdrshutdown
49 dodoc set_timer
50
51 rm -f "${D}"/usr/sbin/time
52 rm -f "${D}"/usr/share/man/man*/time.8*
53
54 prepalldocs
55 }
56
57 pkg_postinst() {
58 echo
59 ewarn "WARNING:"
60 ewarn "This program writes into the NVRAM (used by BIOS to store the CMOS"
61 ewarn "settings). This is DANGEROUS. Do it at your own risk. Neither the"
62 ewarn "author of this program (nvram-wakeup) nor anyone else can be made"
63 ewarn "responsible to any damage made by this program in any way."
64 ewarn "(The worst case happened to me is that on reboot the BIOS noticed the"
65 ewarn "illegal contents of the nvram and set everything to default values."
66 ewarn "But this doesn't mean that you can't destroy even your whole computer.)"
67 echo
68 ewarn " YOU HAVE BEEN WARNED, HAVE A NICE DAY"
69 echo
70 }

  ViewVC Help
Powered by ViewVC 1.1.20