Add Boinc client component
[slapos.git] / component / boinc-client / boinc-abs-path.patch
1 --- a/client/scripts/Makefile.am  2012-08-24 12:11:10.400291229 +0200
2 +++ b/client/scripts/Makefile.am  2012-09-10 15:21:01.973773228 +0200
3 @@ -2,16 +2,16 @@
4
5  install-exec-hook:
6         chmod +x boinc-client
7 -       $(INSTALL) -d $(DESTDIR)/etc/init.d
8 -       $(INSTALL) -b boinc-client $(DESTDIR)/etc/init.d/boinc-client
9 +       $(INSTALL) -d $(DESTDIR)$(exec_prefix)/etc/init.d
10 +       $(INSTALL) -b boinc-client $(DESTDIR)$(exec_prefix)/etc/init.d/boinc-client
11         if [ -d /etc/sysconfig ] ; then \
12 -         $(INSTALL) -d $(DESTDIR)/etc/sysconfig ; \
13 -         $(INSTALL) boinc-client.conf $(DESTDIR)/etc/sysconfig/boinc-client ; \
14 +         $(INSTALL) -d $(DESTDIR)$(exec_prefix)/etc/sysconfig ; \
15 +         $(INSTALL) boinc-client.conf $(DESTDIR)$(exec_prefix)/etc/sysconfig/boinc-client ; \
16         elif [ -d /etc/default ] ; then \
17 -         $(INSTALL) -d $(DESTDIR)/etc/default ; \
18 -         $(INSTALL) boinc-client.conf $(DESTDIR)/etc/default/boinc-client ; \
19 +         $(INSTALL) -d $(DESTDIR)$(exec_prefix)/etc/default ; \
20 +         $(INSTALL) boinc-client.conf $(DESTDIR)$(exec_prefix)/etc/default/boinc-client ; \
21         else \
22 -         $(INSTALL) -d $(DESTDIR)/etc ; \
23 -         $(INSTALL) boinc-client.conf $(DESTDIR)/etc/boinc-client.conf ; \
24 +         $(INSTALL) -d $(DESTDIR)$(exec_prefix)/etc ; \
25 +         $(INSTALL) boinc-client.conf $(DESTDIR)$(exec_prefix)/etc/boinc-client.conf ; \
26         fi
27