Internal Building GCLinux Packages

From GrandCare Systems
Revision as of 18:33, 1 August 2012 by Ngh (talk | contribs) (Created page with "* Extract the source to /usr/src tar xfv foobar-1.3.2.tar.gz -C /usr/src * Navigate to your directory cd /usr/src/foobar-1.3.2 * Use /usr as your configure script prefix ./...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Extract the source to /usr/src
tar xfv foobar-1.3.2.tar.gz -C /usr/src
  • Navigate to your directory
cd /usr/src/foobar-1.3.2
  • Use /usr as your configure script prefix
./configure --prefix=/usr
  • Build the source
make
  • Install the source into a temporary directory
mkdir /tmp/foobar
make DESTDIR=/tmp/foobar install
  • Navigate to your temp directory and tar it up
cd /tmp/foobar
tar czf gc-foobar-1.3.2.tar.gz *
  • You now have a tarbal gc-foobar-1.3.2.tar.gz that can be extracted to the root on GC boxes
On a system you want to install the package:
tar xfv gc-foobar-1.3.2.tar.gz -C /