blob: 73e7614f69cb85da47970fa570a1a0c4e4c922ef [file] [log] [blame]
Mykola Kostenok233a9f52017-08-02 11:48:31 +03001DESCRIPTION = "This is the OpenIPMI library, a library that makes simplifies building complex IPMI management software."
2SECTION = "console/network"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
5DEPENDS = " \
6 openssl \
7 popt \
8 zlib \
9 ncurses \
10 glib-2.0 \
11 gdbm \
12 dbus \
13 dbus-glib \
14"
15RDEPENDS_${PN} += " bash dbus"
16
17INC_PR = "r2"
18
19inherit autotools gettext update-alternatives systemd pkgconfig
20
21PACKAGECONFIG ??= "net-snmp"
22
23PACKAGECONFIG[net-snmp] = ",--with-ucdsnmp=no,net-snmp"
24PACKAGECONFIG[python] = "--with-python,--without-python,python,"
25PACKAGECONFIG[perl] = "--with-perl=${STAGING_BINDIR_NATIVE},--with-perl=no,perl,"
26PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl,"
27
28EXTRA_OECONF = "\
29 --prefix=${prefix} \
30 --with-mellanox \
31 --with-dbus \
32 "
33
34S = "${WORKDIR}/git"
35
36PARALLEL_MAKEINST = ""
37
38SYSTEMD_PACKAGES = "${PN}"
39
40SYSTEMD_SERVICE_${PN} = " mlx_ipmid.service"
41
42
43do_install_append() {
44 install -d ${D}/etc/init.d
45 install -d ${D}/${systemd_unitdir}/system
46 install -m 644 ${WORKDIR}/mlx_ipmid.service ${D}/${systemd_unitdir}/system/mlx_ipmid.service
47 install -d ${D}${libdir}/mlx_ipmid
48 install -m 0644 ${B}/lanserv/mellanox/.libs/mellanox.so ${D}${libdir}/mlx_ipmid/
49 install -Dpm 644 ${D}/var/mlx_ipmid/mellanox/50-mlx-events-4.10.rules ${D}/lib/udev/rules.d/50-mlx-events.rules
50 install -Dpm 644 ${D}/var/mlx_ipmid/mellanox/50-mlx-hwmon-4-10-events.rules ${D}/lib/udev/rules.d/50-mlx-hwmon-events.rules
51}
52
53FILES_${PN} += "/usr/lib/perl5 \
54 /usr/lib/mlx_ipmid \
55 ${systemd_unitdir} \
56 "
57
58FILES_${PN}-dev += "/usr/lib/OpenIPMI"
59
60FILES_${PN}-dbg += "/usr/lib/perl5/auto/OpenIPMI/.debug"