blob: b89671093805b01d4f12f3b2a673f6c84b7a4640 [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"
Brad Bishop5da85642015-10-27 17:13:26 -04004
5inherit allarch
6inherit obmc-phosphor-systemd
7inherit setuptools
Ratan Gupta653779c2016-10-01 14:57:15 -05008inherit obmc-phosphor-discovery-service
Brad Bishop5da85642015-10-27 17:13:26 -04009
Patrick Williams969c16d2017-03-01 21:25:36 -060010require phosphor-rest.inc
11
Dhruvaraj Subhashchandran9737db82017-10-12 04:43:17 -050012RRECOMMENDS_${PN} += " \
13 virtual-obmc-wsgihost \
14 python-gevent-websocket \
15 "
Brad Bishop0a81db02016-08-30 00:46:40 -040016
Brad Bishop5da85642015-10-27 17:13:26 -040017RDEPENDS_${PN} += " \
18 python-xml \
19 python-dbus \
Brad Bishop1122eb02016-10-05 20:10:23 -040020 phosphor-mapper \
Brad Bishopf6688172016-04-15 09:41:54 -040021 python-bottle \
22 python-spwd \
Brad Bishop1b4e4472016-08-29 21:47:04 -040023 pyphosphor-utils \
24 pyphosphor-dbus \
Brad Bishop0a81db02016-08-30 00:46:40 -040025 pyphosphor-wsgi-apps-ns \
Tom Joseph65c53622018-09-03 22:08:21 -050026 pamela \
Adriana Kobylak59e96d72018-09-24 14:27:15 -050027 jsnbd \
Brad Bishop5da85642015-10-27 17:13:26 -040028 "
Nagaraju Goruganti8753f642018-06-01 00:19:42 -050029SRC_URI += "file://url_config.json \
30 "
31
32FILES_${PN}_append = " ${datadir}/rest-dbus/url_config.json"
Brad Bishop5da85642015-10-27 17:13:26 -040033
Brad Bishop0a81db02016-08-30 00:46:40 -040034S = "${WORKDIR}/git/module"
35SYSTEMD_SERVICE_${PN} = ""
36SYSTEMD_OVERRIDE_${PN} += "rest-dbus.conf:obmc-mapper.target.d/rest-dbus.conf"
37SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/wsgi_app"
Ratan Gupta653779c2016-10-01 14:57:15 -050038REGISTERED_SERVICES_${PN} += "phosphor_rest:tcp:443"
Nagaraju Goruganti8753f642018-06-01 00:19:42 -050039
40do_install_append(){
41 install -d ${D}${datadir}/rest-dbus
42 install -m 0644 -D ${WORKDIR}/url_config.json \
43 ${D}${datadir}/rest-dbus/url_config.json
44}