tree: 89b4a715c87c3b1ffc2568e411639c0d4c97a3a9
  1. data/
  2. build_gppkg.mk
  3. generate_sample_gppkg.sh
  4. gppkg_spec.yml.in
  5. README.md
  6. sample-sources.tar.gz
  7. sample.control
  8. sample.spec
gpMgmt/demo/gppkg/README.md

Pre-Requirements

This document is used to generate a sample.gppkg or build a native rpm/deb package

How to build a native(rpm/deb) package for sample.gppkg ?

bash generate_sample_gppkg.sh buildNative

How to build a gppkg from the above or existing native package ?

bash generate_sample_gppkg.sh buildGppkg

THE FOLLOWING DOCUMENT IS OUTDATED.

yum -y install rpmdevtools rpmlint

How to Create a Cloudberry Package that can be manipulated with gppkg

Run the following script on Centos6 or Redhat6. The destination directory is hardcoded for simplicity.

DIR=/tmp/sample

mkdir -p ${DIR}
cp gppkg_spec.yml ${DIR}
cp sample-sources.tar.gz ${DIR}
cp sample.spec ${DIR}

./generate_sample_gppkg.sh ${DIR} 

Your sample package will be at:

ls /tmp/sample-gppkg/sample.gppkg

Using Makefile to create a Cloudberry Package

To integrate build gppkg into a Makefile, it needs to include the following .mk file

# Ubuntu
include gppkg_deb.mk
# CcentOS/Redhat
include gppkg_rpm.mk