SERVER_OBJS = kftgtd.o $(COMMON_OBJS)
CLIENT_OBJS = kftgt.o $(COMMON_OBJS)
+MANPAGES = $(srcdir)/kftgt.1 $(srcdir)/kftgtd.8 $(srcdir)/klogin.1 \
+ $(srcdir)/krsh.1
+
.c.o:
$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
-all: kftgtd kftgt kftgt.1 kftgtd.8 klogin.1 krsh.1
-
-version.h: mkversion Makefile
- ./mkversion '$(VERSION)'
+all: kftgtd kftgt $(MANPAGES)
kftgtd: $(SERVER_OBJS)
$(CC) $(SERVER_OBJS) $(LDFLAGS) $(LIBS) -o $@
kftgt: $(CLIENT_OBJS)
$(CC) $(CLIENT_OBJS) $(LDFLAGS) $(LIBS) -o $@
-install: kftgtd kftgt kftgt.1 kftgtd.8 klogin.1 krsh.1
+install: kftgtd kftgt $(MANPAGES)
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(sbindir)
$(INSTALL_PROGRAM) kftgt $(DESTDIR)$(bindir)/kftgt
pod2man --release=`$(srcdir)/krsh -v | awk '{ print $$2 }'` \
--center="User commands" $(srcdir)/krsh > $@
-dist: $(srcdir)/kftgt.1 $(srcdir)/kftgtd.8 $(srcdir)/klogin.1 $(srcdir)/krsh.1
+dist: $(MANPAGES)
rm -rf $(TARNAME).gz $(TARNAME).gz.md5 $(TARDIR)
mkdir $(TARDIR)
rsync -C --exclude /debian/ -a $(srcdir)/ $(TARDIR)/
md5sum $(TARNAME).gz > $(TARNAME).gz.md5
# Dependencies.
-encrypt.o: encrypt.c kftgt.h version.h
-kftgt.o: kftgt.c kftgt.h version.h encrypt.h marsh.h
-kftgtd.o: kftgtd.c kftgt.h version.h encrypt.h marsh.h
-marsh.o: marsh.c kftgt.h version.h
+encrypt.o: encrypt.c kftgt.h
+kftgt.o: kftgt.c kftgt.h encrypt.h marsh.h
+kftgtd.o: kftgtd.c kftgt.h encrypt.h marsh.h
+marsh.o: marsh.c kftgt.h
unsetenv.o: unsetenv.c
Disable IP address checking in the Kerberos v4 library when building
with MIT Kerberos to allow ticket forwarding through NAT.
+ Fix builds outside of the source directory.
+
+ Fix configure breakage when detecting the Kerberos v4 libraries when
+ --enable-reduced-depends is not used.
+
kftgt 1.10 (2005-12-03)
Add the --enable-reduced-depends configure option to try to minimize
KRBLIBS="-lkrb4 -ldes425"
reduce_depends=true
else
- KRBLIBS="-lkrb5 -ldes425 -lkrb5 -lk5crypto -lcom_err"
+ KRBLIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
fi],
- [KRBLIBS="-lkrb5 -ldes425 -lkrb5 -lk5crypto -lcom_err"])
+ [KRBLIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket], [socket], ,
int
print_version(void)
{
- fprintf(stderr,"%s version %d.%d\n", prog,
- KFTGT_MAJOR_VERSION, KFTGT_MINOR_VERSION);
+ fprintf(stderr,"%s version %s\n", prog, PACKAGE_VERSION);
exit(0);
}
#ifndef KFTGT_H
#define KFTGT_H 1
-#include "version.h"
-
/* These are normally defined in des.h when using the Cygnus stuff. */
#ifndef KRB_INT32
# ifndef __alpha
if (t_val <0) usage();
if (v_flag) {
- fprintf(stderr,"%s version %d.%d\n", prog,
- KFTGT_MAJOR_VERSION, KFTGT_MINOR_VERSION);
+ fprintf(stderr,"%s version %s\n", prog, PACKAGE_VERSION);
exit(0);
}
+++ /dev/null
-#! /bin/sh
-# $Id$
-#
-# mkversion -- Generate version.h from the version given on the command line.
-
-version="$1"
-major=`echo $version | sed 's/\..*//'`
-minor=`echo $version | sed 's/.*\.//'`
-
-cat <<EOF > version.h
-/* Automatically generated from VERSION by mkversion. */
-
-#ifndef VERSION_H
-#define VERSION_H 1
-
-#define KFTGT_MAJOR_VERSION $major
-#define KFTGT_MINOR_VERSION $minor
-
-#endif /* VERSION_H */
-EOF