4 include $(topdir
)/autoconf
/targets.mak
6 all-install
: install-debian
7 all-uninstall
: uninstall-debian
10 $(call DISTINST
,debian
)
11 $(if
$(DESTDIR
),,$(V
)/usr
/sbin
/update-rc.d apcupsd remove
)
12 $(call MKDIR
,/etc
/init.d
)
13 $(call INSTDATA
,744,apcupsd
,/etc
/init.d
/apcupsd
)
14 $(if
$(DESTDIR
),,$(V
)/usr
/sbin
/update-rc.d apcupsd start
20 1 2 3 4 5 . stop
20 0 1 6 .
)
15 $(call INSTORIG
,744,ups-monitor
,/etc
/init.d
/ups-monitor
)
16 @echo
"---------------------------------------------------------------------"
17 @echo
" NOTE: APCUPSD will almost certainly not work \"out of the box.\""
18 @echo
" You MUST properly edit $(sysconfdir)/apcupsd.conf or apcupsd"
19 @echo
" will fail on startup. Also, please see that your script"
20 @echo
" at /etc/init.d/halt properly calls /etc/init.d/ups-monitor"
21 @echo
" as shown in platforms/debian/examples/halt.ex."
22 @echo
"---------------------------------------------------------------------"
25 $(call DISTUNINST
,debian
)
26 -$(call UNINST
,/etc
/init.d
/apcupsd
)
27 -$(if
$(DESTDIR
),,$(V
)/usr
/sbin
/update-rc.d apcupsd remove
)
28 -$(call UNINST
,/etc
/init.d
/ups-monitor
)