summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-10-18 13:17:54 +0300
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-10-24 09:48:00 +0300
commit0ea6f63c6de7a750700878d659bb05312c7cd376 (patch)
treed2a69115bbe4f266272830920fc49d2a31d15c9e
parentdb5a6c4241133b754ba21d7fd80cf1089852c06a (diff)
downloadopenbmc-0ea6f63c6de7a750700878d659bb05312c7cd376.tar.xz
Add recipe for phosphor-user-manager
Removed the obmc-phosphor-user and put the new one Also, removed the usage of PREFERRED_PROVIDER and replaced by VIRTUAL_RUNTIME for this feature Change-Id: I6f0825f8d51eecb9c666a95d9fd702a8ea8bb08b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
-rw-r--r--meta-phosphor/classes/obmc-phosphor-image.bbclass2
-rw-r--r--meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb6
-rw-r--r--meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user.bb37
-rw-r--r--meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager.bb23
-rw-r--r--meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.User.Manager.service (renamed from meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user/org.openbmc.UserManager.service)5
-rw-r--r--meta-phosphor/conf/distro/include/phosphor-defaults.inc7
6 files changed, 38 insertions, 42 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass
index 29694e7ab..bad16bafd 100644
--- a/meta-phosphor/classes/obmc-phosphor-image.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass
@@ -48,10 +48,10 @@ FEATURE_PACKAGES_obmc-sensors ?= "packagegroup-obmc-apps-sensors"
FEATURE_PACKAGES_obmc-settings-mgmt ?= "${@df_enabled(d, 'obmc-settings-mgmt', 'virtual-obmc-settings-mgmt')}"
FEATURE_PACKAGES_obmc-software ?= "packagegroup-obmc-apps-software"
FEATURE_PACKAGES_obmc-system-mgmt ?= "${@df_enabled(d, 'obmc-phosphor-system-mgmt', 'virtual-obmc-system-mgmt')}"
-FEATURE_PACKAGES_obmc-user-mgmt ?= "${@df_enabled(d, 'obmc-phosphor-user-mgmt', 'virtual-obmc-user-mgmt')}"
FEATURE_PACKAGES_obmc-debug-collector ?= "packagegroup-obmc-apps-debug-collector"
FEATURE_PACKAGES_obmc-settings ?= "packagegroup-obmc-apps-settings"
FEATURE_PACKAGES_obmc-network-mgmt ?= "packagegroup-obmc-apps-network"
+FEATURE_PACKAGES_obmc-user-mgmt ?= "packagegroup-obmc-apps-user-mgmt"
# Install entire Phosphor application stack by default
IMAGE_FEATURES += " \
diff --git a/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb b/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb
index f7a0df004..50f906565 100644
--- a/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb
+++ b/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb
@@ -21,6 +21,7 @@ PACKAGES = " \
${PN}-debug-collector \
${PN}-settings \
${PN}-network \
+ ${PN}-user-mgmt \
"
SUMMARY_${PN}-bmc-state-mgmt = "BMC state management"
@@ -104,3 +105,8 @@ SUMMARY_${PN}-network = "BMC Network Manager"
RDEPENDS_${PN}-network = " \
${VIRTUAL-RUNTIME_obmc-network-manager} \
"
+
+SUMMARY_${PN}-user-mgmt = "User management applications"
+RDEPENDS_${PN}-user-mgmt = " \
+ ${VIRTUAL-RUNTIME_obmc-user-mgmt} \
+ "
diff --git a/meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user.bb b/meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user.bb
deleted file mode 100644
index 83b702430..000000000
--- a/meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user.bb
+++ /dev/null
@@ -1,37 +0,0 @@
-SUMMARY = "User DBUS object"
-DESCRIPTION = "User DBUS object"
-HOMEPAGE = "http://github.com/openbmc/phosphor-networkd"
-PR = "r1"
-
-inherit allarch
-inherit obmc-phosphor-license
-inherit obmc-phosphor-dbus-service
-inherit phosphor-networkd-rev
-
-PROVIDES += "virtual/obmc-user-mgmt"
-RPROVIDES_${PN} += "virtual-obmc-user-mgmt"
-
-RDEPENDS_${PN} += " \
- python-dbus \
- python-pygobject \
- python-subprocess \
- python-pexpect"
-
-S = "${WORKDIR}/git"
-INSTALL_NAME = "userman.py"
-
-DBUS_SERVICE_${PN} += "org.openbmc.UserManager.service"
-
-# Since base_do_compile finds a makefile (from networkd) it tries to
-# compile. Short-circuit that because we just need to copy a python
-# file in this package.
-do_compile() {
- :
-}
-
-do_install_append() {
-echo "***installing $INSTALL_NAME"
- install -d ${D}/${sbindir}
- install ${S}/${INSTALL_NAME} ${D}/${sbindir}/obmc-phosphor-userd
-}
-
diff --git a/meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager.bb b/meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager.bb
new file mode 100644
index 000000000..390c51a0b
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Phosphor User Manager Daemon"
+DESCRIPTION = "Daemon that does user management"
+HOMEPAGE = "http://github.com/openbmc/phosphor-user-manager"
+PR = "r1"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+inherit autotools pkgconfig
+inherit obmc-phosphor-dbus-service
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "sdbusplus"
+DEPENDS += "phosphor-logging"
+DEPENDS += "phosphor-dbus-interfaces"
+RDEPENDS_${PN} += "libsystemd"
+RDEPENDS_${PN} += "phosphor-logging"
+
+
+DBUS_SERVICE_${PN} += "xyz.openbmc_project.User.Manager.service"
+
+SRC_URI += "git://github.com/openbmc/phosphor-user-manager"
+SRCREV = "035a96983cdf8a11a1c2380106c11c94cb8418b2"
+S = "${WORKDIR}/git"
diff --git a/meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user/org.openbmc.UserManager.service b/meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.User.Manager.service
index 64408b7d4..f8926e77c 100644
--- a/meta-phosphor/common/recipes-phosphor/users/obmc-phosphor-user/org.openbmc.UserManager.service
+++ b/meta-phosphor/common/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.User.Manager.service
@@ -2,9 +2,8 @@
Description=Phosphor User Manager
[Service]
-ExecStart=/usr/bin/env obmc-phosphor-userd
-SyslogIdentifier=obmc-phosphor-userd
-Environment="PYTHONUNBUFFERED=1"
+ExecStart=/usr/bin/env phosphor-user-manager
+SyslogIdentifier=phosphor-user-manager
Restart=always
Type=dbus
BusName={BUSNAME}
diff --git a/meta-phosphor/conf/distro/include/phosphor-defaults.inc b/meta-phosphor/conf/distro/include/phosphor-defaults.inc
index 5a5fe3ab7..431ba23dd 100644
--- a/meta-phosphor/conf/distro/include/phosphor-defaults.inc
+++ b/meta-phosphor/conf/distro/include/phosphor-defaults.inc
@@ -108,7 +108,6 @@ VIRTUAL-RUNTIME_obmc-dump-monitor ?= "phosphor-debug-collector-monitor"
PREFERRED_PROVIDER_virtual/obmc-settings-mgmt ?= "phosphor-settings"
PREFERRED_PROVIDER_virtual/obmc-system-mgmt ?= "obmc-phosphor-sysd"
-PREFERRED_PROVIDER_virtual/obmc-user-mgmt ?= "obmc-phosphor-user"
PREFERRED_PROVIDER_virtual/obmc-wsgihost ?= "phosphor-gevent"
# phosphor-hwmon-config
@@ -216,5 +215,11 @@ PREFERRED_PROVIDER_virtual/obmc-gpio-monitor ?= "phosphor-gpio-monitor"
# the timeout if needed.
PREFERRED_PROVIDER_virtual/obmc-watchdog ?= "phosphor-watchdog"
+# obmc-user-mgmt
+#
+# Provides an implementation of xyz.openbmc_project.User.Manager catering
+# to user management
+VIRTUAL-RUNTIME_obmc-user-mgmt ?= "phosphor-user-manager"
+
OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project"
OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project"