File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
packages/Debian/common/DEBIAN Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ tar xf check-0.15.2.tar.gz
63
63
# S2OPC:
64
64
rm -rf S2OPC
65
65
echo " Fetching S2OPC OPC UA Toolkit libraries..."
66
- git clone https://gitlab.com/systerel/S2OPC.git
66
+ git clone --depth 1 -b S2OPC_Toolkit_1.2.0 https://gitlab.com/systerel/S2OPC.git
67
+
67
68
(
68
69
cd S2OPC
69
70
cp ../scripts/s2opcua/S2OPC.patch .
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ copy_new_data () {
113
113
}
114
114
115
115
install_pip3_packages () {
116
- pip3 install --upgrade pip
117
- pip3 install -r /usr/local/fledge/python/requirements.txt
116
+ python3 -m pip install --upgrade pip
117
+ python3 -m pip install -r /usr/local/fledge/python/requirements.txt
118
118
}
119
119
120
120
# Call Fledge package update script
Original file line number Diff line number Diff line change 246
246
fi
247
247
mkdir -p build; cd build; cmake ..; make)
248
248
mkdir -p " plugins/${plugin_type_install} /${plugin_install_dirname} "
249
+ if [ -f " ${GIT_ROOT} /extras_install.sh" ]; then
250
+ sed -i " s/sudo//" ${GIT_ROOT} /extras_install.sh
251
+ cp -p ${GIT_ROOT} /extras_install.sh plugins/${plugin_type_install} /${plugin_install_dirname} /extras_install.sh
252
+ fi
249
253
cp -R --preserve=links ${GIT_ROOT} /build/lib* " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
250
254
cp -R --preserve=links ${GIT_ROOT} /* .json " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
251
255
echo " Unable to find libraries in ${GIT_ROOT} /build and json config files in ${GIT_ROOT} , cannot proceed..."
Original file line number Diff line number Diff line change @@ -34,15 +34,23 @@ set_files_ownership () {
34
34
set_files_ownership
35
35
36
36
# Install Prerequisite; if any
37
+
38
+ # For Python based plugins
37
39
if [ -f /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh ]; then
38
40
sh /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh
39
41
fi
40
-
41
42
# Install Python pip dependencies; if any
42
43
if [ -f /usr/local/fledge/__INSTALL_DIR__/requirements.txt ]; then
43
44
pip3 install -Ir /usr/local/fledge/__INSTALL_DIR__/requirements.txt
44
45
fi
46
+
47
+ # For C based plugins
48
+ if [ -f /usr/local/fledge/__INSTALL_DIR__/extras_install.sh ]; then
49
+ ./usr/local/fledge/__INSTALL_DIR__/extras_install.sh
50
+ fi
51
+
45
52
echo __PLUGIN_NAME__ __PLUGIN_TYPE__ plugin is installed.
53
+
46
54
echo "
47
55
__PLUGIN_NOTES__
48
56
"
You can’t perform that action at this time.
0 commit comments