[packages/sysstat] fix libdir issues

glen glen at pld-linux.org
Wed Oct 28 12:30:08 CET 2015


commit 15d599e4d0185544e1693d0bf3d1cf257a5f6396
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 28 13:30:00 2015 +0200

    fix libdir issues

 crontab      | 12 ++++++------
 sysstat.init |  1 -
 sysstat.spec | 16 +++++++++-------
 3 files changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/sysstat.spec b/sysstat.spec
index 51f8658..03d5722 100644
--- a/sysstat.spec
+++ b/sysstat.spec
@@ -10,7 +10,7 @@ Summary(zh_CN.UTF-8):	sar, iostat 等系统监视工具
 # Sysstat 11.0.x (stable version).
 Name:		sysstat
 Version:	11.0.8
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
@@ -34,6 +34,8 @@ Requires:	systemd-units >= 38
 Obsoletes:	iostat
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_libexecdir	%{_prefix}/lib/sa
+
 %description
 This package provides the sar and iostat commands for the Linux
 operating system, similar to their traditional UNIX counterparts. They
@@ -71,7 +73,7 @@ sieciowych i innych operacji wejścia/wyjścia.
 	compressafter=31 \
 	cron_owner=root \
 	cron_interval=10 \
-	sa_lib_dir=%{_libdir}/sa \
+	sa_lib_dir=%{_libexecdir} \
 	--enable-install-cron \
 	--disable-stripping \
 	--with-systemdsystemunitdir=%{systemdunitdir}
@@ -93,8 +95,6 @@ install -d $RPM_BUILD_ROOT{/etc/{cron.d,rc.d/init.d,sysconfig},/var/log/sa,%{sys
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
-%{__sed} i -e 's|/usr/lib/sa|%{_libdir}/sa|g' $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
-
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
 
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
@@ -132,9 +132,10 @@ fi
 %attr(755,root,root) %{_bindir}/pidstat
 %attr(755,root,root) %{_bindir}/sadf
 %attr(755,root,root) %{_bindir}/sar
-%dir %{_libdir}/sa
-%attr(755,root,root) %{_libdir}/sa/sa*
-%attr(750,root,root) %dir /var/log/sa
+%dir %{_libexecdir}
+%attr(755,root,root) %{_libexecdir}/sa1
+%attr(755,root,root) %{_libexecdir}/sa2
+%attr(755,root,root) %{_libexecdir}/sadc
 %attr(754,root,root) /etc/rc.d/init.d/sysstat
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/sysstat
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysstat
@@ -155,3 +156,4 @@ fi
 %{_mandir}/man8/sa1.8*
 %{_mandir}/man8/sa2.8*
 %{_mandir}/man8/sadc.8*
+%attr(750,root,root) %dir /var/log/sa
diff --git a/crontab b/crontab
index 405d26a..f84eb4d 100644
--- a/crontab
+++ b/crontab
@@ -1,16 +1,16 @@
 # Crontab
 #
 # 8am-7pm activity reports every 20 minutes during weekdays.
-# 0 8-18 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa1 1200 3
+# 0 8-18 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa1 1200 3
 # activity reports every 10 minutes everyday.
-0 * * * * /bin/systemd_booted || /usr/lib64/sa/sa1 600 6
+0 * * * * /bin/systemd_booted || /usr/lib/sa/sa1 600 6
 #
 # Activity reports every an hour on Saturday and Sunday.
-# 0 * * * 0,6 /bin/systemd_booted || /usr/lib64/sa/sa1
+# 0 * * * 0,6 /bin/systemd_booted || /usr/lib/sa/sa1
 #
 # 7pm-8am activity reports every an hour during weekdays.
-# 0 19-7 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa1
+# 0 19-7 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa1
 #
 # Daily summary prepared at 19:05.
-# 5 19 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa2 -A
-5 19 * * * /bin/systemd_booted || /usr/lib64/sa/sa2 -A
+# 5 19 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa2 -A
+5 19 * * * /bin/systemd_booted || /usr/lib/sa/sa2 -A
diff --git a/sysstat.init b/sysstat.init
index 7f2e568..d9b60f5 100755
--- a/sysstat.init
+++ b/sysstat.init
@@ -6,7 +6,6 @@
 #
 # description:	Sysstat system monitoring tools (sar,iostat,mpstat)
 #
-# $Id$
 
 # Source function library
 . /etc/rc.d/init.d/functions
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sysstat.git/commitdiff/15d599e4d0185544e1693d0bf3d1cf257a5f6396



More information about the pld-cvs-commit mailing list