Remove various provision files (#2406)

This commit is contained in:
Teddy Reed 2016-08-24 13:40:35 +01:00 committed by GitHub
parent a14961d868
commit 84e65d1141
6 changed files with 5 additions and 86 deletions

View File

@ -12,10 +12,7 @@ set -e
# Helpful defines for the provisioning process. # Helpful defines for the provisioning process.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR="$SCRIPT_DIR/../build" BUILD_DIR="$SCRIPT_DIR/../build"
WORKING_DIR="/tmp/osquery-provisioning" # no longer needed
FILES_DIR="$SCRIPT_DIR/provision/files" # maybe needed
FORMULA_DIR="$SCRIPT_DIR/provision/formula" FORMULA_DIR="$SCRIPT_DIR/provision/formula"
DEPS_URL=https://osquery-packages.s3.amazonaws.com/deps # no longer needed
HOMEBREW_REPO="https://github.com/Homebrew/brew" HOMEBREW_REPO="https://github.com/Homebrew/brew"
LINUXBREW_REPO="https://github.com/Linuxbrew/brew" LINUXBREW_REPO="https://github.com/Linuxbrew/brew"
@ -54,7 +51,6 @@ function main() {
fi fi
# Setup the local ./build/DISTRO cmake build directory. # Setup the local ./build/DISTRO cmake build directory.
mkdir -p "$WORKING_DIR"
if [[ ! -z "$SUDO_USER" ]]; then if [[ ! -z "$SUDO_USER" ]]; then
echo "chown -h $SUDO_USER $BUILD_DIR/*" echo "chown -h $SUDO_USER $BUILD_DIR/*"
chown -h $SUDO_USER:$SUDO_GID "$BUILD_DIR" || true chown -h $SUDO_USER:$SUDO_GID "$BUILD_DIR" || true

View File

@ -1,30 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.6 (GNU/Linux)
mQGiBEXopTIRBACZDBMOoFOakAjaxw1LXjeSvh/kmE35fU1rXfM7T0AV31NATCLF
l5CQiNDA4oWreDThg2Bf6+LIVTsGQb1V+XXuLak4Em5yTYwMTVB//4/nMxQEbpl/
QB2XwlJ7EQ0vW+ki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D1
axmN45q/7h1NYRp5GQL2ZsoV4g9U2gMdzHOFtZCER6PP9ErVlfJpgBUCdSL93V4H
Sgpkk7znmTOklbCM6l/G/A6q4sCRqfzHwVSTiruyTBiU9lfROsAl8fjIq2OzWJ2T
P9sadBe1llUYaow7txYSUxssW+89avct35gIyrBbof5M+CBXyAOUaSWmpM2eub24
0qbqiSr/Y6Om0t6vSzR8gRk7g+1H6IE0Tt1IJCvCAMimiE8EGBECAA8FAkXopTYC
GwwFCRLMAwAACgkQEZzANiF1IfZQYgCgiZHCv4xb+sTHCn/otc1Ovvi/OgMAnRXY
bbsLFWOfmzAnNIGvFRWy+YHi
=MMNL
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1,5 +0,0 @@
[testing-devtools-2-centos-$releasever]
name=testing 2 devtools for CentOS $releasever
baseurl=http://people.centos.org/tru/devtools-2/$releasever/$basearch/RPMS
gpgcheck=0

View File

@ -1,26 +0,0 @@
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

View File

@ -1,10 +0,0 @@
[devtoolset]
Name=Scientific Linux devtoolset - $basearch
baseurl=http://ftp.scientificlinux.org/linux/scientific/6x/external_products/devtoolset/$basearch/
http://ftp1.scientificlinux.org/linux/scientific/6x/external_products/devtoolset/$basearch/
http://ftp2.scientificlinux.org/linux/scientific/6x/external_products/devtoolset/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6

View File

@ -20,16 +20,8 @@ function setup_brew() {
DUPES_COMMIT=$HOMEBREW_DUPES DUPES_COMMIT=$HOMEBREW_DUPES
fi fi
# Check if DEPS directory exists.
DEPS="$1"
if [[ ! -d "$DEPS" ]]; then
log "the build directory: $DEPS does not exist"
sudo mkdir "$DEPS"
sudo chown $USER "$DEPS"
fi
# Checkout new brew in local deps dir # Checkout new brew in local deps dir
FORMULA_TAP="$DEPS/Library/Taps/osquery/homebrew-osquery-local" DEPS="$1"
if [[ ! -d "$DEPS/.git" ]]; then if [[ ! -d "$DEPS/.git" ]]; then
log "setting up new brew in $DEPS" log "setting up new brew in $DEPS"
git clone $BREW_REPO "$DEPS" git clone $BREW_REPO "$DEPS"
@ -44,6 +36,8 @@ function setup_brew() {
# Always update the location of the local tap link. # Always update the location of the local tap link.
log "refreshing local tap: homebrew-osquery-local" log "refreshing local tap: homebrew-osquery-local"
mkdir -p "$DEPS/Library/Taps/osquery/" mkdir -p "$DEPS/Library/Taps/osquery/"
FORMULA_TAP="$DEPS/Library/Taps/osquery/homebrew-osquery-local"
if [[ ! -e "$FORMULA_TAP" ]]; then if [[ ! -e "$FORMULA_TAP" ]]; then
ln -sf "$FORMULA_DIR" "$FORMULA_TAP" ln -sf "$FORMULA_DIR" "$FORMULA_TAP"
fi fi
@ -144,13 +138,13 @@ function brew_internal() {
export HOMEBREW_OPTIMIZATION_LEVEL=-Os export HOMEBREW_OPTIMIZATION_LEVEL=-Os
if [[ ! -z "$OSQUERY_BUILD_BOTTLES" && ! "$TYPE" = "upstream" ]]; then if [[ ! -z "$OSQUERY_BUILD_BOTTLES" && ! "$TYPE" = "upstream" ]]; then
$BREW bottle --skip-relocation "${FORMULA_TAP}/${TOOL}.rb" $BREW bottle --skip-relocation "${FORMULA}"
elif [[ "${INSTALLED}" = "NAN" || "${INSTALLED}" = "None" ]]; then elif [[ "${INSTALLED}" = "NAN" || "${INSTALLED}" = "None" ]]; then
log "brew package $TOOL installing new version: ${STABLE}" log "brew package $TOOL installing new version: ${STABLE}"
$BREW install $ARGS "${FORMULA}" $BREW install $ARGS "${FORMULA}"
elif [[ ! "${INSTALLED}" = "${STABLE}" || "${FROM_BOTTLE}" = "true" ]]; then elif [[ ! "${INSTALLED}" = "${STABLE}" || "${FROM_BOTTLE}" = "true" ]]; then
log "brew package $TOOL upgrading to new version: ${STABLE}" log "brew package $TOOL upgrading to new version: ${STABLE}"
$BREW uninstall "${FORMULA}" $BREW remove --force "${FORMULA}"
$BREW install $ARGS "${FORMULA}" $BREW install $ARGS "${FORMULA}"
else else
log "brew package $TOOL is already installed: ${STABLE}" log "brew package $TOOL is already installed: ${STABLE}"