@@ -411,27 +411,31 @@ endif
411
411
$(INSTALL_DATA) cron/sysstat-summary.timer $(DESTDIR)$(SYSTEMD_UNIT_DIR); \
412
412
elif [ -d $(DESTDIR)$(INIT_DIR) ]; then \
413
413
$(INSTALL_BIN) sysstat $(DESTDIR)$(INIT_DIR)/sysstat; \
414
- if [ -x "$(CHKCONFIG)" ]; then \
415
- cd $(DESTDIR)$(INIT_DIR) && $(CHKCONFIG) --add sysstat; \
416
- else \
417
- [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
418
- [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
419
- [ -d $(DESTDIR)$(RC5_DIR) ] || mkdir -p $(DESTDIR)$(RC5_DIR); \
420
- cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
421
- cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
422
- cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
414
+ if [ "$(COPY_ONLY)" == "n" ]; then \
415
+ if [ -x "$(CHKCONFIG)" ]; then \
416
+ cd $(DESTDIR)$(INIT_DIR) && $(CHKCONFIG) --add sysstat; \
417
+ else \
418
+ [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
419
+ [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
420
+ [ -d $(DESTDIR)$(RC5_DIR) ] || mkdir -p $(DESTDIR)$(RC5_DIR); \
421
+ cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
422
+ cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
423
+ cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../$(INITD_DIR)/sysstat S01sysstat; \
424
+ fi \
423
425
fi \
424
426
elif [ -d $(DESTDIR)$(RC_DIR) ]; then \
425
427
$(INSTALL_BIN) sysstat $(DESTDIR)$(RC_DIR)/rc.sysstat; \
426
- if [ -x "$(CHKCONFIG)" ]; then \
427
- cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add rc.sysstat; \
428
- else \
429
- [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
430
- [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
431
- [ -d $(DESTDIR)$(RC5_DIR) ] || mkdir -p $(DESTDIR)$(RC5_DIR); \
432
- cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
433
- cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
434
- cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
428
+ if [ "$(COPY_ONLY)" == "n" ]; then \
429
+ if [ -x "$(CHKCONFIG)" ]; then \
430
+ cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add rc.sysstat; \
431
+ else \
432
+ [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \
433
+ [ -d $(DESTDIR)$(RC3_DIR) ] || mkdir -p $(DESTDIR)$(RC3_DIR); \
434
+ [ -d $(DESTDIR)$(RC5_DIR) ] || mkdir -p $(DESTDIR)$(RC5_DIR); \
435
+ cd $(DESTDIR)$(RC2_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
436
+ cd $(DESTDIR)$(RC3_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
437
+ cd $(DESTDIR)$(RC5_DIR) && $(LN_S) -f ../rc.sysstat S01sysstat; \
438
+ fi \
435
439
fi \
436
440
fi
437
441
ifeq ($(COPY_ONLY ) ,n)
0 commit comments