pkgsrc/sysutils/apcupsd/patches/patch-ao
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

24 lines
917 B
Text

$NetBSD: patch-ao,v 1.5 2007/06/19 22:22:55 bouyer Exp $
--- platforms/Makefile.in.orig 2007-06-19 23:54:40.000000000 +0200
+++ platforms/Makefile.in 2007-06-19 23:56:17.000000000 +0200
@@ -26,19 +26,6 @@
DESTDIR=$(DESTDIR) install);
install: @INSTALL_DISTDIR@
- @echo "Installing apccontrol script..."
- @if test -f $(DESTDIR)$(sysconfdir)/apccontrol; then \
- mv -f $(DESTDIR)$(sysconfdir)/apccontrol $(DESTDIR)$(sysconfdir)/apccontrol.orig; \
- echo " Found old apccontrol moving it to $(DESTDIR)$(sysconfdir)/apccontrol.orig"; \
- fi
- @if test -f ./$(DISTNAME)/apccontrol; then \
- $(INSTALL_SCRIPT) -m 744 ./$(DISTNAME)/apccontrol \
- $(DESTDIR)$(sysconfdir)/apccontrol; \
- else \
- $(INSTALL_SCRIPT) -m 744 ./apccontrol \
- $(DESTDIR)$(sysconfdir)/apccontrol; \
- fi
- (cd etc/; $(MAKE) DESTDIR=$(DESTDIR) install)
#
# uninstall symlinks before removing the boot script etc etc