Gentoo Stuff

udept:

Note: udept is unsupported and unmaintained -- Use at your own risk!

udept is a collection of Portage scripts, maintenance tools and analysis tools, written in bash and powered by the dep engine.

Installation Example:

Download the tar file and extract it to your portage overlay directory. For example, I have set the variable PORTDIR_OVERLAY in my make.conf file to /usr/local/portage. Here is how I installed the package on my machine:

garath ~ # echo "app-portage/udept" >> /etc/portage/package.unmask
garath root # cd /usr/local/portage
garath portage # wget http://varnerfamily.org/pvarner/gentoo/udept-ebuild-overlay.tar.gz
garath portage # tar xvzf udept-ebuild-overlay.tar.gz
garath portage # rm udept-ebuild-overlay.tar.gz
garath portage # cd /usr/portage/distfiles
garath distfiles # wget http://varnerfamily.org/pvarner/gentoo/udept-0.5.99.0.2.95.tar.bz2
garath distfiles # cd
garath ~ # emerge -av udept
Ebuild: udept-ebuild-overlay.tar.gz
Source: udept-0.5.99.0.2.95.tar.bz2

Kernel Modules Rebuild Script:

Note: kernelmod-rebuild has been superseded by sys-kernel/modules-rebuild in the portage tree.

kernelmod-rebuild is a script to automate updating ebuilds that install kernel modules after recompiling or installing a new kernel.

Installation Example:

Download the tar file and extract it to your portage overlay directory. For example, I have set the variable PORTDIR_OVERLAY in my make.conf file to /usr/local/portage. Here is how I installed the package on my machine:

garath root # cd /usr/local/portage
garath portage # wget http://varnerfamily.org/pvarner/gentoo/kernelmod-rebuild-0.2.3.ebuild.tar.gz
garath portage # tar xvzf kernelmod-rebuild-0.2.3.ebuild.tar.gz
garath portage # rm kernelmod-rebuild-0.2.3.ebuild.tar.gz
garath portage # emerge -pv kernelmod-rebuild
garath portage # emerge -v kernelmod-rebuild

If you are on a different architecture than x86, you either need to edit the ebuild or set ACCEPT_KEYWORDS="~arch" as I have marked those architectures unstable/testing since I don't have machines to test on. It should work properly, but I couldn't test it.

Usage: ./kernelmod-rebuild [OPTIONS] [--] [EMERGE_OPTIONS]

Rebuild packages that have installed kernel modules

  -X,  --package-names    recompile based on package names, not exact versions
                          (implies --ordered-rebuild)
  -S,  --smart-rebuild    recompile only packages that do not currently exist in /lib/modules
  -O,  --ordered-rebuild  use portage to verify that packages are emerged in dependency order.
                          (this is normally not needed)

  -i,  --ignore           ignore temporary files from previous runs
  -q,  --quiet            be less verbose
  -nc  --no-color         no color output

Calls emerge, all other options are used for it (e. g. -p, --pretend).
Ebuild: kernelmod-rebuild-0.2.3.ebuild.tar.gz
Source: kernelmod-rebuild-0.2.3.tar.gz

Portage Update Script:

The script that I use to update the portage tree and clean up. Place the script in /etc/cron.daily

Script: portage.cron

Dependencies:

>=sys-apps/portage-2.0.51
>=app-portage/gentoolkit-0.2.1_pre6
app-portage/esearch
app-portage/genlop
app-admin/tmpwatch

Last update: 16 December 2008