Select Git revision
python3-pypcc_git.bb

Hannes Feldt authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
python3-pypcc_git.bb 2.25 KiB
SUMMARY = "LOFAR 2.0 Hardware Translator: Monitor and control devices via OPC-UA"
DESCRIPTION = "LOFAR 2.0 Hardware Translator running on CCD and APSPU to monitor and control I2C devices via OPC-UA."
HOMEPAGE = "https://git.astron.nl/lofar2.0/pypcc"
BUGTRACKER = "https://git.astron.nl/lofar2.0/pypcc/-/issues"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e69695c29b07eeb2a832d4a7e1f1e86b"
BB_STRICT_CHECKSUM = "0"
# http checkout not working atm. rev should be removed
#SRCREV = "${AUTOREV}"
#PV = "0.0.1+git${SRCPV}"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI = " \
git://git.astron.nl/lofar2.0/pypcc.git;branch=master;rev=ad8032f74f82d402287b3896cea5a6635f39d2e8 \
file://6483a22a6810c5f47e7b50d44fa77c3918546670.patch \
file://0001-Add-systemd-requirements.patch \
"
S = "${WORKDIR}/git"
FILES:${PN} += "\
${systemd_unitdir}/system/*.service \
${systemd_unitdir}/system/multi-user.target.wants/pitr.service \
"
DEPENDS += "python3-setuptools-scm-native"
inherit setuptools3_legacy systemd
RDEPENDS:${PN} += "\
initscripts \
bash \
rpi-gpio i2c-tools \
python3 \
python3-smbus \
python3-smbus2 \
python3-numpy \
python3-pyyaml \
python3-asyncua \
python3-pylibi2c \
python3-recordclass \
python3-logstash-async \
"
#SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE:${PN} = "\
pitr.service \
recvtr.service \
apscttr.service \
apsputr.service \
unb2tr.service \
ccdtr.service \
"
do_package_qa() {
}
do_install:append () {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${S}/bin/pitr.service ${D}${systemd_unitdir}/system/pitr.service
install -m 0644 ${S}/bin/recvtr.service ${D}${systemd_unitdir}/system/recvtr.service
install -m 0644 ${S}/bin/apscttr.service ${D}${systemd_unitdir}/system/apscttr.service
install -m 0644 ${S}/bin/apsputr.service ${D}${systemd_unitdir}/system/apsputr.service
install -m 0644 ${S}/bin/unb2tr.service ${D}${systemd_unitdir}/system/unb2tr.service
install -m 0644 ${S}/bin/ccdtr.service ${D}${systemd_unitdir}/system/ccdtr.service
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants
ln -sf ../pitr.service ${D}${systemd_unitdir}/system/multi-user.target.wants/pitr.service
}