Part 1 Preparations

WARNING:
THESE ARE MY PERSONAL NOTES ON MY FIRST EBUILD.
THIS IS BY NO MEANS A USEFUL GUIDE OR ANYTHING SIMILAR TO ANYONE.
RTFM

I’ll try to write an ebuild from scratch and document the progress here.

Ebuild from scratch: Part 1 : Preparations

Everything is done as root or using sudo!

Local Overlay

We need a local overlay.
Created with:
mkdir -p /usr/local/portage
echo -e '\n# local overlay\nPORTDIR_OVERLAY="\n/usr/local/portage\n${PORTDIR_OVERLAY}\n"' >> /etc/portage/make.conf

Optional: Improved portage logging

I might not remember all of it, this might be incomplete.
Basically needing elogv and adding its configuration to make.conf
emerge -av app-portage/elogv
echo -en '\n# portage elogv log-viewer\nPORTAGE_ELOG_SYSTEM="save"\nPORTAGE_ELOG_CLASSES="warn error info log qa"' >> /etc/make.conf

Resulting make.conf

Just to check, the end of /etc/make.conf should look like:

# local overlay
PORTDIR_OVERLAY="/usr/local/portage"

# portage elogv log-viewer
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error info log qa"

Home: Ebuild From Scratch
Next chapter: Part 2 Example MultiMarkdown

Advertisements

One comment

  1. José Fournier · · Reply

    I suggest

    echo -en ‘\n# portage elogv log-viewer\nPORTAGE_ELOG_SYSTEM=”save”\nPORTAGE_ELOG_CLASSES=”warn error info log qa”‘ >> /etc/portage/make.conf

    instead of

    echo -en ‘\n# portage elogv log-viewer\nPORTAGE_ELOG_SYSTEM=”save”\nPORTAGE_ELOG_CLASSES=”warn error info log qa”‘ >> /etc/make.conf

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: