pkgsrc/sysutils/apcupsd/patches/patch-an
bouyer 26b576f47a Properly handle config files in $PREFIX/etc. Not sure how this worked with
the previous version of the package ...
Pointed out by Bernd Ernesti.
2007-06-19 22:22:55 +00:00

46 lines
1.7 KiB
Text

$NetBSD: patch-an,v 1.5 2007/06/19 22:22:55 bouyer Exp $
--- src/cgi/Makefile.in.orig 2006-09-21 02:07:36.000000000 +0200
+++ src/cgi/Makefile.in 2007-06-19 23:59:26.000000000 +0200
@@ -57,41 +57,6 @@
echo $(INSTALL_PROGRAM) $(STRIP) $$p $(DESTDIR)$(cgibin); \
$(INSTALL_PROGRAM) $(STRIP) $$p $(DESTDIR)$(cgibin); \
done
- # don't overwrite any existing config file
- @if test ! -f $(DESTDIR)$(sysconfdir)/apcupsd.css; then \
- (echo "Installing apcupsd.css..." && \
- $(INSTALL_DATA) apcupsd.css \
- $(DESTDIR)$(sysconfdir)/apcupsd.css); \
- else \
- (echo "Installing apcupsd.css as $(DESTDIR)$(sysconfdir)/apcupsd.css.new" && \
- $(INSTALL_DATA) apcupsd.css \
- $(DESTDIR)$(sysconfdir)/apcupsd.css.new); \
- fi
-
- # don't overwrite any existing config file
- @if test ! -f $(DESTDIR)$(sysconfdir)/hosts.conf; then \
- (echo "Installing hosts.conf..." && \
- $(INSTALL_DATA) \
- $(topdir)/platforms/etc/hosts.conf \
- $(DESTDIR)$(sysconfdir)/hosts.conf); \
- else \
- (echo "Installing hosts.conf as $(DESTDIR)$(sysconfdir)/hosts.conf.new" && \
- $(INSTALL_DATA) \
- $(topdir)/platforms/etc/hosts.conf \
- $(DESTDIR)$(sysconfdir)/hosts.conf.new); \
- fi
- # don't overwrite any existing config file
- @if test ! -f $(DESTDIR)$(sysconfdir)/multimon.conf; then \
- (echo "Installing multimon.conf..." && \
- $(INSTALL_DATA) \
- $(topdir)/platforms/etc/multimon.conf \
- $(DESTDIR)$(sysconfdir)/multimon.conf ); \
- else \
- (echo "Installing multimon.conf as $(DESTDIR)$(sysconfdir)/multimon.conf.new" && \
- $(INSTALL_DATA) \
- $(topdir)/platforms/etc/multimon.conf \
- $(DESTDIR)$(sysconfdir)/multimon.conf.new); \
- fi
uninstall:
@echo "Uninstalling cgi program support..."