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

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 comment