Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Commit 75c3874

Browse files
authored
Merge pull request #19 from foglamp/1.6.0RC
1.6.0RC to master
2 parents bdad22c + 9e1198d commit 75c3874

File tree

7 files changed

+92
-8
lines changed

7 files changed

+92
-8
lines changed

Description

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FogLAMP South PT100 plugin for Raspberry PI

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2018 Dianomic Systems
189+
Copyright 2018 Dianomic Systems Inc
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Package

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

VERSION.south.pt100

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
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

make_deb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,18 @@ do
5656
esac
5757
done
5858

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
6370

64-
architecture="armhf"
6571
version=`cat ${GIT_ROOT}/VERSION.south.pt100 | tr -d ' ' | grep 'foglamp_south_pt100_version=' | head -1 | sed -e 's/\(.*\)=\(.*\)/\2/g'`
6672
foglamp_version=`cat ${GIT_ROOT}/VERSION.south.pt100 | tr -d ' ' | grep 'foglamp_version' | head -1 | sed -e 's/\(.*\)version\(.*\)/\2/g'`
6773
BUILD_ROOT="${GIT_ROOT}/packages/build"

packages/Debian/arm64/DEBIAN/control

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

packages/Debian/arm64/DEBIAN/postinst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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."

0 commit comments

Comments
 (0)