This repository was archived by the owner on Jan 17, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +92
-8
lines changed
packages/Debian/arm64/DEBIAN Expand file tree Collapse file tree 7 files changed +92
-8
lines changed Original file line number Diff line number Diff line change
1
+ FogLAMP South PT100 plugin for Raspberry PI
Original file line number Diff line number Diff line change 186
186
same "printed page" as the copyright notice for easier
187
187
identification within third-party archives.
188
188
189
- Copyright 2018 Dianomic Systems
189
+ Copyright 2018 Dianomic Systems Inc
190
190
191
191
Licensed under the Apache License, Version 2.0 (the "License");
192
192
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change
1
+ # A set of variables that define how we package this repository
2
+ #
3
+ plugin_name=pt100
4
+ plugin_type=south
5
+ plugin_install_dirname=${plugin_name}
6
+
7
+ # Now build up the runtime requirements list. This has 3 components
8
+ # 1. Generic packages we depend on in all architectures and package managers
9
+ # 2. Architecture specific packages we depend on
10
+ # 3. Package manager specific packages we depend on
11
+ requirements="foglamp,python3-rpi.gpio"
12
+
13
+ case "$arch" in
14
+ x86_64)
15
+ ;;
16
+ armhf)
17
+ ;;
18
+ aarch64)
19
+ ;;
20
+ esac
21
+ case "$package_manager" in
22
+ deb)
23
+ if [ "$arch" != "armhf" ]; then
24
+ echo "Deb Package building for ${plugin_name} is only supported on armhf architecture!!"
25
+ exit 0
26
+ fi
27
+ ;;
28
+ rpm)
29
+ echo "RPM Package building for ${plugin_name} is not supported on $arch architecture!!"
30
+ exit 0
31
+ ;;
32
+ esac
Original file line number Diff line number Diff line change 1
- foglamp_south_pt100_version=1.5.2
2
- foglamp_version>=1.5
1
+ foglamp_south_pt100_version=1.6.0
2
+ foglamp_version>=1.6
Original file line number Diff line number Diff line change 56
56
esac
57
57
done
58
58
59
- if [ " $( dpkg --print-architecture) " != " armhf" ]; then
60
- echo " Package building is only supported on armhf architecture!!"
61
- exit 0
62
- fi
59
+ architecture=" $( dpkg --print-architecture) "
60
+ case " ${architecture} " in
61
+ armhf)
62
+ ;;
63
+ arm64)
64
+ ;;
65
+ * )
66
+ echo " Package building is only supported on arm architectures!!"
67
+ exit 0
68
+ ;;
69
+ esac
63
70
64
- architecture=" armhf"
65
71
version=` cat ${GIT_ROOT} /VERSION.south.pt100 | tr -d ' ' | grep ' foglamp_south_pt100_version=' | head -1 | sed -e ' s/\(.*\)=\(.*\)/\2/g' `
66
72
foglamp_version=` cat ${GIT_ROOT} /VERSION.south.pt100 | tr -d ' ' | grep ' foglamp_version' | head -1 | sed -e ' s/\(.*\)version\(.*\)/\2/g' `
67
73
BUILD_ROOT=" ${GIT_ROOT} /packages/build"
Original file line number Diff line number Diff line change
1
+ Package: foglamp-south-pt100
2
+ Version: 0.0
3
+ Section: devel
4
+ Priority: optional
5
+ Architecture: arm64
6
+ Depends: foglamp,python3-rpi.gpio
7
+ Conflicts:
8
+ Maintainer: Dianomic Systems, Inc. <info@dianomic.com>
9
+ Homepage: http://www.dianomic.com
10
+ Description: South plugin for the PT100 on a Raspberry PI
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # #--------------------------------------------------------------------
4
+ # # Copyright (c) 2019 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
+ # #
21
+ # # @postinst DEBIAN/postinst
22
+ # # This script is used to execute post installation tasks.
23
+ # #
24
+ # # Author: Mark Riddoch
25
+ # #
26
+ # #--------------------------------------------------------------------
27
+
28
+ set -e
29
+
30
+ set_files_ownership () {
31
+ chown -R root:root /usr/local/foglamp/python/foglamp/plugins/south/pt100
32
+ }
33
+
34
+ set_files_ownership
35
+ echo " PT100 plugin is now installed."
You can’t perform that action at this time.
0 commit comments