-
Notifications
You must be signed in to change notification settings - Fork 0
/
packagify.sh
59 lines (49 loc) · 1.48 KB
/
packagify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# Exploit previous git install to bootstrap, even though we will reinstall it
#cd /
#git clone https://github.com/Cambridge-AdvancedOS/advopsys-packages.git
#cd advopsys-packages
#cd ..
# Blow away the existing package system, which isn't properly registered
rm -Rf /usr/local/*
rm -Rf /var/db/pkg/*
export ASSUME_ALWAYS_YES=yes
pkg
mkdir -p /data
cd packages/All
pkg add \
bash-5.1.12.pkg \
calc-2.14.0.13.pkg \
git-2.34.1.pkg \
hs-pandoc-2.14.2~00e69f6e58.pkg \
rsync-3.2.3_1.pkg \
sudo-1.9.8p2.pkg \
tmux-3.2a.pkg \
py38-anytree-l41-2.8.0.pkg \
py38-flamegraph-l41-20230113.pkg \
py38-ipympl-0.7.0.pkg \
py38-ipywidgets-7.5.1_3.pkg \
py38-jupyterlab-3.1.14.pkg \
py38-jupyterlab-widgets-1.0.2.pkg \
py38-matplotlib-3.4.3.pkg \
py38-numpy-1.20.3,1.pkg \
py38-pandas-1.2.5,1.pkg \
py38-pypandoc-1.5~d4115f2bbe.pkg \
py38-python-dtrace-0.0.15.pkg \
py38-graphviz-0.10.1.pkg \
npm-6.14.8_1.pkg
# Concatenate texlive-texmf package chunks.
truncate -s 0 texlive-texmf-20210325.pkg
for _file in $(ls texlive-texmf-20210325.pkg.split | sort); do
cat texlive-texmf-20210325.pkg.split/${_file} >>texlive-texmf-20210325.pkg
done
# Ignore the OS version for packages we manually built using a FreeBSD
# 13.1-RELEASE jail.
env IGNORE_OSVERSION=yes pkg add \
tex-xetex-0.99993.pkg
cd ../..
# Unclear why this is required, but it appears to be.
# jupyter-lab build
#cd /root
#ssh-keygen -f /root/.ssh/id_rsa -N ''
#cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys