File apcupsd-suse.patch of Package apcupsd
--- platforms/suse/Makefile
+++ platforms/suse/Makefile
@@ -11,14 +11,8 @@
# unlink old rc script (if not doing a DESTDIR install)
$(if $(DESTDIR),,$(V)/sbin/chkconfig --del apcupsd)
# install new rc script
- $(call MKDIR,/etc/rc.d)
- $(call INSTDATA,744,apcupsd,/etc/rc.d)
- # save old halt script
- $(call COPY,/etc/rc.d/halt,/etc/rc.d/halt.old)
- # insert apcupsd callout into halt script
- @echo " PATCH" $(DESTDIR)/etc/rc.d/halt
- $(V)awk -f awkhaltprog $(DESTDIR)/etc/rc.d/halt.old >$(DESTDIR)/etc/rc.d/halt
- $(V)chmod 744 $(DESTDIR)/etc/rc.d/halt
+ $(call MKDIR,/etc/init.d)
+ $(call INSTDATA,744,apcupsd,/etc/init.d)
# link new rc script (if not doing a DESTDIR install)
$(if $(DESTDIR),,$(V)/sbin/chkconfig --add apcupsd)
@echo "================================================="
@@ -40,6 +34,4 @@
uninstall-suse:
# unlink old rc script (if not doing a DESTDIR install)
$(if $(DESTDIR),,$(V)/sbin/chkconfig --del apcupsd)
- $(call UNINST,/etc/rc.d/apcupsd)
- $(call COPY,$(DESTDIR)/etc/rc.d/halt.old,/etc/rc.d/halt)
- $(call UNINST,/etc/rc.d/halt.old)
+ $(call UNINST,/etc/init.d/apcupsd)