2008-06-08 22:18:52 +00:00
|
|
|
## -*- mode: makefile; tab-width: 4 -*-
|
2008-04-04 18:29:59 +00:00
|
|
|
|
2008-05-12 16:40:10 +00:00
|
|
|
install-exec-hook:
|
|
|
|
chmod +x boinc-client
|
2012-11-02 00:04:05 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(sysconfdir)/init.d
|
|
|
|
$(INSTALL) -b $(srcdir)/boinc-client $(DESTDIR)$(sysconfdir)/init.d/boinc-client
|
2008-05-12 16:40:10 +00:00
|
|
|
if [ -d /etc/sysconfig ] ; then \
|
2012-11-02 00:04:05 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(sysconfdir)/sysconfig ; \
|
|
|
|
$(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/sysconfig/boinc-client ; \
|
2008-05-12 16:40:10 +00:00
|
|
|
elif [ -d /etc/default ] ; then \
|
2012-11-02 00:04:05 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(sysconfdir)/default ; \
|
|
|
|
$(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/default/boinc-client ; \
|
2008-05-12 16:40:10 +00:00
|
|
|
else \
|
2012-11-02 00:04:05 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(sysconfdir) ; \
|
|
|
|
$(INSTALL) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/boinc-client.conf ; \
|
2008-05-12 16:40:10 +00:00
|
|
|
fi
|
2008-04-04 18:29:59 +00:00
|
|
|
|