Install init scripts during 'make install'.
I am not sure this is right thing to do, all the other projects I
participate in do not install their init scripts, but Dhaval thinks it's
nice to have it.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
EXTRA_DIST = init.d/cgconfig.in init.d/cgred.in
+
+INITSCRIPTDIR=$(DESTDIR)/etc/init.d
+install-exec-hook:
+ mkdir -p $(INITSCRIPTDIR)
+ cp init.d/cgconfig init.d/cgred $(INITSCRIPTDIR)
+
+uninstall-hook:
+ rm -f $(INITSCRIPTDIR)/cgconfig $(INITSCRIPTDIR)/cgred