ELI5: what is the Ports-tree? - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems (https://nixers.net/forumdisplay.php?fid=4)
+--- Forum: BSD (https://nixers.net/forumdisplay.php?fid=13)
+--- Thread: ELI5: what is the Ports-tree? (/showthread.php?tid=1560)
ELI5: what is the Ports-tree? - fayesafe - 06-09-2014
I was thinking about that a very long Time, because i think about changing from linux to BSD or at least switching from arch to a distro that provides some kind of a ports-tree like crux linux does, or gentoo if you want. So, whenever i read about this topic, i cannot find out *in detail* what this is. Is it some kind of Directory, that provides sources and stuff or is it completely different from my idea?
I apologize if this maybe Sounds a Little noobish, but i thought, this'd by the right Place to ask.
RE: ELI5: what is the Ports-tree? - venam - 06-09-2014
If you are on Arch you can try the ABS to get an idea of what ports are like.
RE: ELI5: what is the Ports-tree? - z3bra - 06-09-2014
A port-tree is a cook book. But instead of making cakes, you create packages.
Instead of pages, you have directories.
Instead of recipes, you have scripts or makefiles (depending on your system).
The most simple recipe to build a package would be:
Where would you put this recipe ? In your cookbook :
This, tiny boy, is a cookbook port-tree
RE: ELI5: what is the Ports-tree? - pizzaroll1 - 06-09-2014
It's just a directory full of Makefiles that fetch the source, build a package and install it. Here is the OpenBSD documentation on what the ports tree is. Basically, if you want to install chromium, for example:
And you'll have built and installed a package from source. The directories are laid out like /usr/ports/$CATEGORY/$PACKAGE: for example, irssi is in net/irssi, dmenu is in x11/dmenu, terminus font is in fonts/terminus-font and so on. Generally you might want a ports tree if the prebuilt packages weren't built with a specific feature you want (support for a scripting language, a specific sound server etc) or if there are too many features and you want to cut down.