UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / platforms / mandrake / Makefile
blob694a5b3a663a3284eaccdad3cd481e7fc3ca1251
1 topdir:=../..
3 SUBDIRS =
4 include $(topdir)/autoconf/targets.mak
6 all-install: install-mandrake
7 all-uninstall: uninstall-mandrake
9 install-mandrake:
10 $(call DISTINST,Mandrake)
11 # unlink old rc script (if not doing a DESTDIR install)
12 $(call CHKCFG,del,/etc/rc.d/init.d/apcupsd)
13 # install new rc script
14 $(call MKDIR,/etc/rc.d/init.d)
15 $(call INSTDATA,744,apcupsd,/etc/rc.d/init.d)
16 # link new rc script (if not doing a DESTDIR install)
17 $(call CHKCFG,add,/etc/rc.d/init.d/apcupsd)
18 # mandrake halt script already handles apcupsd so no patching necessary
19 @echo "================================================="
20 @echo " "
21 @echo "apcupsd script installation for Mandrake $(DISTVER) complete."
22 @echo " "
23 @echo "You should now edit /etc/apcupsd/apcupsd.conf to correspond"
24 @echo "to your setup then start the apcupsd daemon with:"
25 @echo " "
26 @echo "/etc/rc.d/init.d/apcupsd start"
27 @echo " "
28 @echo "thereafter when you reboot, it will be stopped and started"
29 @echo "automatically."
30 @echo " "
31 @echo "================================================="
33 uninstall-mandrake:
34 $(call DISTUNINST,Mandrake)
35 # unlink old rc script (if not doing a DESTDIR install)
36 -$(call CHKCFG,del,/etc/rc.d/init.d/apcupsd)
37 -$(call UNINST,/etc/rc.d/init.d/apcupsd)