1 | | diff -ur moira-20091016.orig/clients/mrtest/mrtest.c moira-20091016/clients/mrtest/mrtest.c |
---|
2 | | --- moira-20091016.orig/clients/mrtest/mrtest.c 2009-10-16 16:37:18.000000000 -0400 |
---|
3 | | +++ moira-20091016/clients/mrtest/mrtest.c 2009-10-18 17:26:49.000000000 -0400 |
---|
| 1 | Index: configure.in |
---|
| 2 | =================================================================== |
---|
| 3 | --- configure.in (revision 3945) |
---|
| 4 | +++ configure.in (working copy) |
---|
| 5 | @@ -142,6 +142,12 @@ |
---|
| 6 | $LIBPATH -ldes)], |
---|
| 7 | $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv) |
---|
| 8 | fi |
---|
| 9 | +if test "$KRB4_LIBS" != "" ; then |
---|
| 10 | + AC_CANONICAL_TARGET |
---|
| 11 | + case "$target_os" in |
---|
| 12 | + darwin*) KRB4_LIBS="$KRB4_LIBS -framework Kerberos" |
---|
| 13 | + esac |
---|
| 14 | +fi |
---|
| 15 | |
---|
| 16 | AC_MSG_CHECKING(for Kerberos 5) |
---|
| 17 | AC_ARG_WITH(krb5, |
---|
| 18 | @@ -163,6 +169,12 @@ |
---|
| 19 | REG_SVR_DEFS=-DKRB4 |
---|
| 20 | REG_SVR_LIBS=-lkadm |
---|
| 21 | fi |
---|
| 22 | +if test "$KRB5_LIBS" != "" ; then |
---|
| 23 | + AC_CANONICAL_TARGET |
---|
| 24 | + case "$target_os" in |
---|
| 25 | + darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" |
---|
| 26 | + esac |
---|
| 27 | +fi |
---|
| 28 | AC_SUBST(REG_SVR_DEFS) |
---|
| 29 | AC_SUBST(REG_SVR_INCLUDES) |
---|
| 30 | AC_SUBST(REG_SVR_LIBS) |
---|
| 31 | Index: clients/mrtest/mrtest.c |
---|
| 32 | =================================================================== |
---|
| 33 | --- clients/mrtest/mrtest.c (revision 3945) |
---|
| 34 | +++ clients/mrtest/mrtest.c (working copy) |
---|
18 | | diff -ur moira-20091016.orig/configure.in moira-20091016/configure.in |
---|
19 | | --- moira-20091016.orig/configure.in 2009-10-16 16:37:18.000000000 -0400 |
---|
20 | | +++ moira-20091016/configure.in 2009-10-18 17:27:47.000000000 -0400 |
---|
21 | | @@ -464,12 +464,12 @@ |
---|
22 | | if test "$zephyr" != no; then |
---|
23 | | KLIBS="-lzephyr $KLIBS" |
---|
24 | | fi |
---|
25 | | -LIBS="-lmoira $KLIBS" |
---|
26 | | -AC_SUBST(KLIBS) |
---|
27 | | - |
---|
28 | | MR_LIBDEP='$(BUILDTOP)/lib/libmoira.la' |
---|
29 | | AC_SUBST(MR_LIBDEP) |
---|
30 | | |
---|
31 | | +LIBS="$MR_LIBDEP $KLIBS" |
---|
32 | | +AC_SUBST(KLIBS) |
---|
33 | | + |
---|
34 | | AC_OUTPUT(Makefile lib/Makefile include/Makefile clients/Makefile \ |
---|
35 | | clients/lib/Makefile clients/addusr/Makefile \ |
---|
36 | | clients/blanche/Makefile clients/chfn/Makefile \ |
---|
37 | | diff -ur moira-20091016.orig/lib/mr_init.c moira-20091016/lib/mr_init.c |
---|
38 | | --- moira-20091016.orig/lib/mr_init.c 2009-10-16 16:37:18.000000000 -0400 |
---|
39 | | +++ moira-20091016/lib/mr_init.c 2009-10-18 17:26:49.000000000 -0400 |
---|
| 49 | Index: lib/mr_init.c |
---|
| 50 | =================================================================== |
---|
| 51 | --- lib/mr_init.c (revision 3945) |
---|
| 52 | +++ lib/mr_init.c (working copy) |
---|
| 69 | Index: include/Makefile.in |
---|
| 70 | =================================================================== |
---|
| 71 | --- include/Makefile.in (revision 3945) |
---|
| 72 | +++ include/Makefile.in (working copy) |
---|
| 73 | @@ -7,6 +7,10 @@ |
---|
| 74 | SRCTOP=@top_srcdir@ |
---|
| 75 | BUILDTOP=../.. |
---|
| 76 | |
---|
| 77 | +prefix=@prefix@ |
---|
| 78 | +includedir=@includedir@ |
---|
| 79 | +INSTALL=@INSTALL@ |
---|
| 80 | + |
---|
| 81 | all: |
---|
| 82 | |
---|
| 83 | clean: |
---|
| 84 | @@ -17,3 +21,5 @@ |
---|
| 85 | depend: |
---|
| 86 | |
---|
| 87 | install: |
---|
| 88 | + $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira |
---|
| 89 | + $(INSTALL) moira.h $(DESTDIR)$(includedir)/moira |
---|
| 90 | Index: lib/Makefile.in |
---|
| 91 | =================================================================== |
---|
| 92 | --- lib/Makefile.in (revision 3945) |
---|
| 93 | +++ lib/Makefile.in (working copy) |
---|
| 94 | @@ -25,6 +25,7 @@ |
---|
| 95 | prefix=@prefix@ |
---|
| 96 | exec_prefix=@exec_prefix@ |
---|
| 97 | libdir=@libdir@ |
---|
| 98 | +includedir=@includedir@ |
---|
| 99 | |
---|
| 100 | OBJS= critical.lo fixhost.lo fixname.lo \ |
---|
| 101 | hash.lo kname_unparse.lo kname_parse.lo krb_et.lo mr_access.lo mr_auth.lo \ |
---|
| 102 | @@ -54,6 +55,8 @@ |
---|
| 103 | |
---|
| 104 | install: all |
---|
| 105 | $(LIBTOOL) --mode=install $(INSTALL) libmoira.la $(DESTDIR)$(libdir)/libmoira.la |
---|
| 106 | + $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira |
---|
| 107 | + $(INSTALL) mr_et.h krb_et.h ureg_err.h $(DESTDIR)$(includedir)/moira |
---|
| 108 | |
---|
| 109 | libmoira.la: $(OBJS) |
---|
| 110 | $(LIBTOOL) --mode=link $(CC) $(ALL_LDFLAGS) -o $@ $(OBJS) -rpath $(libdir) -version-info 0:0:0 |
---|
| 111 | Index: update/Makefile.in |
---|
| 112 | =================================================================== |
---|
| 113 | --- update/Makefile.in (revision 3945) |
---|
| 114 | +++ update/Makefile.in (working copy) |
---|
| 115 | @@ -4,7 +4,7 @@ |
---|
| 116 | @SET_MAKE@ |
---|
| 117 | |
---|
| 118 | CC=@CC@ |
---|
| 119 | -CPPFLAGS=@CPPFLAGS@ |
---|
| 120 | +CPPFLAGS=@CPPFLAGS@ -DCONFIG_FILE=\"$(sysconfdir)/athena/moira.conf\" |
---|
| 121 | CFLAGS=@CFLAGS@ |
---|
| 122 | DEFS=@DEFS@ |
---|
| 123 | ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS) |
---|
| 124 | @@ -50,8 +50,8 @@ |
---|
| 125 | install: all |
---|
| 126 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir) |
---|
| 127 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir) |
---|
| 128 | - $(SRCTOP)/mkinstalldirs $(DESTDIR)/etc/athena |
---|
| 129 | - $(INSTALL) -m 644 moira.conf $(DESTDIR)/etc/athena/moira.conf |
---|
| 130 | + $(SRCTOP)/mkinstalldirs $(DESTDIR)$(sysconfdir)/athena |
---|
| 131 | + $(INSTALL) -m 644 moira.conf $(DESTDIR)$(sysconfdir)/athena/moira.conf |
---|
| 132 | |
---|
| 133 | update_test: $(COBJS) $(MR_LIBDEP) |
---|
| 134 | $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS) |
---|
| 135 | Index: update/config.c |
---|
| 136 | =================================================================== |
---|
| 137 | --- update/config.c (revision 3945) |
---|
| 138 | +++ update/config.c (working copy) |
---|
| 139 | @@ -26,8 +26,6 @@ |
---|
| 140 | |
---|
| 141 | RCSID("$Header: /afs/.athena.mit.edu/astaff/project/moiradev/repository/moira/update/config.c,v 1.7 1998-02-15 17:49:27 danw Exp $"); |
---|
| 142 | |
---|
| 143 | -#define CONFIG_FILE "/etc/athena/moira.conf" |
---|
| 144 | - |
---|
| 145 | /* Variables currently supported: |
---|
| 146 | * chroot directory daemon will run chrooted to this directory |
---|
| 147 | * user username daemon will run with this user's uid |
---|
| 148 | Index: configure.in |
---|
| 149 | =================================================================== |
---|
| 150 | --- configure.in (revision 3945) |
---|
| 151 | +++ configure.in (working copy) |
---|
| 152 | @@ -461,7 +461,7 @@ |
---|
| 153 | MR_INCLUDE('$(BUILDTOP)/lib') |
---|
| 154 | MR_INCLUDE('$(BUILDTOP)/db') |
---|
| 155 | MR_INCLUDE('$(srcdir)') |
---|
| 156 | -LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" |
---|
| 157 | +LDFLAGS="$LDFLAGS $LIBPATH" |
---|
| 158 | KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS" |
---|
| 159 | KLIBS="$LIBS" |
---|
| 160 | if test "$hesiod" != no; then |
---|