Difference between revisions of "Internal Building GCLinux Packages"

From GrandCare Systems
Jump to navigation Jump to search
(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 ./...")
 
m (Eumhoefer moved page Building GCLinux Packages to Internal Building GCLinux Packages without leaving a redirect)
 
(3 intermediate revisions by one other user not shown)
Line 7: Line 7:
* Build the source
* Build the source
  make
  make
* Install the source into a temporary directory
* '''Critical Step''': Install the source into a temporary directory
  mkdir /tmp/foobar
  mkdir /tmp/foobar
  make DESTDIR=/tmp/foobar install
  make DESTDIR=/tmp/foobar install
Line 13: Line 13:
  cd /tmp/foobar
  cd /tmp/foobar
  tar czf gc-foobar-1.3.2.tar.gz *
  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
* You now have a tarball ''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:
  On a system you want to install the package:
  tar xfv gc-foobar-1.3.2.tar.gz -C /
  tar xfv gc-foobar-1.3.2.tar.gz -C /
=Notes=
Make sure to make install any dependencies using the same $DESTDIR temporary directory you've created.

Latest revision as of 15:52, 19 July 2017

  • 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
  • Critical Step: 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 tarball 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 /

Notes

Make sure to make install any dependencies using the same $DESTDIR temporary directory you've created.