+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (KRB5_AC_NEED_DAEMON): Don't use AC_REPLACE_FUNCS.
+ * configure.in: Configure util/apputils.
+
2004-02-13 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (TRY_PEER_INT): Deleted.
dnl
dnl
AC_DEFUN(KRB5_AC_NEED_DAEMON, [
-AC_REPLACE_FUNCS(daemon)
KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif],daemon,1)])dnl
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (kshd, klogind): Link against apputils lib.
+
2003-08-29 Ken Raeburn <raeburn@mit.edu>
* configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
${DESTDIR}$(CLIENT_MANDIR)/`echo $$f|sed '$(transform)'`.1; \
fi
-kshd: krshd.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_DEPLIB) $(KRB4COMPAT_DEPLIBS)
- $(CC_LINK) -o kshd krshd.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(KRSHDLIBS) $(PTY_LIB) $(KRB4COMPAT_LIBS)
+kshd: krshd.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o kshd krshd.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(KRSHDLIBS) $(PTY_LIB) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
-klogind: krlogind.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_DEPLIB) $(KRB4COMPAT_DEPLIBS)
- $(CC_LINK) -o klogind krlogind.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_LIB) $(KRB4COMPAT_LIBS)
+klogind: krlogind.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o klogind krlogind.o kcmd.o forward.o compat_recv.o $(SETENVOBJ) $(LIBOBJS) $(PTY_LIB) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
install::
for f in kshd klogind; do \
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * pre.in (APPUTILS_DEPLIB, APPUTILS_LIB): New vars.
+ * post.in (daemon.c): Delete rule for copying source file.
+
2004-02-18 Tom Yu <tlyu@mit.edu>
* shlib.conf (alpha-*-dec-osf*, mips-sgi-irix*): Use $(CC) instead
fi;\
exit $$status
-# Some servers need "daemon", but we're not providing it directly
-# through a library. We used to provide it through the krb5 library,
-# and the source is still there.
-daemon.c: $(SRCTOP)/lib/krb5/posix/daemon.c
- $(CP) $(SRCTOP)/lib/krb5/posix/daemon.c daemon.c
-
##
## end of post.in
############################################################
SS_DEPLIB-k5 = $(TOPLIBD)/libss.a
SS_DEPLIB-sys =
PTY_DEPLIB = $(TOPLIBD)/libpty.a
+APPUTILS_DEPLIB = $(TOPLIBD)/libapputils.a
KRB5_BASE_DEPLIBS = $(KRB5_DEPLIB) $(CRYPTO_DEPLIB) $(COM_ERR_DEPLIB)
KRB4COMPAT_DEPLIBS = $(KRB4_DEPLIB) $(DES425_DEPLIB) $(KRB5_BASE_DEPLIBS)
# need fixing if ever used on Mac OS X!
PTY_LIB = -lpty
+# Misc stuff for linking server programs (and maybe some others,
+# eventually) but which we don't want to install.
+APPUTILS_LIB = -lapputils
+
#
# some more stuff for --with-krb4
KRB4_LIBPATH = @KRB4_LIBPATH@
if test "$DB_VERSION" = k5 ; then
AC_CONFIG_SUBDIRS(util/db2)
fi
-AC_CONFIG_SUBDIRS(include lib/crypto lib/krb5 lib/des425)
+AC_CONFIG_SUBDIRS(include lib/crypto lib/krb5 lib/des425 util/apputils)
if test -n "$KRB4_LIB"; then
AC_CONFIG_SUBDIRS(lib/krb4)
fi
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (OBJS, $(PROG)): Link against apputils lib instead
+ of using LIBOBJS.
+
2003-09-02 Alexandra Ellwood <lxs@mit.edu>
* ovsec_kadmd.c: Added Apple password server support.
PROG_RPATH=$(KRB5_LIBDIR)
PROG = kadmind
-OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o schpw.o misc.o server_glue_v1.o @LIBOBJS@
+OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o schpw.o misc.o server_glue_v1.o
all:: $(PROG)
-$(PROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS)
- $(CC_LINK) -o $(PROG) $(OBJS) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS)
+$(PROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o $(PROG) $(OBJS) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB)
install::
$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(SERVER_BINDIR)/$(PROG)
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (OBJS, krb5kdc, fakeka): Link against apputils lib
+ instead of using LIBOBJ.
+
2004-02-19 Ken Hornstein <kenh@mit.edu>
* fakeka.c (main): Bug from David Thompson <thomas@cs.wisc.edu>.
policy.o \
extern.o \
replay.o \
- kerberos_v4.o \
- @LIBOBJS@
+ kerberos_v4.o
RT_OBJS= rtest.o \
kdc_util.o \
kdc5_err.o: kdc5_err.h
-krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS)
- $(CC_LINK) -o krb5kdc $(OBJS) $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS)
+krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o krb5kdc $(OBJS) $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)
-fakeka: fakeka.o $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) @LIBOBJS@
- $(CC_LINK) -o fakeka fakeka.o $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS) @LIBOBJS@
+fakeka: fakeka.o $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o fakeka fakeka.o $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
check-unix:: rtest
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;\
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (SERVER_OBJS, krb524d): Link against apputils lib
+ instead of using LIBOBJS.
+
2003-12-15 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (clean-unix): Clean up more files now that STLIBOBS
krb524test: test.o $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
$(CC_LINK) -o krb524test test.o $(KRB5_LIB) $(KRB4COMPAT_LIBS)
-SERVER_OBJS= krb524d.o cnv_tkt_skey.o conv_princ.o @LIBOBJS@
+SERVER_OBJS= krb524d.o cnv_tkt_skey.o conv_princ.o
CLIENT_OBJS= $(OUTPRE)k524init.$(OBJEXT)
-krb524d: $(SERVER_OBJS) $(KADMSRV_DEPLIBS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
- $(CC_LINK) -o krb524d $(SERVER_OBJS) $(KADMSRV_LIBS) $(KRB5_LIB) $(KRB4COMPAT_LIBS)
+krb524d: $(SERVER_OBJS) $(KADMSRV_DEPLIBS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o krb524d $(SERVER_OBJS) $(KADMSRV_LIBS) $(KRB5_LIB) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
k524init: $(CLIENT_OBJS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
$(CC_LINK) -o k524init $(CLIENT_OBJS) $(KRB5_LIB) $(KRB4COMPAT_LIBS)
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * daemon.c: Moved to util/apputils.
+
2003-08-21 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (STLIBOBJS, OBJS): Empty.
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (SERVEROBJS, kpropd): Link against apputils lib
+ instead of using LIBOBJS.
+
2003-08-29 Ken Raeburn <raeburn@mit.edu>
* configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
CLIENTOBJS= kprop.o
SERVERSRCS= $(srcdir)/kpropd.c
-SERVEROBJS= kpropd.o @LIBOBJS@
+SERVEROBJS= kpropd.o
SRCS= $(CLIENTSRCS) $(SERVERSRCS)
kprop: $(CLIENTOBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o kprop $(CLIENTOBJS) $(KRB5_BASE_LIBS)
-kpropd: $(SERVEROBJS) $(KRB5_BASE_DEPLIBS)
- $(CC_LINK) -o kpropd $(SERVEROBJS) $(KRB5_BASE_LIBS)
+kpropd: $(SERVEROBJS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
+ $(CC_LINK) -o kpropd $(SERVEROBJS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB)
install::
for f in kprop kpropd; do \
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (MY_SUBDIRS): Build in apputils dir.
+
2004-02-12 Tom Yu <tlyu@mit.edu>
* Makefile.in (all-recurse): Remove exitsleep.
##WIN32### below in the 'all-windows' target anyways, so just hide this.
##WIN32##!if 0
MY_SUBDIRS=$(MAYBE_ET_@COM_ERR_VERSION@) $(MAYBE_SS_@SS_VERSION@) \
- profile pty $(MAYBE_DB_@DB_VERSION@) send-pr
+ profile pty $(MAYBE_DB_@DB_VERSION@) send-pr apputils
##WIN32##!endif
BUILDTOP=$(REL)..
--- /dev/null
+2004-02-24 Ken Raeburn <raeburn@mit.edu>
+
+ * New directory.
+ * Makefile.in, configure.in, dummy.c: New files.
+ * daemon.c: Moved here from lib/krb5/posix.
+
--- /dev/null
+prefix=@prefix@
+bindir=@bindir@
+datadir=@datadir@
+mydatadir=$(datadir)/apputils
+thisconfigdir=.
+myfulldir=util/apputils
+mydir=.
+BUILDTOP=$(REL)..$(S)..
+RELDIR=../util/apputils
+SED = sed
+
+##DOS##BUILDTOP = ..\..
+##DOS##LIBNAME=$(OUTPRE)apputils.lib
+##DOS##XTRA=
+##DOS##OBJFILE=$(OUTPRE)apputils.lst
+
+# LIBOBJS may or may not contain daemon.o; dummy.o is just here to
+# avoid having an empty library.
+STLIBOBJS=dummy.o @LIBOBJS@
+STOBJLISTS=OBJS.ST
+LIB=apputils
+
+all-unix:: all-liblinks
+clean-unix:: clean-liblinks clean-libs clean-libobjs
+install-unix:: install-libs
+
+LINTFLAGS=-uhvb
+LINTFILES= daemon.c
+LIBOBJS=$(OUTPRE)daemon.$(OBJEXT)
+
+SRCS= $(srcdir)/daemon.c \
+ $(srcdir)/dummy.c
+
+# @lib_frag@
+# @libobj_frag@
+
+# +++ Dependency line eater +++
+#
+# Makefile dependencies follow. This must be the last section in
+# the Makefile.in file
+#
+error_message.so error_message.po $(OUTPRE)error_message.$(OBJEXT): error_message.c com_err.h \
+ error_table.h
+et_name.so et_name.po $(OUTPRE)et_name.$(OBJEXT): et_name.c com_err.h error_table.h
+init_et.so init_et.po $(OUTPRE)init_et.$(OBJEXT): init_et.c com_err.h error_table.h
+com_err.so com_err.po $(OUTPRE)com_err.$(OBJEXT): com_err.c com_err.h error_table.h
+
--- /dev/null
+AC_INIT(daemon.c)
+CONFIG_RULES
+AC_REPLACE_FUNCS(daemon)
+KRB5_BUILD_LIBRARY_STATIC
+KRB5_BUILD_LIBOBJS
+V5_AC_OUTPUT_MAKEFILE
--- /dev/null
+int lib_server_dummy = 0;