Chapter 8. Creating a Package with GPT: Simple Examples

Table of Contents

Introduction
GPT Scripts Used
Perl Example: Hello World Script Package
Perl Example: Hello World Perl Script Package With a Data File
"C" Example : Hello World Program Package with a Makefile
"C" Example : Hello World Program Package with Dependencies
Testing the Example Packages
Python Example: A Package Wrapper

Introduction

This chapter starts of with packaging a simple perl script. It then adds a configuration file to illustrate relocation problems. The final example is a version of hello-world written in C which uses a shared library and a Makefile. All of the examples in the section assume that you have installed GPT and added $GPT_LOCATION/sbin and $GPT_INSTALL_LOCATION/bin to your path.