add tango-common with tango user and group and tangorc file

This commit is contained in:
Grzegorz Kowalski 2024-03-12 19:38:05 +01:00
parent 3ae816b9dd
commit 93eadb18d6
3 changed files with 22 additions and 0 deletions

View File

@ -7,6 +7,7 @@ SRC_URI = "https://gitlab.com/tango-controls/cppTango/-/archive/${PV}/cppTango-$
S = "${WORKDIR}/cppTango-${PV}"
DEPENDS = "omniorb-native omniorb tango-idl zeromq cppzmq jpeg"
RDEPENDS:${PN} = "tango-common"
EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release"

View File

@ -0,0 +1 @@
TANGO_HOST=localhost:10000

View File

@ -0,0 +1,20 @@
SUMMARY = "Common configuration for Tango Controls"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://tangorc"
inherit allarch
TANGO_HOME ?= "/opt/tango"
TANGO_UID ?= "500"
TANGO_GID ?= "500"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM:${PN} = "-g ${TANGO_GID} tango"
USERADD_PARAM:${PN} = "-u ${TANGO_UID} -g tango -d ${TANGO_HOME} -m -N -r -s /bin/sh tango"
inherit useradd
do_install() {
install -D -m 0644 ${WORKDIR}/tangorc ${D}${sysconfdir}/tangorc
}