Vishwanatha Subbanna | 0ea6f63 | 2017-10-18 15:47:54 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor User Manager Daemon" |
| 2 | DESCRIPTION = "Daemon that does user management" |
| 3 | HOMEPAGE = "http://github.com/openbmc/phosphor-user-manager" |
Vishwanatha Subbanna | 0ea6f63 | 2017-10-18 15:47:54 +0530 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Vishwanatha Subbanna | 0ea6f63 | 2017-10-18 15:47:54 +0530 | [diff] [blame] | 6 | DEPENDS += "sdbusplus" |
| 7 | DEPENDS += "phosphor-logging" |
| 8 | DEPENDS += "phosphor-dbus-interfaces" |
Tom Joseph | 926556d | 2018-07-10 12:23:06 -0500 | [diff] [blame] | 9 | DEPENDS += "boost" |
Andrew Geissler | 1de95de | 2018-10-09 04:10:28 +0000 | [diff] [blame] | 10 | DEPENDS += "nss-pam-ldapd" |
Brad Bishop | 44f3cce | 2019-03-22 23:41:42 -0400 | [diff] [blame] | 11 | DEPENDS += "systemd" |
Andrew Geissler | 0a3cdb9 | 2023-04-18 06:40:28 -0500 | [diff] [blame] | 12 | SRCREV = "6ceeb4c08ec858182a847634f976be0c45e76e6e" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 13 | PV = "1.0+git${SRCPV}" |
| 14 | PR = "r1" |
| 15 | |
Patrick Williams | bccaff3 | 2023-04-14 11:24:47 -0500 | [diff] [blame] | 16 | SRC_URI = "git://github.com/openbmc/phosphor-user-manager;branch=master;protocol=https" |
Ninad Palsule | 34d2144 | 2023-03-09 10:20:38 -0600 | [diff] [blame^] | 17 | SRC_URI += "file://upgrade_hostconsole_group.sh" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 18 | |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
| 21 | inherit meson pkgconfig |
| 22 | inherit obmc-phosphor-dbus-service |
| 23 | inherit useradd |
Vishwanatha Subbanna | 0ea6f63 | 2017-10-18 15:47:54 +0530 | [diff] [blame] | 24 | |
Nan Zhou | 175f502 | 2022-08-29 17:43:49 +0000 | [diff] [blame] | 25 | EXTRA_OEMESON = "-Dtests=disabled" |
| 26 | |
Ninad Palsule | 34d2144 | 2023-03-09 10:20:38 -0600 | [diff] [blame^] | 27 | do_install:append() { |
| 28 | install -d ${D}${libexecdir} |
| 29 | install -m 0755 ${WORKDIR}/upgrade_hostconsole_group.sh ${D}${libexecdir}/upgrade_hostconsole_group.sh |
| 30 | } |
| 31 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 32 | FILES:phosphor-ldap += " \ |
Patrick Venture | d8014ce | 2019-04-04 10:03:09 -0700 | [diff] [blame] | 33 | ${bindir}/phosphor-ldap-conf \ |
Nagaraju Goruganti | df045f1 | 2018-09-03 21:56:42 -0500 | [diff] [blame] | 34 | " |
Anton D. Kachalov | 31ecbfb | 2021-04-21 19:23:55 +0200 | [diff] [blame] | 35 | FILES:${PN} += " \ |
Anton Blanchard | 397b2b1 | 2022-08-02 23:37:41 -0600 | [diff] [blame] | 36 | ${systemd_unitdir} \ |
Andrew Geissler | 30cd382 | 2021-10-15 01:41:20 +0000 | [diff] [blame] | 37 | ${datadir}/dbus-1 \ |
Anton D. Kachalov | 31ecbfb | 2021-04-21 19:23:55 +0200 | [diff] [blame] | 38 | ${datadir}/phosphor-certificate-manager \ |
| 39 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 40 | |
| 41 | USERADD_PACKAGES = "${PN} phosphor-ldap" |
| 42 | |
| 43 | PACKAGE_BEFORE_PN = "phosphor-ldap" |
| 44 | DBUS_PACKAGES = "${USERADD_PACKAGES}" |
| 45 | # add groups needed for privilege maintenance |
| 46 | GROUPADD_PARAM:${PN} = "priv-admin; priv-operator; priv-user " |
| 47 | GROUPADD_PARAM:phosphor-ldap = "priv-admin; priv-operator; priv-user " |
| 48 | DBUS_SERVICE:${PN} += "xyz.openbmc_project.User.Manager.service" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 49 | DBUS_SERVICE:phosphor-ldap = " \ |
Tom Joseph | 4227626 | 2018-10-07 05:51:04 -0500 | [diff] [blame] | 50 | xyz.openbmc_project.Ldap.Config.service \ |
Tom Joseph | 4227626 | 2018-10-07 05:51:04 -0500 | [diff] [blame] | 51 | " |
Ninad Palsule | 34d2144 | 2023-03-09 10:20:38 -0600 | [diff] [blame^] | 52 | |
| 53 | EXTRA_USERS_PARAMS += " \ |
| 54 | groupadd hostconsole; \ |
| 55 | " |
| 56 | |
| 57 | EXTRA_USERS_PARAMS += " \ |
| 58 | usermod --append --groups hostconsole root; \ |
| 59 | " |