void-packages/srcpkgs/boinc/patches/fix-etc_default_config.patch

22 lines
970 B
Diff

--- client/scripts/Makefile.am 2017-08-28 22:29:59.000000000 +0200
+++ client/scripts/Makefile.am 2017-09-21 15:09:23.328014033 +0200
@@ -2,16 +2,5 @@
install-exec-hook:
chmod +x boinc-client
- $(INSTALL) -d $(DESTDIR)$(sysconfdir)/init.d
- $(INSTALL) -b boinc-client $(DESTDIR)$(sysconfdir)/init.d/boinc-client
- if [ -d /etc/sysconfig ] ; then \
- $(INSTALL) -d $(DESTDIR)$(sysconfdir)/sysconfig ; \
- $(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/sysconfig/boinc-client ; \
- elif [ -d /etc/default ] ; then \
- $(INSTALL) -d $(DESTDIR)$(sysconfdir)/default ; \
- $(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/default/boinc-client ; \
- else \
- $(INSTALL) -d $(DESTDIR)$(sysconfdir) ; \
- $(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/boinc-client.conf ; \
- fi
-
+ $(INSTALL) -d $(DESTDIR)$(sysconfdir)/default
+ $(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/default/boinc-client