4 include $(topdir
)/autoconf
/targets.mak
6 all-install
: install-mandrake
7 all-uninstall
: uninstall-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
"================================================="
21 @echo
"apcupsd script installation for Mandrake $(DISTVER) complete."
23 @echo
"You should now edit /etc/apcupsd/apcupsd.conf to correspond"
24 @echo
"to your setup then start the apcupsd daemon with:"
26 @echo
"/etc/rc.d/init.d/apcupsd start"
28 @echo
"thereafter when you reboot, it will be stopped and started"
29 @echo
"automatically."
31 @echo
"================================================="
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
)