\fIpkg_preinst()\fR function (if specified) is run. Then, the files
are merged into the live filesystem, and the installed files' md5
digests are recorded in
-\fI@DOMAIN_PREFIX@/var/db/pkg/${CATEGORY}/${PN}\-${PVR}/CONTENTS\fR. After
+\fI/var/db/pkg/${CATEGORY}/${PN}\-${PVR}/CONTENTS\fR. After
all the files have been merged, the \fIpkg_postinst()\fR function
(if specified) is executed.
.TP
This command is a lot like the \fImerge\fR command, except that after
fetching, unpacking, compiling and installing, a .tbz2 binary package
tarball is created and stored in ${PKGDIR}/All (${PKGDIR} defaults to
-@DOMAIN_PREFIX@/usr/portage/packages). A symbolic link is created in
+/usr/portage/packages). A symbolic link is created in
${PKGDIR}/${CATEGORY} that points to the package in ${PKGDIR}/All.
.TP
.BR rpm
.fi
.SH "FILES"
.TP
-.B @sysconfdir@/make.conf
+.B /etc/make.conf
Contains variables for the build\-process and overwrites those
in make.globals.
.TP
-.B @sysconfdir@/portage/color.map
+.B /etc/portage/color.map
Contains variables customizing colors.
.SH "SEE ALSO"
.BR emerge (1),
.BR make.conf (5),
.BR color.map (5)
.TP
-The \fI@DOMAIN_PREFIX@/usr/sbin/ebuild.sh\fR script.
+The \fI/usr/sbin/ebuild.sh\fR script.
.TP
-The helper apps in \fI@PORTAGE_BASE@/bin\fR.
+The helper apps in \fI/usr/lib/portage/bin\fR.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="prefix"
+
inherit some_eclass another_eclass
DESCRIPTION="Super\-useful stream editor (sed)"
src_compile() {
econf \\
- \-\-bindir=/bin \\
+ \-\-bindir="${EPREFIX}"/bin \\
|| die "could not configure"
emake || die "emake failed"
}
operation that does not involve the helper tools and functions (found below)
should be prefixed with ${D}. Do not modify this variable.
.TP
+\fBED\fT = \fI"${PORTAGE_TMPDIR}/portage/${CATEGORY}/${PF}/image/${EPREFIX}"\fR
+Contains the path "${D}${EPREFIX}" for convenience purposes. Do not
+modify this variable.
+.TP
.B PORTAGE_LOG_FILE
Contains the path of the build log. If \fBPORT_LOGDIR\fR variable is unset then
\fBPORTAGE_LOG_FILE\fR=\fB"${T}/build.log"\fR.
When packages wish to make changes to the live filesystem, they should do so in
the tree prefixed by ${ROOT}. Do not modify this variable.
.TP
+.B EPREFIX
+Contains the offset that this Portage was configured for during
+installation. The offset is sometimes necessary in an ebuild or eclass,
+and is available in such cases as ${EPREFIX}. Do not modify this
+variable.
+.TP
\fBDESCRIPTION\fR = \fI"A happy little package"\fR
Should contain a short description of the package.
.TP
where it has been PROVEN TO WORK. (Packages KEYWORDed this way may be
unmasked for testing by setting ACCEPT_KEYWORDS="~arch" on the command
line, or in \fBmake.conf\fR(5)) For an authoritative list please review
-@DOMAIN_PREFIX@/usr/portage/profiles/arch.list. Please keep this list in alphabetical order.
+/usr/portage/profiles/arch.list. Please keep this list in alphabetical order.
.TP
\fBSLOT\fR
This sets the SLOT for packages that may need to have multiple versions
\fBLICENSE\fR
This should be a space delimited list of licenses that the package falls
under. This \fB_must_\fR be set to a matching license in
-@DOMAIN_PREFIX@/usr/portage/licenses/. If the license does not exist in portage yet, you
+/usr/portage/licenses/. If the license does not exist in portage yet, you
must add it first.
.TP
\fBIUSE\fR
This is used as a replacement for configure. Performs:
.nf
${\fIECONF_SOURCE\fR:-.}/configure \\
- \-\-prefix="@DOMAIN_PREFIX@"/usr \\
- \-\-host=${CHOST} \\
- \-\-mandir="@DOMAIN_PREFIX@"/usr/share/man \\
- \-\-infodir="@DOMAIN_PREFIX@"/usr/share/info \\
- \-\-datadir="@DOMAIN_PREFIX@"/usr/share \\
- \-\-sysconfdir="@DOMAIN_PREFIX@"/etc \\
- \-\-localstatedir="@DOMAIN_PREFIX@"/var/lib \\
+ \-\-prefix="${EPREFIX}"/usr \\
+ \-\-host="${EPREFIX}${CHOST} \\
+ \-\-mandir="${EPREFIX}"/usr/share/man \\
+ \-\-infodir="${EPREFIX}"/usr/share/info \\
+ \-\-datadir="${EPREFIX}"/usr/share \\
+ \-\-sysconfdir="${EPREFIX}"/etc \\
+ \-\-localstatedir="${EPREFIX}"/var/lib \\
\fI${EXTRA_ECONF}\fR \\
\fIconfigure options\fR
.fi
.TP
\fBemake\fR \fI[make options]\fR
This is used as a replacement for make. Performs 'make ${MAKEOPTS}
-\fImake options\fR' (as set in @DOMAIN_PREFIX@/etc/make.globals), default is MAKEOPTS="\-j2".
+\fImake options\fR' (as set in /etc/make.globals), default is MAKEOPTS="\-j2".
\fB***warning***\fR
.br
This is used as a replacement for make install. Performs:
.nf
make \\
- prefix="${ED}"/usr \\
- datadir="${ED}"/usr/share \\
- infodir="${ED}"/usr/share/info \\
- localstatedir="${ED}"/var/lib \\
- mandir="${ED}"/usr/share/man \\
- sysconfdir="${ED}"/etc \\
+ prefix=${ED}/usr \\
+ datadir=${ED}/usr/share \\
+ infodir=${ED}/usr/share/info \\
+ localstatedir=${ED}/var/lib \\
+ mandir=${ED}/usr/share/man \\
+ sysconfdir=${ED}/etc \\
\fI${EXTRA_EINSTALL}\fR \\
\fImake options\fR \\
install
.TP
\fBdosed\fR \fI"s:orig:change:g" <filename>\fR
Performs sed in place on \fIfilename\fR inside ${ED}. If no expression is
-given then \fI"s:${D}::g"\fR is used as the default expression.
+given then \fI"s:${D}::g"\fR is used as the default expression. Note
+that this expression does \fBNOT\fR use the offset prefix.
.br
.BR 'dosed\ "s:/usr/local:/usr:g"\ /usr/bin/some\-script'
runs sed on ${ED}/usr/bin/some\-script
Nicholas Jones <carpaski@gentoo.org>
Mike Frysinger <vapier@gentoo.org>
Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@gmail.com>
+Fabian Groffen <grobian@gentoo.org>
.fi
.SH "FILES"
.TP
-The \fI@DOMAIN_PREFIX@/usr/sbin/ebuild.sh\fR script.
+The \fI/usr/sbin/ebuild.sh\fR script.
.TP
-The helper apps in \fI@PORTAGE_BASE@/bin\fR.
+The helper apps in \fI/usr/lib/portage/bin\fR.
.TP
-.B @sysconfdir@/make.conf
+.B /etc/make.conf
Contains variables for the build\-process and overwrites those in make.defaults.
.TP
-.B @sysconfdir@/make.globals
+.B /etc/make.globals
Contains the default variables for the build\-process, you should edit
-\fI@sysconfdir@/make.conf\fR instead.
+\fI/etc/make.conf\fR instead.
.TP
-.B @sysconfdir@/portage/color.map
+.B /etc/portage/color.map
Contains variables customizing colors.
.SH "SEE ALSO"
.BR ebuild (1),