This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use package and version variables in packaging scripts
- Loading branch information
1 parent
d1a051c
commit a9c5063
Showing
10 changed files
with
85 additions
and
36 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
set -exu | ||
|
||
mkdir -p ${BOSH_INSTALL_TARGET}/bin | ||
tar -xzf cni/cni-plugins-amd64*.tgz -C ${BOSH_INSTALL_TARGET}/bin/ | ||
|
||
CNI_PACKAGE="cni-plugins" | ||
CNI_VERSION="0.7.1" | ||
|
||
tar -xzf cni/${CNI_PACKAGE}-amd64-${CNI_VERSION}.tgz -C ${BOSH_INSTALL_TARGET}/bin/ | ||
|
||
mkdir -p utillocal | ||
dpkg -x cni/util-linux*.deb utillocal/ | ||
|
||
cp utillocal/usr/bin/nsenter ${BOSH_INSTALL_TARGET}/bin | ||
cp -a utillocal/usr/bin/nsenter ${BOSH_INSTALL_TARGET}/bin | ||
|
||
chmod +x ${BOSH_INSTALL_TARGET}/bin/* |
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
set -e | ||
|
||
mkdir -p "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a conntrack/* "${BOSH_INSTALL_TARGET:?}" | ||
cp libmnl0* "${BOSH_INSTALL_TARGET:?}" | ||
|
||
CONNTRACK_PACKAGE=conntrack | ||
CONNTRACK_VERSION="1.4.3" | ||
cp -a conntrack/${CONNTRACK_PACKAGE}_${CONNTRACK_VERSION}-3_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
|
||
LIBNETFILTER_PACKAGE=libnetfilter-conntrack3 | ||
LIBNETFILTER_VERSION="1.0.5" | ||
cp -a conntrack/${LIBNETFILTER_PACKAGE}_${LIBNETFILTER_VERSION}-1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
|
||
LIBMN_PACKABE=libmnl0 | ||
LIBMN_VERSION="1.0.3" | ||
cp -a ${LIBMN_PACKAGE}_${LIBMN_VERSION}-5_amd64.deb "${BOSH_INSTALL_TARGET:?}/" |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
set -e | ||
|
||
FLANNELD_PACKAGE=flannel | ||
FLANNELD_VERSION="0.11.0" | ||
tar xvf flannel-v${FLANNELD_VERSION}-linux-amd64.tar.gz | ||
tar xvf ${FLANNEL_PACKAGE}-v${FLANNELD_VERSION}-linux-amd64.tar.gz | ||
cp -a flanneld "${BOSH_INSTALL_TARGET:?}/flanneld" | ||
chmod +x "${BOSH_INSTALL_TARGET:?}/flanneld" |
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
set -e | ||
|
||
mkdir -p "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a ipset/* "${BOSH_INSTALL_TARGET:?}" | ||
|
||
IPSET_PACKAGE=ipset | ||
IPSET_VERSION=6.20.1 | ||
LIBIPSET_PACKAGE=libipset3 | ||
LIBIPSET_VERSION=6.20.1 | ||
cp -a ipset/${IPSET_PACKAGE}_${IPSET_VERSION}-1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a ipset/${LIBIPSET_PACKAGE}_${LIBIPSET_VERSION}-1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
set -e # exit immediately if a simple command exits with a non-zero status | ||
set -u # report the usage of uninitialized variables | ||
set -eu | ||
|
||
mkdir -p $BOSH_INSTALL_TARGET/bin | ||
cp -a jq-linux64-1.6 $BOSH_INSTALL_TARGET/bin/jq | ||
|
||
JQ_PACKAGE=jq | ||
JQ_VERSION="1.6" | ||
|
||
cp -a ${JQ_PACKAGE}-linux64-${JQ_VERSION} $BOSH_INSTALL_TARGET/bin/jq/ | ||
chmod +x $BOSH_INSTALL_TARGET/bin/jq |
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 |
---|---|---|
@@ -1,4 +1,19 @@ | ||
set -e | ||
|
||
NFSCOMMON_PACKAGE="nfs-common" | ||
NFSCOMMON_VERSION="1.2.8" | ||
KEYUTILS_PACKAGE=keyutils | ||
KEYUTILS_VERSION="1.5.9" | ||
LIBEVENT_PACKAGE=libevent | ||
LIBEVENT_VERSION="2.0.21" | ||
LIBNFSIDMAP_PACKAGE=libnfsidmap2 | ||
LIBNFSIDMAP_VERSION="0.25" | ||
RPCBIND_PACKAGE=rpcbind | ||
RPCBIND_VERSION="0.2.3" | ||
|
||
mkdir -p "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a nfs-debs/* "${BOSH_INSTALL_TARGET:?}" | ||
cp -a nfs-debs/${NFSCOMMON_PACKAGE}_1:${NFSCOMMON_VERSION}-9ubuntu12.1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a nfs-debs/${KEYUTILS_PACKAGE}_${KEYUTILS_VERSION}-8ubuntu1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a nfs-debs/${LIBEVENT_PACKAGE}-2.0-5_${LIBNFSIDMAP_VERSION}-stable-2ubuntu0.16.04.1_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a nfs-debs/${LIBNFSIDMAP_PACKAGE}_${LIBNFSIDMAP_VERSION}-5_amd64.deb "${BOSH_INSTALL_TARGET:?}/" | ||
cp -a nfs-debs/${RPCBIND_PACKAGE}_${RPCBIND_VERSION}-0.2_amd64.deb "${BOSH_INSTALL_TARGET:?}/" |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
set -e # exit immediately if a simple command exits with a non-zero status | ||
set -u # report the usage of uninitialized variables | ||
set -eu | ||
|
||
mkdir -p $BOSH_INSTALL_TARGET/bin | ||
tar xzf socat-1.7.3.2.tar.gz | ||
|
||
SOCAT_PACKAGE=socat | ||
SOCAT_VERSION="1.7.3.2" | ||
|
||
tar xzf ${SOCAT_PACKAGE}-${SOCAT_VERSION}.tar.gz | ||
pushd socat-1.7.3.2 | ||
./configure | ||
make | ||
cp socat ${BOSH_INSTALL_TARGET}/bin | ||
cp -a socat ${BOSH_INSTALL_TARGET}/bin | ||
chmod 755 ${BOSH_INSTALL_TARGET}/bin/socat | ||
popd | ||
chmod +x $BOSH_INSTALL_TARGET/bin/socat |