summaryrefslogtreecommitdiff
path: root/mail/courier-auth/patches/patch-aa
blob: 2c174ec89e41ce2fcb376cefffd273dc543a6474 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
$NetBSD: patch-aa,v 1.3 2004/07/14 20:07:07 jlam Exp $

--- authlib/Makefile.in.orig	Mon May 24 22:34:24 2004
+++ authlib/Makefile.in	Tue Jul 13 03:20:40 2004
@@ -54,7 +54,7 @@
 AUTOCONF = @AUTOCONF@
 AUTOHEADER = @AUTOHEADER@
 
-AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/../automake.fix @AUTOMAKE@
+AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
@@ -1313,7 +1313,7 @@
 
 install-data-am: install-data-local
 
-install-exec-am:
+install-exec-am: install-exec-local
 
 install-info: install-info-am
 
@@ -1521,9 +1521,40 @@
 authdaemondstaticlist.c: config.status
 	@SHELL@ $(srcdir)/mkmodulelist.sh @DAEMON_STATIC_LIST@ >authdaemondstaticlist.c
 
+# This target installs the authlib daemons and password programs and is
+# largely copied from the install-exec-hook target in ../courier/Makefile.in.
+#
+install-exec-local:
+	for d in $(sbindir) $(libexecdir) $(libexecdir)/authlib ; do \
+			$(mkinstalldirs) $(DESTDIR)$$d || exit 1; done
+	for f in authenumerate authinfo ; do \
+		rm -rf $(DESTDIR)$(sbindir)/$$f; \
+		$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$f \
+			$(DESTDIR)$(sbindir)/$$f ; done
+	for f in `cat ../authlib/installlist`; do test -z "$$f" && continue; \
+		test -f ../authlib/$$f || continue; \
+		$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) ../authlib/$$f \
+			$(DESTDIR)$(libexecdir)/authlib/$$f ; done
+	for f in `cat ../authlib/installlist.sh`; do test -z "$$f" && continue; \
+		test -f ../authlib/$$f || continue; \
+		$(INSTALL_SCRIPT) ../authlib/$$f \
+			$(DESTDIR)$(libexecdir)/authlib/$$f ; done
+	$(mkinstalldirs) $(DESTDIR)@authchangepwdir@
+	. ../authlib/authpwdprogs ; for f in `echo $$PWPROGS dummy` ; do \
+		test "$$f" = "dummy" && continue ; \
+		$(INSTALL_PROGRAM) ../authlib/$$f \
+			$(DESTDIR)@authchangepwdir@/$$f ; done
+	. ../authlib/authpwdprogs ; for f in `echo $$PWSCRIPTS dummy` ; do \
+		test "$$f" = "dummy" && continue ; \
+		$(INSTALL_SCRIPT) ../authlib/$$f \
+			$(DESTDIR)$(datadir)/$$f ; \
+		rm -f $(DESTDIR)@authchangepwdir@/$$f ; \
+		$(LN_S) $(datadir)/$$f \
+			$(DESTDIR)@authchangepwdir@/$$f ; done
+
 # automake still a bit stupid...
 
-install-data-local: install-authldaprc install-authdaemonrc install-authmysqlrc install-authpgsqlrc
+install-data-local: install-authldaprc install-authmysqlrc install-authpgsqlrc
 	test "$(man_LINKS)" = "" && exit 0; \
 	$(mkinstalldirs) $(DESTDIR)$(man7dir) ; \
 	for f in $(man_MANS) "" ; do \
@@ -1533,7 +1564,6 @@
 		for f in $(man_LINKS) "" ; do \
 			test "$$f" = "" && continue ; \
 			rm -f $$f; $(LN_S) authlib.7 $$f ; \
-			test -w /etc && chown bin $$f && chgrp bin $$f ; \
 			done ; exit 0
 
 uninstall-local: uninstall-authldaprc uninstall-authdaemonrc uninstall-authmysqlrc uninstall-authpgsqlrc