2015-08-19 04:50:30 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-02-11 19:48:58 +00:00
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
2015-08-19 04:50:30 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the BSD-style license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
|
|
|
function main_fedora() {
|
2015-12-14 21:34:05 +00:00
|
|
|
sudo dnf update -y
|
2015-08-19 04:50:30 +00:00
|
|
|
|
|
|
|
package texinfo
|
|
|
|
package wget
|
|
|
|
package git-all
|
|
|
|
package unzip
|
|
|
|
package xz
|
|
|
|
package xz-devel
|
|
|
|
package python-pip
|
|
|
|
package python-devel
|
|
|
|
package rpm-build
|
|
|
|
package ruby
|
|
|
|
package ruby-devel
|
|
|
|
package rubygems
|
|
|
|
package bzip2
|
|
|
|
package bzip2-devel
|
|
|
|
package openssl-devel
|
|
|
|
package readline-devel
|
|
|
|
package rpm-devel
|
|
|
|
package libblkid-devel
|
|
|
|
package gcc
|
|
|
|
package binutils
|
|
|
|
package gcc-c++
|
|
|
|
package clang
|
|
|
|
package clang-devel
|
|
|
|
|
|
|
|
set_cc clang
|
|
|
|
set_cxx clang++
|
|
|
|
|
2015-12-14 21:34:05 +00:00
|
|
|
if [[ $DISTRO -lt "22" ]]; then
|
|
|
|
install_cmake
|
|
|
|
else
|
|
|
|
package cmake
|
|
|
|
fi
|
2015-08-19 04:50:30 +00:00
|
|
|
|
|
|
|
package doxygen
|
|
|
|
package byacc
|
|
|
|
package flex
|
|
|
|
package bison
|
|
|
|
package autoconf
|
|
|
|
package automake
|
|
|
|
package libtool
|
|
|
|
|
2016-03-11 03:36:52 +00:00
|
|
|
install_boost
|
2015-12-15 00:19:37 +00:00
|
|
|
install_gflags
|
2016-03-07 09:06:02 +00:00
|
|
|
install_glog
|
2016-03-21 01:03:30 +00:00
|
|
|
install_google_benchmark
|
|
|
|
|
|
|
|
install_snappy
|
2015-08-19 04:50:30 +00:00
|
|
|
install_rocksdb
|
2016-03-21 01:03:30 +00:00
|
|
|
install_thrift
|
2015-08-19 04:50:30 +00:00
|
|
|
install_yara
|
2016-03-11 03:36:52 +00:00
|
|
|
install_asio
|
2015-08-30 08:11:45 +00:00
|
|
|
install_cppnetlib
|
2016-03-21 01:03:30 +00:00
|
|
|
install_sleuthkit
|
2015-08-19 04:50:30 +00:00
|
|
|
|
2016-03-04 20:06:42 +00:00
|
|
|
# Device mapper uses the exact version as the ABI.
|
|
|
|
# We will build and install a static version.
|
|
|
|
remove_package device-mapper-devel
|
2015-08-19 04:50:30 +00:00
|
|
|
package libgcrypt-devel
|
|
|
|
package gettext-devel
|
2015-12-14 21:34:05 +00:00
|
|
|
|
2016-03-21 01:03:30 +00:00
|
|
|
install_device_mapper
|
|
|
|
install_iptables_dev
|
2015-08-19 04:50:30 +00:00
|
|
|
install_libcryptsetup
|
|
|
|
|
|
|
|
gem_install fpm
|
2016-04-25 16:01:29 +00:00
|
|
|
|
|
|
|
install_aws_sdk
|
2015-08-19 04:50:30 +00:00
|
|
|
}
|