]> git.pld-linux.org Git - packages/sysstat.git/commitdiff
install cron even if systemd units are installed (configure opt says to install)
authorElan Ruusamäe <glen@delfi.ee>
Wed, 28 Oct 2015 10:52:56 +0000 (12:52 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 28 Oct 2015 10:57:48 +0000 (12:57 +0200)
install.patch [new file with mode: 0644]
sysstat.spec

diff --git a/install.patch b/install.patch
new file mode 100644 (file)
index 0000000..88539bc
--- /dev/null
@@ -0,0 +1,30 @@
+--- sysstat-11.0.8/Makefile.in 2015-10-28 12:55:45.551618897 +0200
++++ sysstat-11.0.8/Makefile.in 2015-10-28 12:57:20.463217311 +0200
+@@ -364,7 +364,8 @@
+       $(CHOWN) $(CRON_OWNER) $(DESTDIR)$(SA_DIR)
+ ifdef SYSTEMD_UNIT_DIR
+       mkdir -p $(DESTDIR)$(SYSTEMD_UNIT_DIR)
+-else
++endif
++ifeq ($(INSTALL_CRON),y)
+       if [ -d /etc/cron.d ]; then \
+               mkdir -p $(DESTDIR)/etc/cron.d; \
+       elif [ -d /etc/cron.hourly -a -d /etc/cron.daily ]; then \
+@@ -375,15 +376,13 @@
+       elif [ -d $(RC_DIR) ]; then \
+               mkdir -p $(DESTDIR)$(RC_DIR); \
+       fi
+-endif
+-      if [ -z "$(SYSTEMD_UNIT_DIR)" -o ! -d "$(DESTDIR)$(SYSTEMD_UNIT_DIR)" ]; then \
+               if [ -d $(DESTDIR)/etc/cron.d ]; then \
+                       $(INSTALL_DATA) cron/sysstat.crond $(DESTDIR)/etc/cron.d/sysstat; \
+               elif [ -d $(DESTDIR)/etc/cron.hourly -a -d $(DESTDIR)/etc/cron.daily ]; then \
+                       $(INSTALL_BIN) cron/sysstat.cron.hourly $(DESTDIR)/etc/cron.hourly/sysstat; \
+                       $(INSTALL_BIN) cron/sysstat.cron.daily $(DESTDIR)/etc/cron.daily/sysstat; \
+-              fi \
+-      fi
++              fi
++endif
+ ifeq ($(COPY_ONLY),n)
+       if [ \( -z "$(SYSTEMD_UNIT_DIR)" -o ! -d "$(DESTDIR)$(SYSTEMD_UNIT_DIR)" \) -a ! -d $(DESTDIR)/etc/cron.d ]; then \
+               if [ ! -d $(DESTDIR)/etc/cron.hourly -o ! -d $(DESTDIR)/etc/cron.daily ]; then \
index a30f134a6e8ce546a602196efa402414c314057e..6091d9699a33434429846c4f6920d58c51c122b3 100644 (file)
@@ -18,6 +18,7 @@ Source0:      http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
 # Source0-md5: 9a60d786c928b4006f1445c71eeb0e3d
 Source2:       %{name}.init
 Patch0:                %{name}-opt.patch
+Patch1:                install.patch
 URL:           http://perso.wanadoo.fr/sebastien.godard/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
@@ -59,6 +60,7 @@ sieciowych i innych operacji wejścia/wyjścia.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal}
This page took 0.036938 seconds and 4 git commands to generate.