HOWTO: Example of Installing 3rd Party Ebuilds

From Sabayon Wiki
Jump to: navigation, search
Portage (emerge) is not the primary package manager for Sabayon, this article is for advanced users only. In other words if this fails for you, its your fault. You have been warned.

You may run into a really nice piece of software and discover that is it not in portage nor in an overlay. You really want the software and would like the package manager to handle it for easier maintenance. I stress using the package manager for everything. It’s just one of those things you don’t question and follow the proper practices. One of the first things I do is head over to Gentoo’s bugzilla and see if an ebuild has been submitted. In this scenario I will use Galaxium im software as an example. I jump over to Gentoo bugzilla and presto, someone has already done up the ebuild. Now if you’re new to portage you maybe thinking great, but what do I do with these ebuilds. So than we need to look at the gentoo wiki for a guide on 3rd party ebuilds. Let me do a quick walk through of this process. You will need to be root to do this process. Since Galaxium has two ebuilds, we need to create two directory structures, which are:(Note I edited the ebuilds and resubmitted them to sabayon linux bugzilla so I will be using those one - reason for edit was so I could install it on my 64 bit install.)

In terminal/konsole

    su and enter your root password
    # mkdir -p /usr/local/portage/dev-dotnet/libanculus-sharp
    # mkdir -p /usr/local/portage/net-im/galaxium

How do you know what to name the directories? You want to follow the proper categories layout that Gentoo uses.

First thing we need to do is make sure your /etc/make.conf has the correct line in it so it can find your custom ebuilds. Simply add:

PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/" 

to it if it’s not there.

Than we need to get the ebuilds into the directories and digest them so we can install them, let’s start with libanculus-sharp first:

   # cd /usr/local/portage/dev-dotnet/libanculus-sharp  << changes u to the correct directory >>
   # wget -O libanculus-sharp-0.3.1.ebuild << will get the ebuild and put it in the directory >>
   # ebuild libanculus-sharp-0.3.1.ebuild manifest  << prepares the ebuild for install >>

You will notice when you digest a file it will retrieve the files from the internet it needs and place them into your /usr/portage/distfiles Now you can emerge your ebuild by:

   # emerge libanculus-sharp

Now we can do Galaxium:

   # cd /usr/local/portage/net-im/galaxium
   # wget -O galaxium-0.7.3.ebuild
   # ebuild galaxium-0.7.3.ebuild manifest
   # emerge galaxium

Pretty painless and now your ebuild is there to stay and it’s easy to maintain when a new version comes out. Now you maybe thinking what do I do if I can’t find an ebuild for the software I want. Well you can learn how to make an ebuild or use the sabayonlinux bugzilla and request an ebuild and maybe some kind package maintainer will build it and put it in the overlay for you. You can request a package for Entropy package manager also. The above method works great tho if you can’t wait for a package or even an updated version to get into an overlay or portage.

Please note this package is now officially in the Sabayon Linux overlay.