[Apcupsd-commits] apcupsd/platforms/engarde Makefile, NONE, 1.1.2.1 Makefile.in, 1.3, NONE
Brought to you by:
adk0212
From: Adam K. <ad...@us...> - 2008-04-07 23:03:09
|
Update of /cvsroot/apcupsd/apcupsd/platforms/engarde In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv19226/platforms/engarde Added Files: Tag: Branch-3_14 Makefile Removed Files: Tag: Branch-3_14 Makefile.in Log Message: Add 'make install' support for alpha, darwin, debian, engarde, and unknown. Also misc fixes to existing install support. --- Makefile.in DELETED --- --- NEW FILE: Makefile --- topdir:=../.. SUBDIRS = include $(topdir)/autoconf/targets.mak all-install: install-engarde all-uninstall: uninstall-engarde install-engarde: # unlink old rc script (if not doing a DESTDIR install) $(if $(DESTDIR),,$(V)/sbin/chkconfig --del apcupsd) # install new rc script $(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) # save old halt script $(call COPY,/etc/init.d/halt,/etc/init.d/halt.old) # insert apcupsd callout into halt script @echo " AWK " $(DESTDIR)/etc/init.d/halt $(V)awk -f awkhaltprog $(DESTDIR)/etc/init.d/halt.old >$(DESTDIR)/etc/init.d/halt $(V)chmod 744 $(DESTDIR)/etc/init.d/halt @echo "=================================================" @echo " " @echo "apcupsd script installation for Engarde Secure Linux complete." @echo " " @echo "You should now edit /etc/apcupsd/apcupsd.conf to correspond" @echo "to your setup then start the apcupsd daemon with:" @echo " " @echo "/etc/init.d/apcupsd start" @echo " " @echo "thereafter when you reboot, it will be stopped and started" @echo "automatically." @echo " " @echo "Please check that your halt script in:" @echo " /etc/init.d/halt" @echo "was properly updated (see installation section of manual)" @echo " " @echo "=================================================" uninstall-engarde: # unlink old rc script (if not doing a DESTDIR install) $(if $(DESTDIR),,$(V)/sbin/chkconfig --del apcupsd) $(call UNINST,/etc/init.d/apcupsd) $(call COPY,$(DESTDIR)/etc/init.d/halt.old,/etc/init.d/halt) $(call UNINST,/etc/init.d/halt.old) # Include dependencies -include $(SRCS:%.c=$(DEPDIR)/%.P) |