add tango-common with tango user and group and tangorc file
This commit is contained in:
parent
3ae816b9dd
commit
93eadb18d6
@ -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"
|
||||
|
||||
|
||||
1
recipes-support/tango-common/tango-common/tangorc
Normal file
1
recipes-support/tango-common/tango-common/tangorc
Normal file
@ -0,0 +1 @@
|
||||
TANGO_HOST=localhost:10000
|
||||
20
recipes-support/tango-common/tango-common_1.0.bb
Normal file
20
recipes-support/tango-common/tango-common_1.0.bb
Normal 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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user