mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
sysstat: use service file from source codes
Use service file from sysstat source codes. (From OE-Core rev: 2266c8f627af71b89628c25dc412977054ebcd4a) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -6,7 +6,6 @@ SECTION = "console/utils"
|
||||
|
||||
SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \
|
||||
file://99_sysstat \
|
||||
file://sysstat.service \
|
||||
"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html"
|
||||
@@ -17,9 +16,10 @@ DEPENDS += "base-passwd"
|
||||
# autotools-brokensep as this package doesn't use automake
|
||||
inherit autotools-brokensep gettext systemd upstream-version-is-even
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
||||
PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors"
|
||||
PACKAGECONFIG[cron] = "--enable-install-cron --enable-copy-only,--disable-install-cron --disable-copy-only"
|
||||
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}"
|
||||
|
||||
EXTRA_OECONF += "--disable-stripping"
|
||||
|
||||
@@ -45,10 +45,6 @@ do_install() {
|
||||
echo "d ${localstatedir}/log/sa - - - -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/sysstat.conf
|
||||
fi
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Resets System Activity Logs
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
User=root
|
||||
ExecStart=@LIBDIR@/sa/sa1 --boot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user