blob: 1331e4a24e0d1e482d91c40f6de4e52a8e7c1335 [file] [log] [blame]
Brad Bishop0a81db02016-08-30 00:46:40 -04001SUMMARY = "Phosphor DBUS to REST WSGI Application"
2DESCRIPTION = "Phosphor DBUS to REST WSGI Application."
Brad Bishop5da85642015-10-27 17:13:26 -04003PR = "r1"
Patrick Venturedc10ea72018-10-03 13:18:43 -07004PV = "1.0+git${SRCPV}"
Brad Bishop5da85642015-10-27 17:13:26 -04005
6inherit allarch
7inherit obmc-phosphor-systemd
8inherit setuptools
Ratan Gupta653779c2016-10-01 14:57:15 -05009inherit obmc-phosphor-discovery-service
Brad Bishop5da85642015-10-27 17:13:26 -040010
Patrick Williams969c16d2017-03-01 21:25:36 -060011require phosphor-rest.inc
12
Dhruvaraj Subhashchandran9737db82017-10-12 04:43:17 -050013RRECOMMENDS_${PN} += " \
14 virtual-obmc-wsgihost \
15 python-gevent-websocket \
16 "
Brad Bishop0a81db02016-08-30 00:46:40 -040017
Brad Bishop5da85642015-10-27 17:13:26 -040018RDEPENDS_${PN} += " \
19 python-xml \
20 python-dbus \
Brad Bishop1122eb02016-10-05 20:10:23 -040021 phosphor-mapper \
Brad Bishopf6688172016-04-15 09:41:54 -040022 python-bottle \
23 python-spwd \
Brad Bishop1b4e4472016-08-29 21:47:04 -040024 pyphosphor-utils \
25 pyphosphor-dbus \
Brad Bishop0a81db02016-08-30 00:46:40 -040026 pyphosphor-wsgi-apps-ns \
Tom Joseph65c53622018-09-03 22:08:21 -050027 pamela \
Adriana Kobylak59e96d72018-09-24 14:27:15 -050028 jsnbd \
Brad Bishop5da85642015-10-27 17:13:26 -040029 "
Nagaraju Goruganti8753f642018-06-01 00:19:42 -050030SRC_URI += "file://url_config.json \
31 "
32
33FILES_${PN}_append = " ${datadir}/rest-dbus/url_config.json"
Brad Bishop5da85642015-10-27 17:13:26 -040034
Brad Bishop0a81db02016-08-30 00:46:40 -040035S = "${WORKDIR}/git/module"
36SYSTEMD_SERVICE_${PN} = ""
37SYSTEMD_OVERRIDE_${PN} += "rest-dbus.conf:obmc-mapper.target.d/rest-dbus.conf"
38SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/wsgi_app"
Ratan Gupta653779c2016-10-01 14:57:15 -050039REGISTERED_SERVICES_${PN} += "phosphor_rest:tcp:443"
Nagaraju Goruganti8753f642018-06-01 00:19:42 -050040
41do_install_append(){
42 install -d ${D}${datadir}/rest-dbus
43 install -m 0644 -D ${WORKDIR}/url_config.json \
44 ${D}${datadir}/rest-dbus/url_config.json
45}