Brad Bishop | 0a81db0 | 2016-08-30 00:46:40 -0400 | [diff] [blame] | 1 | SUMMARY = "Phosphor DBUS to REST WSGI Application" |
| 2 | DESCRIPTION = "Phosphor DBUS to REST WSGI Application." |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 3 | PR = "r1" |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 4 | |
| 5 | inherit allarch |
| 6 | inherit obmc-phosphor-systemd |
| 7 | inherit setuptools |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 8 | inherit obmc-phosphor-discovery-service |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 9 | |
Patrick Williams | 969c16d | 2017-03-01 21:25:36 -0600 | [diff] [blame] | 10 | require phosphor-rest.inc |
| 11 | |
Dhruvaraj Subhashchandran | 9737db8 | 2017-10-12 04:43:17 -0500 | [diff] [blame] | 12 | RRECOMMENDS_${PN} += " \ |
| 13 | virtual-obmc-wsgihost \ |
| 14 | python-gevent-websocket \ |
| 15 | " |
Brad Bishop | 0a81db0 | 2016-08-30 00:46:40 -0400 | [diff] [blame] | 16 | |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 17 | RDEPENDS_${PN} += " \ |
| 18 | python-xml \ |
| 19 | python-dbus \ |
Brad Bishop | 1122eb0 | 2016-10-05 20:10:23 -0400 | [diff] [blame] | 20 | phosphor-mapper \ |
Brad Bishop | f668817 | 2016-04-15 09:41:54 -0400 | [diff] [blame] | 21 | python-bottle \ |
| 22 | python-spwd \ |
Brad Bishop | 1b4e447 | 2016-08-29 21:47:04 -0400 | [diff] [blame] | 23 | pyphosphor-utils \ |
| 24 | pyphosphor-dbus \ |
Brad Bishop | 0a81db0 | 2016-08-30 00:46:40 -0400 | [diff] [blame] | 25 | pyphosphor-wsgi-apps-ns \ |
Tom Joseph | 65c5362 | 2018-09-03 22:08:21 -0500 | [diff] [blame] | 26 | pamela \ |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 27 | " |
Nagaraju Goruganti | 8753f64 | 2018-06-01 00:19:42 -0500 | [diff] [blame] | 28 | SRC_URI += "file://url_config.json \ |
| 29 | " |
| 30 | |
| 31 | FILES_${PN}_append = " ${datadir}/rest-dbus/url_config.json" |
Brad Bishop | 5da8564 | 2015-10-27 17:13:26 -0400 | [diff] [blame] | 32 | |
Brad Bishop | 0a81db0 | 2016-08-30 00:46:40 -0400 | [diff] [blame] | 33 | S = "${WORKDIR}/git/module" |
| 34 | SYSTEMD_SERVICE_${PN} = "" |
| 35 | SYSTEMD_OVERRIDE_${PN} += "rest-dbus.conf:obmc-mapper.target.d/rest-dbus.conf" |
| 36 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/wsgi_app" |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 37 | REGISTERED_SERVICES_${PN} += "phosphor_rest:tcp:443" |
Nagaraju Goruganti | 8753f64 | 2018-06-01 00:19:42 -0500 | [diff] [blame] | 38 | |
| 39 | do_install_append(){ |
| 40 | install -d ${D}${datadir}/rest-dbus |
| 41 | install -m 0644 -D ${WORKDIR}/url_config.json \ |
| 42 | ${D}${datadir}/rest-dbus/url_config.json |
| 43 | } |