Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in test/*_test; do
|
||||
if $i ; then
|
||||
echo "PASS: $i"
|
||||
else
|
||||
echo "FAIL: $i"
|
||||
fi
|
||||
done
|
||||
@@ -0,0 +1,56 @@
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
|
||||
DEPENDS = " \
|
||||
openssl \
|
||||
zlib \
|
||||
boost \
|
||||
libpam \
|
||||
sdbusplus \
|
||||
gtest \
|
||||
nlohmann-json \
|
||||
libtinyxml2 \
|
||||
nghttp2 \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \
|
||||
"
|
||||
SRCREV = "e01d0c36af115ed46d54b5dbbacfe3ad92226bd3"
|
||||
PV = "1.0+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://github.com/openbmc/bmcweb.git;branch=master;protocol=https"
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
SYSTEMD_SERVICE:${PN} += "bmcweb.service bmcweb.socket"
|
||||
|
||||
inherit systemd
|
||||
inherit useradd
|
||||
inherit pkgconfig meson ptest
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[insecure-redfish-expand]="-Dinsecure-enable-redfish-query=enabled"
|
||||
|
||||
EXTRA_OEMESON = " \
|
||||
--buildtype=minsize \
|
||||
-Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
cp -rf ${B}/*_test ${D}${PTEST_PATH}/test/
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
jsnbd \
|
||||
phosphor-objmgr \
|
||||
"
|
||||
|
||||
FILES:${PN} += "${datadir}/** "
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
# add a user called httpd for the server to assume
|
||||
USERADD_PARAM:${PN} = "-r -s /sbin/nologin bmcweb"
|
||||
|
||||
GROUPADD_PARAM:${PN} = "web; redfish; hostconsole"
|
||||
FULL_OPTIMIZATION:append = " -Os"
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Lightweight SLP Server
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/slpd
|
||||
SyslogIdentifier=slpd
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Lightweight SLP Server"
|
||||
DESCRIPTION = "Lightweight Unicast-only SLP Server"
|
||||
HOMEPAGE = "http://github.com/openbmc/slpd-lite"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
|
||||
DEPENDS += "systemd"
|
||||
DEPENDS += "autoconf-archive-native"
|
||||
SRCREV = "77350e12ef03d23d89d5d37808622106d549769e"
|
||||
PV = "1.0+git${SRCPV}"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "git://github.com/openbmc/slpd-lite;branch=master;protocol=https"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} += "slpd-lite.service"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit meson pkgconfig
|
||||
inherit obmc-phosphor-systemd
|
||||
Reference in New Issue
Block a user