3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/sysstat/no-install-statedir.patch

38 lines
1.6 KiB
Diff

diff -rc sysstat-10.1.1/Makefile.in sysstat-10.1.1-new/Makefile.in
*** sysstat-10.1.1/Makefile.in 2012-01-02 14:36:00.000000000 +0100
--- sysstat-10.1.1-new/Makefile.in 2012-08-14 14:11:17.676124739 +0200
***************
*** 309,315 ****
install_base: all sa1 sa2 sysstat.sysconfig install_man install_nls \
contrib/isag/isag
mkdir -p $(DESTDIR)$(SA_LIB_DIR)
! mkdir -p $(DESTDIR)$(SA_DIR)
ifeq ($(CLEAN_SA_DIR),y)
find $(DESTDIR)$(SA_DIR) \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 'sa??.gz' \) \
-exec rm -f {} \;
--- 309,315 ----
install_base: all sa1 sa2 sysstat.sysconfig install_man install_nls \
contrib/isag/isag
mkdir -p $(DESTDIR)$(SA_LIB_DIR)
! #mkdir -p $(DESTDIR)$(SA_DIR)
ifeq ($(CLEAN_SA_DIR),y)
find $(DESTDIR)$(SA_DIR) \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 'sa??.gz' \) \
-exec rm -f {} \;
***************
*** 344,350 ****
install_all: install_base cron/crontab sysstat \
cron/sysstat.crond cron/sysstat.cron.daily cron/sysstat.cron.hourly
! $(CHOWN) $(CRON_OWNER) $(DESTDIR)$(SA_DIR)
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 \
--- 344,350 ----
install_all: install_base cron/crontab sysstat \
cron/sysstat.crond cron/sysstat.cron.daily cron/sysstat.cron.hourly
! #$(CHOWN) $(CRON_OWNER) $(DESTDIR)$(SA_DIR)
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 \