Mykola Kostenok | 233a9f5 | 2017-08-02 11:48:31 +0300 | [diff] [blame] | 1 | DESCRIPTION = "This is the OpenIPMI library, a library that makes simplifies building complex IPMI management software." |
| 2 | SECTION = "console/network" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 5 | DEPENDS = " \ |
| 6 | openssl \ |
| 7 | popt \ |
| 8 | zlib \ |
| 9 | ncurses \ |
| 10 | glib-2.0 \ |
| 11 | gdbm \ |
| 12 | dbus \ |
| 13 | dbus-glib \ |
| 14 | " |
| 15 | RDEPENDS_${PN} += " bash dbus" |
| 16 | |
| 17 | INC_PR = "r2" |
| 18 | |
| 19 | inherit autotools gettext update-alternatives systemd pkgconfig |
| 20 | |
| 21 | PACKAGECONFIG ??= "net-snmp" |
| 22 | |
| 23 | PACKAGECONFIG[net-snmp] = ",--with-ucdsnmp=no,net-snmp" |
| 24 | PACKAGECONFIG[python] = "--with-python,--without-python,python," |
| 25 | PACKAGECONFIG[perl] = "--with-perl=${STAGING_BINDIR_NATIVE},--with-perl=no,perl," |
| 26 | PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl," |
| 27 | |
| 28 | EXTRA_OECONF = "\ |
| 29 | --prefix=${prefix} \ |
| 30 | --with-mellanox \ |
| 31 | --with-dbus \ |
| 32 | " |
| 33 | |
| 34 | S = "${WORKDIR}/git" |
| 35 | |
| 36 | PARALLEL_MAKEINST = "" |
| 37 | |
| 38 | SYSTEMD_PACKAGES = "${PN}" |
| 39 | |
| 40 | SYSTEMD_SERVICE_${PN} = " mlx_ipmid.service" |
| 41 | |
| 42 | |
| 43 | do_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 | |
| 53 | FILES_${PN} += "/usr/lib/perl5 \ |
| 54 | /usr/lib/mlx_ipmid \ |
| 55 | ${systemd_unitdir} \ |
| 56 | " |
| 57 | |
| 58 | FILES_${PN}-dev += "/usr/lib/OpenIPMI" |
| 59 | |
| 60 | FILES_${PN}-dbg += "/usr/lib/perl5/auto/OpenIPMI/.debug" |