| NETwork Security Consortium |
|
PENTOO
|
||||||||||
RESOURCES
|
||||||||||
| CONTACTS |
For that, you’ll have to setup first the modules directory.
If you haven’t done it yet, read Mini-Pentoo modules addition.
When done, add the portage modules provided here. This is a snapshot from the portage tree, containing available packages for Gentoo.
Search if the package you want to install is available in portage :
# emerge -s bmon
Searching...
[ Results for search key : bmon ]
[ Applications found : 5 ]
* net-analyzer/bmon
Latest version available: 2.1.0-r2
Latest version installed: [ Not Installed ]
Size of downloaded files: 263 kB
Homepage: http://people.suug.ch/ tgr/bmon/
Description: interface bandwidth monitor
License: Artistic
...
...
You can then use the script provided with mpentoo to build automatically the modules. This script will merge the packages and build the .mo files.
# makemo bmon
Here are the dependencies :
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] dev-libs/libnl-0.5.0 159 kB
[ebuild N ] net-analyzer/bmon-2.1.0-r2 -dbi -rrdtool 263 kB
Total size of downloads: 423 kB
Proceed with the merging? [y]/n
...
...
Finished creating modules.
You can now copy your modules from /modules/*.mo to
your usb stick or whatever your modules support is.
# ls -l /modules/
total 192
-rwx------ 1 root root 81920 Feb 2 10:44 bmon-2.1.0-r2.mo
-rwx------ 1 root root 98304 Feb 2 10:43 libnl-0.5.0.mo
And you’re done. You now have to copy them to your usb stick or harddisk.
Ok, you can do that as well, let’s see :
Download your sources, and untar it in a temp dir. Ie: go in /usr/src/ and untar your sources there.
Configure your package by doing :
# ./configure —prefix=/usr/
Create a directory wherever you want like :
# mkdir /tmp/rootfs/
Then make the stuff and install it there :
# make DESTDIR=/tmp/rootfs/ install
If everything go well, go in /tmp and create the module :
# mksquashfs rootfs/ foobar-1.0.mo
Now, you can put it in your modules directory and when you reboot, you should be able to run your tool.