4 include $(topdir
)/autoconf
/targets.mak
6 all-install
: install-slackware
7 all-uninstall
: uninstall-slackware
10 $(call DISTINST
,Slackware
)
11 $(call MKDIR
,/etc
/rc.d
)
12 $(call INSTPROG
,744,apcupsd
,/etc
/rc.d
/rc.apcupsd
)
13 $(call MKDIR
,$(LOCKDIR
)/subsys
)
14 $(VV
)-rcfile
=/etc
/rc.d
/rc
.6; \
15 grep
-q
$(sysconfdir
)/apccontrol
$$rcfile; \
16 if
[ $$?
-ne
0 ]; then \
17 echo
" PATCH $(DESTDIR)$$rcfile"; \
18 cp
-p
$$rcfile $(DESTDIR
)$$rcfile.
`date +%Y%m%d%M%S`; \
19 patch
-s
$(DESTDIR
)$$rcfile rc6.patch
; \
20 if
[ $$?
-ne
0 ]; then \
21 echo
"Patches could not be properly applied. Please check"; \
22 echo
"$(DESTDIR)$$rcfile and edit it manually."; \
26 echo
"The apcupsd boot script has been installed to"; \
27 echo
"/etc/rc.d/rc.apcupsd and the halt script /etc/rc.d/rc.6 has"; \
28 echo
"been patched. You must still call /etc/rc.d/rc.apcupsd"; \
29 echo
"during the boot process after you have tested your"; \
30 echo
"installation. One way to do this is from the"; \
31 echo
"/etc/rc.d/rc.local file."; \
32 echo
"See the distributions/slackware/README file."; \
36 $(call DISTUNINST
,Slackware
)
37 -$(call UNINST
,/etc
/rc.d
/rc.apcupsd
)
38 $(VV
)-rcfile
=/etc
/rc.d
/rc
.6; \
39 grep
-q
$(sysconfdir
)/apccontrol
$$rcfile; \
40 if
[ $$?
-eq
0 ]; then \
41 echo
" PATCH $(DESTDIR)$$rcfile"; \
42 cp
-p
$(DESTDIR
)$$rcfile $(DESTDIR
)$$rcfile.
`date +%Y%m%d%M%S`; \
43 patch
-s
-R
$(DESTDIR
)$$rcfile rc6.patch
; \
44 if
[ $$?
-ne
0 ]; then \
45 echo
"Patches could not be properly removed. Please check"; \
46 echo
"$(DESTDIR)$$rcfile and edit it manually."; \