--- /dev/null
+diff -ur sysstat-10.1.6.orig/Makefile.in sysstat-10.1.6/Makefile.in
+--- sysstat-10.1.6.orig/Makefile.in 2013-06-08 06:54:53.000000000 +0000
++++ sysstat-10.1.6/Makefile.in 2015-07-30 10:18:06.617616347 +0000
+@@ -367,25 +367,8 @@
+ $(SYSTEMCTL) enable sysstat.service; \
+ elif [ -d $(DESTDIR)$(INIT_DIR) ]; then \
+ $(INSTALL_BIN) sysstat $(DESTDIR)$(INIT_DIR)/sysstat; \
+- if [ -x $(CHKCONFIG) ]; then \
+- cd $(DESTDIR)$(INIT_DIR) && $(CHKCONFIG) --add sysstat; \
+- else \
+- cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
+- cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
+- cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
+- fi \
+ elif [ -d $(DESTDIR)$(RC_DIR) ]; then \
+ $(INSTALL_BIN) sysstat $(DESTDIR)$(RC_DIR)/rc.sysstat; \
+- if [ -x $(CHKCONFIG) ]; then \
+- cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add sysstat; \
+- else \
+- [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
+- [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
+- [ -d $(DESTDIR)$(RC5_DIR) ] || mkdir -p $(DESTDIR)$(RC5_DIR); \
+- cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
+- cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
+- cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
+- fi \
+ fi
+
+ uninstall_man:
Summary(zh_CN.UTF-8): sar, iostat 等系统监视工具
Name: sysstat
Version: 10.1.6
-Release: 6
+Release: 7
License: GPL v2
Group: Applications/System
Source0: http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2
# Source0-md5: 61792b2591e4b3adcb7b979af2330fba
Source2: %{name}.init
Patch0: %{name}-opt.patch
+Patch1: %{name}-install.patch
URL: http://perso.wanadoo.fr/sebastien.godard/
BuildRequires: autoconf >= 2.53
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__aclocal}