File tree Expand file tree Collapse file tree 6 files changed +61
-0
lines changed Expand file tree Collapse file tree 6 files changed +61
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ packages/Debian/build/
13
13
packages /RPM /build /
14
14
others /paho.mqtt.c /
15
15
others /jansson
16
+ others /lib60870
17
+ others /libiec61850
16
18
17
19
# Archived packages
18
20
plugins /archive
Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
131
131
cp -R --preserve=links /usr/local/lib/libjwt* usr/local/lib
132
132
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
133
133
fi
134
+ if [ " ${ADDITIONAL_LIB_NAME} " == " iec" ]; then
135
+ cp -R --preserve=links /usr/local/lib/liblib60870* usr/local/lib
136
+ cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib
137
+ fi
134
138
echo " Done."
135
139
136
140
# Build the package
Original file line number Diff line number Diff line change 153
153
# cp -R --preserve=links /usr/local/lib64/libjwt* usr/local/lib64
154
154
# cp -R --preserve=links /usr/local/lib64/libjansson* usr/local/lib64
155
155
# fi
156
+ if [ " ${ADDITIONAL_LIB_NAME} " == " iec" ]; then
157
+ mkdir -p usr/local/lib
158
+ cp -R --preserve=links /usr/local/lib/liblib60870* usr/local/lib
159
+ cp -R --preserve=links /usr/local/lib64/libiec61850* usr/local/lib64
160
+ fi
156
161
echo " Done."
157
162
find -L . -type f -exec echo ' /' {} \; >> ../../SPECS/others.spec
158
163
echo " Building the RPM package..."
Original file line number Diff line number Diff line change
1
+ IEC library for IEC 60870-5-101|104 and IEC 61850 based protocols in C
Original file line number Diff line number Diff line change
1
+ fledge_iec_version=1.9.2
2
+ fledge_version>=1.9
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # #-------------------------------------------------------------------------
4
+ # # Copyright (c) 2022 Dianomic Systems Inc.
5
+ # #
6
+ # # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # # you may not use this file except in compliance with the License.
8
+ # # You may obtain a copy of the License at
9
+ # #
10
+ # # http://www.apache.org/licenses/LICENSE-2.0
11
+ # #
12
+ # # Unless required by applicable law or agreed to in writing, software
13
+ # # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # # See the License for the specific language governing permissions and
16
+ # # limitations under the License.
17
+ # #--------------------------------------------------------------------------
18
+
19
+ # #
20
+ # # Author: Ashish Jabble
21
+ # #
22
+
23
+ set -e
24
+
25
+ echo " Fetching MZA lib60870 library..."
26
+ rm -rf lib60870
27
+ git clone https://github.com/mz-automation/lib60870.git
28
+ cd lib60870/lib60870-C
29
+ cd dependencies
30
+ wget https://tls.mbed.org/download/mbedtls-2.6.0-apache.tgz
31
+ tar xf mbedtls-2.6.0-apache.tgz
32
+ cd ..
33
+ mkdir build
34
+ cd build
35
+ cmake -DBUILD_TESTS=NO -DBUILD_EXAMPLES=NO ..
36
+ make
37
+ sudo make install
38
+
39
+ echo " Fetching MZA libiec61850 library..."
40
+ rm -rf libiec61850
41
+ git clone https://github.com/mz-automation/libiec61850.git
42
+ cd libiec61850
43
+ mkdir build
44
+ cd build
45
+ cmake -DBUILD_TESTS=NO -DBUILD_EXAMPLES=NO ..
46
+ make
47
+ sudo make install
You can’t perform that action at this time.
0 commit comments