Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33095 Details for
Bug 47162
nvram-wakeup-0.95a + nvram-reboot-2003.08.07 (NEW)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
nvram-wakeup-0.96.ebuild
nvram-wakeup-0.96.ebuild (text/plain), 1.96 KB, created by
Stefan Briesenick (RETIRED)
on 2004-06-11 12:06:21 UTC
(
hide
)
Description:
nvram-wakeup-0.96.ebuild
Filename:
MIME Type:
Creator:
Stefan Briesenick (RETIRED)
Created:
2004-06-11 12:06:21 UTC
Size:
1.96 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils flag-o-matic > ># This is a (small) program that can read and write the WakeUp ># time in the BIOS (via /dev/nvram on recent 2.4.x kernels). ># On this WakeUp # time the computer will be powered on ># automatically from the soft-off state. > >MY_GRP=nvram # group name >MY_GID=64000 # group id > >DESCRIPTION="Tool to read/write the WakeUp time in the BIOS (/dev/nvram)" >HOMEPAGE="http://sourceforge.net/projects/nvram-wakeup/" >SRC_URI="mirror://sourceforge/nvram-wakeup/${P}.tar.bz2" >MB_URI="http://cvs.sourceforge.net/viewcvs.py/nvram-wakeup/nvram-wakeup/nvram-wakeup-mb.c?rev=HEAD" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" > >IUSE="mbcvs" # update nvram-wakeup-mb.c via CVS >DEPEND="mbcvs? ( net-misc/wget )" >RDEPEND="" > >src_unpack() { > unpack "${A}" || die "unpack failed" > cd "${S}" > if [ `use mbcvs` ] > then > ebegin "Trying to download the latest nvram-wakeup-mb.c file" > wget --tries 2 --timeout=20 -O nvram-wakeup-mb-cvs.c "${MB_URI}" && \ > mv -fv "nvram-wakeup-mb-cvs.c" "nvram-wakeup-mb.c" > eend $? > echo > einfo "if the latest nvram-wakeup-mb.c does not work or compile," > einfo "then try: USE=\"-mbcvs\" emerge ${PN}" > echo > fi >} > >src_compile() { > emake CC="$CC" CFLAGS="$CFLAGS \$(DEFS)" || die "emake failed" >} > >pkg_preinst() { > enewgroup $MY_GRP $MY_GID >} > >src_install() { > local MY_DOC="${D}/usr/share/doc/${PN}" > make prefix=${D}/usr install || die > > # changing permissions > chgrp $MY_GID ${D}/usr/bin/nvram-wakeup > chmod u+s,o-rx ${D}/usr/bin/nvram-wakeup > > # provide the sample config in /etc > insinto /etc > doins ${MY_DOC}/nvram-wakeup.conf > rm -f ${MY_DOC}/nvram-wakeup.conf > > # move documents and examples > dodoc ${MY_DOC}/* ${D}/usr/bin/vdrshutdown set_timer > rm -f ${D}/usr/bin/vdrshutdown > rm -rf ${MY_DOC} >} > >pkg_postinst() { > echo > einfo "users which are in the group '$MY_GRP'" > einfo "are able to use /usr/bin/nvram-wakeup" > echo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 47162
:
28865
|
28866
|
28885
|
28975
|
33087
|
33095
|
33097
|
36156
|
36231
|
41444
|
41445
|
41446
|
41447