Junxiao Shi | 48ada89 | 2021-11-04 09:02:21 -0600 | [diff] [blame] | 1 | # -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | # |
| 3 | # Copyright (C) 2015-2021, The University of Memphis, |
| 4 | # Arizona Board of Regents, |
| 5 | # Regents of the University of California. |
| 6 | # |
| 7 | # This file is part of Mini-NDN. |
| 8 | # See AUTHORS.md for a complete list of Mini-NDN authors and contributors. |
| 9 | # |
| 10 | # Mini-NDN is free software: you can redistribute it and/or modify |
| 11 | # it under the terms of the GNU General Public License as published by |
| 12 | # the Free Software Foundation, either version 3 of the License, or |
| 13 | # (at your option) any later version. |
| 14 | # |
| 15 | # Mini-NDN is distributed in the hope that it will be useful, |
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | # GNU General Public License for more details. |
| 19 | # |
| 20 | # You should have received a copy of the GNU General Public License |
| 21 | # along with Mini-NDN, e.g., in COPYING.md file. |
| 22 | # If not, see <http://www.gnu.org/licenses/>. |
| 23 | |
| 24 | # APT packages, written in alphabetical order. |
| 25 | APT_PKGS=( |
| 26 | build-essential |
| 27 | ca-certificates |
| 28 | git |
| 29 | libboost-atomic-dev |
| 30 | libboost-chrono-dev |
| 31 | libboost-date-time-dev |
| 32 | libboost-filesystem-dev |
| 33 | libboost-iostreams-dev |
| 34 | libboost-log-dev |
| 35 | libboost-program-options-dev |
| 36 | libboost-regex-dev |
| 37 | libboost-stacktrace-dev |
| 38 | libboost-system-dev |
| 39 | libboost-thread-dev |
| 40 | libpcap-dev |
| 41 | libsqlite3-dev |
| 42 | libssl-dev |
| 43 | libsystemd-dev |
| 44 | pkg-config |
| 45 | python-is-python3 |
| 46 | python3-pip |
| 47 | software-properties-common |
| 48 | tshark |
| 49 | ) |
| 50 | |
| 51 | if [[ $NO_WIFI -ne 1 ]]; then |
| 52 | APT_PKGS+=(network-manager) |
| 53 | fi |
| 54 | |
| 55 | install_pkgs() { |
| 56 | $SUDO apt-get update |
| 57 | $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "${APT_PKGS[@]}" |
| 58 | if [[ $PPA_AVAIL -eq 1 ]] && [[ ${#PPA_PKGS[@]} -gt 0 ]]; then |
| 59 | $SUDO add-apt-repository -y -u ppa:named-data/ppa |
| 60 | $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "${PPA_PKGS[@]}" |
| 61 | fi |
| 62 | } |
| 63 | |
| 64 | prepare_ld() { |
| 65 | return |
| 66 | } |