Files
pkgsrc-ng/net/knot/patches/patch-samples_Makefile.in
2016-01-21 23:40:00 +01:00

30 lines
1.0 KiB
Plaintext

$NetBSD: patch-samples_Makefile.in,v 1.3 2014/11/10 21:20:32 pettai Exp $
Fix sysconfdir + sample conf snippet
--- samples/Makefile.in.orig 2014-09-15 14:32:42.000000000 +0000
+++ samples/Makefile.in
@@ -252,6 +252,7 @@ sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
storage_dir = @storage_dir@
sysconfdir = @sysconfdir@
+EGDIR = @EGDIR@
systemd_CFLAGS = @systemd_CFLAGS@
systemd_LIBS = @systemd_LIBS@
target_alias = @target_alias@
@@ -469,10 +470,10 @@ knot.sample.conf: knot.sample.conf.in
mv $@.tmp $@
install-data-local: knot.sample.conf
- [ -d $(DESTDIR)/$(config_dir) ] || \
- $(INSTALL) -d $(DESTDIR)/$(config_dir)
- [ -f $(DESTDIR)/$(config_dir)/knot.sample.conf ] || \
- $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(config_dir)
+ [ -d $(DESTDIR)/$(EGDIR) ] || \
+ $(INSTALL) -d $(DESTDIR)/$(EGDIR)
+ [ -f $(DESTDIR)/$(EGDIR)/knot.sample.conf ] || \
+ $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(EGDIR)
uninstall-local:
[ -f $(DESTDIR)/$(config_dir)/knot.sample.conf ] && \