summaryrefslogtreecommitdiffstats
path: root/sysutils/apcupsd/files/patch-ba
blob: 303f4604837f2aab4d81687b756e779c30153bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*** cgi/Makefile.in.orig	Thu Jun 21 10:16:41 2001
--- cgi/Makefile.in	Sun Dec  2 11:04:54 2001
***************
*** 84,89 ****
--- 84,92 ----
  	rm -f Makefile config.h
  
  install: cgi
+ 	@if test ! -d $(cgibin) ; then \
+ 		mkdir -p $(cgibin); \
+ 	fi
  	@for p in $(CGIPROGS) ; do \
  		echo $(INSTALL_PROGRAM) $$p $(cgibin); \
  		$(INSTALL_PROGRAM) $$p $(cgibin); \
***************
*** 98,114 ****
  	   echo "No CSS_DIR found, did not install multimon.css" ; \
  	fi
  	# don't overwrite any existing config file
! 	@if test ! -f $(sysconfdir)/hosts.conf; then \
! 		(echo "Installing hosts.conf..." && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf); \
! 	else \
! 	       (echo "Installing hosts.conf in $(sysconfdir)/hosts.conf.new" && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf.new); \
! 	fi
  	# don't overwrite any existing config file
! 	@if test ! -f $(sysconfdir)/multimon.conf; then \
! 		(echo "Installing multimon.conf..." && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf); \
! 	else \
! 	       (echo "Installing multimon.conf in $(sysconfdir)/multimon.conf.new" && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf.new); \
! 	fi
  
  uninstall:
  	@echo "Uninstalling cgi program support..."
--- 101,119 ----
  	   echo "No CSS_DIR found, did not install multimon.css" ; \
  	fi
  	# don't overwrite any existing config file
! #	@if test ! -f $(sysconfdir)/hosts.conf; then \
! #		(echo "Installing hosts.conf..." && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf); \
! #	else \
! #	       (echo "Installing hosts.conf in $(sysconfdir)/hosts.conf.new" && $(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf.new); \
! #	fi
! 	$(INSTALL_DATA) ../etc/hosts.conf $(sysconfdir)/hosts.conf.sample
  	# don't overwrite any existing config file
! #	@if test ! -f $(sysconfdir)/multimon.conf; then \
! #		(echo "Installing multimon.conf..." && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf); \
! #	else \
! #	       (echo "Installing multimon.conf in $(sysconfdir)/multimon.conf.new" && $(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf.new); \
! #	fi
! 	$(INSTALL_DATA) ../etc/multimon.conf $(sysconfdir)/multimon.conf.sample
  
  uninstall:
  	@echo "Uninstalling cgi program support..."
OpenPOWER on IntegriCloud