--- portage-2.1_pre5.orig/bin/ebuild.sh 2006-03-05 20:18:05.000000000 +0200 +++ portage-2.1_pre5.orig/bin/ebuild.sh 2006-03-05 20:28:06.000000000 +0200 @@ -1001,7 +1001,11 @@ dyn_package() { trap "abort_package" SIGINT SIGQUIT cd "${PORTAGE_BUILDDIR}/image" - tar cpvf - ./ | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball" + if [ "${USERLAND}" == "GNU" ]; then # check for gnu tar and exclude files from. + [ -z "${PKG_EXCLUDEFROM}" ] && PKG_EXCLUDEFROM=/etc/portage/package_excludes + [ -e ${PKG_EXCLUDEFROM} ] && tarvars="--exclude-from=${PKG_EXCLUDEFROM}" + fi + tar ${tarvars} -cpvf - ./ | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball" cd .. xpak build-info inf.xpak tbz2tool join bin.tar.bz2 inf.xpak "${PF}.tbz2" --- portage-2.1_pre5.orig/man/make.conf.5 2006-02-12 09:40:43.000000000 +0200 +++ portage-2.1_pre5.orig/man/make.conf.5 2006-03-05 20:40:06.000000000 +0200 @@ -277,6 +277,12 @@ .br Defaults to ${PORTDIR}/packages. .TP +\fBPKG_EXCLUDEFROM\fR = \fI"/etc/portage/package_excludes"\fR +When this variable is set it will invoke tar with the --exclude-from +option on GNU systems with the variable you defined in the dyn_package +phase. This is mainly used to exclude man/doc/info files in order to +gain smaller binary package sizes for use with embedded systems. \fBUse with caution.\fR +.TP .B PORT_LOGDIR This variable defines the directory in which per\-ebuild logs are kept. Logs are created only when this is set and writable.