wiki:WikiStart
Last modified 8 months ago Last modified on 08/13/2013 02:11:35 PM

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.

Install requirements on Debian based system

sudo apt-get install build-essential libncurses5-dev curl

Install requirements on Redhat based system

su -c 'yum groupinstall "Development Tools"'

Install pkgsrc

curl 'http://trac.assembla.com/sergio/browser/sergio.sh?format=txt' --output sergio.sh
sh sergio.sh $HOME/Projects/netbsd

will bootstrap a pkgsrc infrastructure in $HOME/Projects/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/Projects/netbsd/pkgsrc/misc/figlet 
$HOME/Projects/netbsd/pkg/bin/bmake install
$HOME/Projects/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

Example Use Sergio to install puppet on a old OS release ( Centos 4.)

PuppetonCentos4

Illustration:pit

Attachments