Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Xin Zhang <xzhang@pivotal.io> Co-authored-by: Larry Hamel <lhamel@pivotal.io> Co-authored-by: David Sharp <dsharp@pivotal.io> Co-authored-by: Fei Yang <fyang@pivotal.io>
- Loading branch information
1 parent
f3b0338
commit 559c7ae
Showing
10 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ubuntu_ent_build:16.04_dist | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common \ | ||
debmake \ | ||
equivs \ | ||
git | ||
|
||
COPY . /tmp/gpdb_src/debian/ | ||
|
||
WORKDIR /tmp/gpdb_src | ||
|
||
RUN ./debian/build_debian.sh | ||
|
||
WORKDIR /tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -ex | ||
|
||
VERSION=$(</tmp/gpdb_src/VERSION awk '{print $1}') | ||
dch --create -M --package greenplum-db -v "${VERSION}" "Enterprise Release" | ||
yes | mk-build-deps -i debian/control | ||
DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b | ||
echo The debian package is at /tmp/greenplum-db_${VERSION}.build.dev_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Source: greenplum-db | ||
Maintainer: Omitted <no-reply@example.com> | ||
Section: database | ||
Build-Depends: debhelper (>= 9) | ||
|
||
Package: greenplum-db | ||
Architecture: amd64 | ||
Depends: bison, | ||
curl, | ||
iputils-ping, | ||
less, | ||
libapr1, | ||
libbz2-1.0, | ||
libcurl3-gnutls, | ||
libevent-2.0-5, | ||
libreadline6, | ||
libxerces-c3.1, | ||
libxml2-dev, | ||
locales, | ||
net-tools, | ||
openssh-client, | ||
openssh-server, | ||
openssl, | ||
python-lockfile, | ||
python-paramiko, | ||
python-psutil, | ||
python-yaml, | ||
python-pip, | ||
rsync, | ||
zlib1g | ||
Description: Greenplum Database is an advanced, fully featured, open source data platform. It provides powerful and rapid analytics on petabyte scale data volumes. Uniquely geared toward big data analytics, Greenplum Database is powered by the world’s most advanced cost-based query optimizer delivering high analytical query performance on large data volumes.The Greenplum Database® project is released under the Apache 2 license. We want to thank all our current community contributors and all who are interested in new contributions. For the Greenplum Database community, no contribution is too small, we encourage all types of contributions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Portions Copyright (c) 2005-2008, Greenplum inc | ||
Portions Copyright (c) 2012-Present Pivotal Software, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
debian/build/* /opt/gpdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/make -f | ||
|
||
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* | ||
DH_VERBOSE = 1 | ||
DPKG_EXPORT_BUILDFLAGS = 1 | ||
|
||
GPDB_SRC_DIR := /tmp/gpdb_src | ||
VERSION := $(shell cat $(GPDB_SRC_DIR)/VERSION | awk '{print $$1}') | ||
PACKAGE := $(shell cat debian/control | egrep "^Package: " | cut -d " " -f 2) | ||
|
||
# This destination should NOT be debian/tmp, where certain packaging info stored and erased via dh_prep | ||
DEBIAN_DESTINATION := $(shell pwd)/debian/build | ||
|
||
include /usr/share/dpkg/default.mk | ||
|
||
%: | ||
dh $@ --parallel | ||
|
||
override_dh_auto_configure: | ||
echo "Skipping configure" | ||
|
||
override_dh_auto_install: | ||
mkdir -p ${DEBIAN_DESTINATION} | ||
cp -r /usr/local/greenplum-db-devel/* ${DEBIAN_DESTINATION} | ||
sed -i "s#GPHOME=.*#GPHOME=/opt/gpdb#g" ${DEBIAN_DESTINATION}/greenplum_path.sh | ||
# Remove fault injector and other packages | ||
while read file; do\ | ||
if [ -f "${DEBIAN_DESTINATION}/$${file}" ]; then\ | ||
echo "Deleting: ${DEBIAN_DESTINATION}/$${file}"; \ | ||
rm "${DEBIAN_DESTINATION}/$${file}"; \ | ||
else\ | ||
echo "File $${file} does not exist. Skipping." ; \ | ||
fi;\ | ||
done < ${GPDB_SRC_DIR}/gpAux/releng/NON_PRODUCTION_FILES.txt | ||
|
||
override_dh_auto_build: | ||
echo "Skipping build" | ||
|
||
override_dh_auto_clean: | ||
echo "Skipping clean" | ||
|
||
override_dh_gencontrol: | ||
echo "using version $(VERSION) for binary" | ||
dpkg-gencontrol -v$(VERSION) -Pdebian/$(PACKAGE) | ||
|
||
override_dh_shlibdeps: | ||
LD_LIBRARY_PATH=${DEBIAN_DESTINATION}/lib dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info > /tmp/dp_shlibdeps.out.txt 2>&1 || echo "Error with dp_shlibsdeps, output: $(cat /tmp/dp_shlibdeps.out.txt)" | ||
|
||
clean_dev_local: | ||
rm -rf ${DEBIAN_DESTINATION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |