sergio: Easy Pkgsrc Bootstrap

source:/put_on_your_boot.jpg

sergio automates the task of deploying a BSD ports environment (pkgsrc) on GNU/Linux and OSX. It sets the needed environment variables, downloads pkgsrc, and bootstraps the pkgsrc infrastructure with the right options for a non-privileged user. I use sergio at $WORK and $HOME to automate the deployment of pkgsrc on servers and workstations.

Usage:

sudo apt-get install build-essential libncurses5-dev curl
curl 'http://trac.assembla.com/sergio/browser/sergio.sh?format=txt' --output sergio.sh
sh sergio.sh $HOME/netbsd

will bootstrap a pkgsrc infrastructure in $HOME/netbsd.

On OSX you need to install the Developer Tools instead of the "sudo apt-get install xxx" command.

You can then build your first pkgsrc programm:

cd $HOME/netbsd/pkgsrc/misc/figlet 
$HOME/netbsd/pkg/bin/bmake install
$HOME/netbsd/pkg/bin/figlet -f slant 'pkgsrc rocks !'
           __                                           __           __
    ____  / /______ ________________   _________  _____/ /_______   / /
   / __ \/ //_/ __ `/ ___/ ___/ ___/  / ___/ __ \/ ___/ //_/ ___/  / / 
  / /_/ / ,< / /_/ (__  ) /  / /__   / /  / /_/ / /__/ ,< (__  )  /_/  
 / .___/_/|_|\__, /____/_/   \___/  /_/   \____/\___/_/|_/____/  (_)   
/_/         /____/

After that you can use read that  pkgsrc introduction and start compiling perl, gnome, firefox be aware that graphical programs take time !

Current Version: 0.1

Illustration:pit

Attachments