Files
pkgsrc-ng/www/c-icap/patches/patch-Makefile.in
2016-01-21 23:41:46 +01:00

22 lines
1.1 KiB
Plaintext

$NetBSD: patch-Makefile.in,v 1.3 2015/06/12 23:39:11 taca Exp $
Handle configuration files.
--- Makefile.in.orig 2014-10-28 10:45:45.000000000 +0000
+++ Makefile.in
@@ -1718,11 +1718,9 @@ doc:
$(DOXYGEN) c-icap.dox
install-data-local:
- $(mkinstalldirs) $(DESTDIR)$(CONFIGDIR);
- $(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf.default
- $(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic.default
- if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.conf; then $(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf; fi
- if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.magic; then $(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic; fi
+ $(mkinstalldirs) $(DESTDIR)$(datadir)/c-icap;
+ $(INSTALL) c-icap.conf $(DESTDIR)$(datadir)/c-icap/c-icap.conf.default
+ $(INSTALL) c-icap.magic $(DESTDIR)$(datadir)/c-icap/c-icap.magic.default
$(mkinstalldirs) $(DESTDIR)$(LOGDIR);
$(mkinstalldirs) $(DESTDIR)$(SOCKDIR);
chgrp nogroup $(DESTDIR)$(LOGDIR) || echo -e "*********\nWARNING! Can not set group for the log dir $(DESTDIR)$(LOGDIR)\n*********\n"