blob: 0699b22fb7f2e1442699418e8fca3e7e27af8ba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
DESCRIPTION = "OpenHPI provides an open source implementation of the Service Availability Forum (SAF) Hardware Platform Interface (HPI)."
SECTION = "console/network"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=e3c772a32386888ccb5ae1c0ba95f1a4"
DEPENDS = " \
openssl \
zlib \
sysfsutils \
glib-2.0 \
util-linux \
net-snmp \
libxml2 \
"
INC_PR = "r1"
inherit autotools gettext update-alternatives pkgconfig systemd
PACKAGECONFIG ??= "net-snmp"
PACKAGECONFIG[net-snmp] = "--with-net-snmp-config=${STAGING_BINDIR}/net-snmp-config,, net-snmp"
SYSTEMD_SERVICE_${PN} = "openhpid.service"
SYSTEMD_AUTO_ENABLE = "disable"
do_install_append() {
install -d 777 ${D}/var/lib/openhpi
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/openhpid.service ${D}/${systemd_unitdir}/system
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/openhpid.service
sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}/${systemd_unitdir}/system/openhpid.service
}
FILES_${PN} += "${libdir}/${PN}/*"
INSANE_SKIP_${PN} = "dev-so"
RDEPENDS_${PN} += "libgpg-error \
libcap \
libgcrypt"
|