2010-11-18 23:44:37 +00:00
|
|
|
SUMMARY = "System performance tools"
|
2010-08-26 03:40:08 +00:00
|
|
|
DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux."
|
|
|
|
HOMEPAGE = "http://sebastien.godard.pagesperso-orange.fr/"
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
SECTION = "console/utils"
|
|
|
|
|
2015-01-04 03:11:22 +00:00
|
|
|
SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \
|
2013-09-14 08:31:24 +00:00
|
|
|
file://99_sysstat \
|
2015-06-12 06:13:40 +00:00
|
|
|
file://sysstat.service \
|
2013-09-14 08:31:24 +00:00
|
|
|
"
|
2010-08-26 03:40:08 +00:00
|
|
|
|
2015-11-16 16:05:13 +00:00
|
|
|
UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html"
|
|
|
|
|
2015-06-10 05:44:26 +00:00
|
|
|
DEPENDS += "base-passwd"
|
|
|
|
|
2015-06-12 06:13:40 +00:00
|
|
|
inherit autotools-brokensep gettext systemd
|
2010-08-26 03:40:08 +00:00
|
|
|
|
2012-08-30 18:08:45 +00:00
|
|
|
EXTRA_OECONF += "--disable-sensors"
|
2011-06-20 18:21:00 +00:00
|
|
|
EXTRA_OEMAKE += 'LFLAGS=""'
|
|
|
|
|
2015-06-12 06:13:40 +00:00
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
|
|
SYSTEMD_SERVICE_${PN} = "sysstat.service"
|
|
|
|
SYSTEMD_AUTO_ENABLE = "enable"
|
|
|
|
|
2012-12-21 13:52:25 +00:00
|
|
|
do_configure_prepend() {
|
|
|
|
export sa_lib_dir=${libdir}/sa
|
|
|
|
}
|
|
|
|
|
2010-08-26 03:40:08 +00:00
|
|
|
do_install() {
|
|
|
|
autotools_do_install
|
|
|
|
|
|
|
|
# don't install /var/log/sa when populating rootfs. Do it through volatile
|
|
|
|
|
|
|
|
rm -rf ${D}/var
|
|
|
|
install -d ${D}/etc/default/volatiles
|
|
|
|
install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles
|
2015-06-12 06:13:40 +00:00
|
|
|
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system
|
|
|
|
sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service
|
2010-08-26 03:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst_${PN} () {
|
2011-12-07 14:59:02 +00:00
|
|
|
if [ -n "$D" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
if [ -e /etc/init.d/populate-volatile.sh ]; then
|
|
|
|
/etc/init.d/populate-volatile.sh update
|
|
|
|
fi
|
2010-08-26 03:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FILES_${PN} += "${libdir}/sa"
|
|
|
|
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
2011-05-18 13:44:48 +00:00
|
|
|
LDFLAGS_append_libc-uclibc = " -lintl"
|