summaryrefslogtreecommitdiff
path: root/net/netatalk22/patches/patch-config_Makefile.in
blob: 7d55e65660ece3a1910a25d756222698f5f68c56 (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
$NetBSD: patch-config_Makefile.in,v 1.2 2021/04/02 09:54:26 hauke Exp $

Install afp_ldap.conf based on LDAP support, not ACL support.

Install config files to examples/netatalk, and leave installation to
the pkginstall framerwork.

Renamed from patch-ah

--- config/Makefile.in.orig	2017-07-09 11:27:05.000000000 +0000
+++ config/Makefile.in
@@ -88,7 +88,7 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 target_triplet = @target@
-@HAVE_ACLS_TRUE@am__append_1 = afp_ldap.conf
+@HAVE_LDAP_TRUE@am__append_1 = afp_ldap.conf
 @USE_APPLETALK_TRUE@am__append_2 = atalkd.conf papd.conf
 subdir = config
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -759,13 +759,14 @@ uninstall-local:
 		rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
 	done
 @USE_DEBIAN_TRUE@	rm -f $(DESTDIR)/etc/default/netatalk
+egconfdir = @prefix@/share/examples/netatalk
 
 install-config-files: $(CONFFILES) $(GENFILES)
-	$(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
+	$(mkinstalldirs) $(DESTDIR)$(egconfdir)
 	for f in $(CONFFILES) $(GENFILES); do \
-		if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pkgconfdir)/$$f; then \
-			echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir)"; \
-			$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir); \
+		if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(egconfdir)/$$f; then \
+			echo "$(INSTALL_DATA) $$f $(DESTDIR)$(egconfdir)"; \
+			$(INSTALL_DATA) $$f $(DESTDIR)$(egconfdir); \
 		else \
 			echo "not overwriting $$f"; \
 		fi; \