From d9fc4acc572c6647a4f27b838d35d27d805d190e Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sun, 28 Aug 2005 08:37:44 +0000 Subject: Migration (without history) of the current stable line to subversion. svn path=/main/branches/2.0/; revision=1941 --- man/check-reqs.eclass.5 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 man/check-reqs.eclass.5 (limited to 'man/check-reqs.eclass.5') diff --git a/man/check-reqs.eclass.5 b/man/check-reqs.eclass.5 new file mode 100644 index 000000000..3c3afcc96 --- /dev/null +++ b/man/check-reqs.eclass.5 @@ -0,0 +1,55 @@ +.TH CHECK-REQS.ECLASS 5 "Dec 2004" "Portage 2.0.51" "portage" +.SH NAME +check-reqs.eclass \- functions for checking proper build requirements +.SH DESCRIPTION +The \fBcheck-reqs\fR eclass provides a uniform interface for handling ebuilds +which require an abnormally high amount of system resources. The variable(s) +and function(s) mentioned here should usually be set/called from \fBpkg_setup\fR. +.br + +\fBNOTE\fR: Minimum criteria for use of this eclass is a build that requires +>256MB of RAM and/or >1GB of temporary or install space. +.SH VARIABLES +\fBNOTE\fR: all numerical values are evaluated as megabytes (MB). +.TP +.B CHECKREQS_ACTION = \fI"(warn|error|ignore)"\fR +Defines action to take if current system resources do not satisfy requirements. +\fBNOTE\fR: this variable is for end user only. Ebuilds must *not* override or +set a default for this variable. +.TP +.B CHECKREQS_MEMORY = \fI"256"\fR +Defines amount of memory required. Note that the \fBcheck-reqs\fR eclass does +not take swap space into account when checking current memory resources. +.TP +.B CHECKREQS_DISK_BUILD = \fI"1024"\fR +Defines amount of temporary build space required. +.TP +.B CHECKREQS_DISK_USR = \fI"1024"\fR +Defines amount of /usr space required. +.TP +.B CHECKREQS_DISK_VAR = \fI"1024"\fR +Defines amount of /var space required. +.SH FUNCTIONS +\fBNOTE\fR: all numerical values are evaluated as megabytes (MB). Any values +should merely be rough estimates, and a high degree of precision should not +be implied -- for example, "2048" (or "2000") are more appropriate than "2137". +.TP +.B check_reqs +Performs resource checks based on above defined variables. If the checks fail, +the action specified by \fBCHECKREQS_ACTION\fR will be executed. If for some +reason the \fBcheck-reqs\fR eclass is unable to determine current resources, +then no action will be performed. This function should be called from within +\fBpkg_setup\fR. +.SH REPORTING BUGS +Please report bugs via http://bugs.gentoo.org/ +.SH SEE ALSO +.BR ebuild (5) +.SH FILES +.BR /usr/portage/eclass/check-reqs.eclass +.SH AUTHORS +.nf +Aaron Walker +Ciaran McCreesh +.fi +.SH CVS HEADER +$Header: /var/cvsroot/gentoo-src/portage/man/check-reqs.eclass.5,v 1.1.2.3 2005/05/10 11:30:32 swegener Exp $ -- cgit v1.2.3-1-g7c22