# directory or online at http://www.openafs.org/dl/license10.html
SHELL=/bin/sh
-DESTDIR=dest/
-SRCDIR=${DESTDIR}
-INSTALL=${SRCDIR}bin/install
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
+DEST=@DEST@
+TOP_SRCDIR=@TOP_SRCDIR@
+TOP_INCDIR=@TOP_INCDIR@
+TOP_LIBDIR=@TOP_LIBDIR@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
+libexecdir=@libexecdir@
+libdir=@libdir@
+includedir=@includedir@
+mandir=@mandir@
+afskerneldir=@afskerneldir@
+afssrvbindir=@afssrvbindir@
+afssrvsbindir=@afssrvsbindir@
+afssrvlibexecdir=@afssrvlibexecdir@
# Systype-generic items
SYS_NAME=@AFS_SYSNAME@
ENABLE_KERNEL_MODULE=@ENABLE_KERNEL_MODULE@
-# To compile AFS from scratch in the src tree run "make SYS_NAME=<type>".
+include src/config/Makefile.${SYS_NAME}
+
+# To compile AFS from scratch in the src tree run "make".
# This recursively calls "make install ..." and does not depend on the
# existence of any non-standard programs.
-# To compile a package and all its predecessors using washtool run
-# "make <package>". This requires that @sys works, and that washtool,
-# rcsupdate and our version of ci and co exist.
-# To compile for the kernel type "make blibafs". This assumes washtool,
-# install, rxgen, compile_et and others already exist and runs it with
+# To compile for the kernel type "make blibafs". This assumes install,
+# rxgen, compile_et and others already exist and runs it with
# "-argument kinstall".
-all: force
- set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
- $(MAKE) install "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
+COMPILE_PART1 = cd src; cd
+COMPILE_PART2A = ; $(MAKE)
+COMPILE_PART2B = all
+COMPILE_PART2 = ${COMPILE_PART2A} ${COMPILE_PART2B}
+COMPILE_CLEAN = ${COMPILE_PART2A} clean
+
+all: force ${TOP_INCDIR} ${TOP_INCDIR}/afs ${TOP_LIBDIR}
+ $(MAKE) build
+
+all_nolibafs: force ${TOP_INCDIR} ${TOP_INCDIR}/afs ${TOP_LIBDIR}
+ $(MAKE) build TARGET=finale_nolibafs
+
+only_libafs: force ${TOP_INCDIR} ${TOP_INCDIR}/afs ${TOP_LIBDIR}
+ $(MAKE) build TARGET=libafs
+
+only_libafs_tree: force ${TOP_INCDIR} ${TOP_INCDIR}/afs ${TOP_LIBDIR}
+ $(MAKE) build TARGET=libafs_tree
+
+install: all install_dirs
+ $(MAKE) build COMPILE_PART2B=install
+
+install_nolibafs: all install_dirs
+ $(MAKE) build TARGET=finale_nolibafs COMPILE_PART2B=install
-all_nolibafs:
- set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
- $(MAKE) install TARGET=finale_nolibafs "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
+install_only_libafs: all install_dirs
+ $(MAKE) build TARGET=libafs COMPILE_PART2B=install
-only_libafs:
- set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
- $(MAKE) install TARGET=libafs "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
+dest: all dest_dirs
+ $(MAKE) build COMPILE_PART2B=dest
+
+dest_nolibafs: all dest_dirs
+ $(MAKE) build TARGET=finale_nolibafs COMPILE_PART2B=dest
+
+dest_only_libafs: all dest_dirs
+ $(MAKE) build TARGET=libafs COMPILE_PART2B=dest
+
+${TOP_INCDIR} ${TOP_INCDIR}/afs ${TOP_LIBDIR}:
+ mkdir -p $@
+
+install_dirs: force
+ mkdir -p ${DESTDIR}${bindir}
+ mkdir -p ${DESTDIR}${sbindir}
+ mkdir -p ${DESTDIR}${libexecdir}/openafs
+ mkdir -p ${DESTDIR}${libdir}/afs
+ mkdir -p ${DESTDIR}${includedir}/afs
+ mkdir -p ${DESTDIR}${includedir}/rx
+ mkdir -p ${DESTDIR}${afskerneldir}
+ mkdir -p ${DESTDIR}${afssrvbindir}
+ mkdir -p ${DESTDIR}${afssrvsbindir}
+ mkdir -p ${DESTDIR}${afssrvlibexecdir}
+
+dest_dirs: force
+ mkdir -p ${DEST}/bin
+ mkdir -p ${DEST}/etc
+ mkdir -p ${DEST}/lib/afs
+ mkdir -p ${DEST}/include/afs
+ mkdir -p ${DEST}/include/rx
+ mkdir -p ${DEST}/root.client/usr/vice/etc/C
+ mkdir -p ${DEST}/root.server/etc
+ mkdir -p ${DEST}/root.server/usr/afs/bin
project: cmd comerr
${COMPILE_PART1} comerr ${COMPILE_PART2}
cmd: comerr
- ${COMPILE_PART1} cmd ${COMPILE_PART2}
@case ${SYS_NAME} in \
sgi_6* | sun4x_57 | sun4x_58 | hp_ux11* | sparc64_linux* | alpha_linux* ) \
- ${COMPILE_PART1} cmd ${COMPILE_PART2} install64 ;; \
+ ${COMPILE_PART1} cmd ${COMPILE_PART2}64 ;; \
+ *) \
+ ${COMPILE_PART1} cmd ${COMPILE_PART2} ;; \
esac
lwp: project util
rxincls: rxobj
${COMPILE_PART1} rx ${COMPILE_PART2}
-rxtests: rxobj
- ${COMPILE_PART1} rx ${COMPILE_PART3}
+rxtests: rxdebug
+rxdebug: rx
+ ${COMPILE_PART1} rxdebug ${COMPILE_PART2}
fsint: project kfsint
ubik: project auth
${COMPILE_PART1} ubik ${COMPILE_PART2}
-ubiktests: ubik sys
- ${COMPILE_PART1} ubik ${COMPILE_PART3}
+ubiktests: ubik
ptserver: project ubik cmd comerr auth audit
${COMPILE_PART1} ptserver ${COMPILE_PART2}
gtx: project null auth # kauth rxkad ?
case ${SYS_NAME} in \
rs_aix* | sun4x_5? | sgi_6? | *linux* | ppc_darwin* | *fbsd*) \
- rm -f ${DESTDIR}lib/afs/libtermlib.a; \
- ln -s libnull.a ${DESTDIR}lib/afs/libtermlib.a; \
+ $(RM) -f ${TOP_LIBDIR}/libtermlib.a; \
+ ln -s libnull.a ${TOP_LIBDIR}/libtermlib.a; \
${COMPILE_PART1} gtx ${COMPILE_PART2};; \
*) \
- rm -f ${DESTDIR}lib/afs/libtermlib.a; \
- ln -s /usr/lib/libtermlib.a ${DESTDIR}lib/afs/libtermlib.a; \
+ $(RM) -f ${TOP_LIBDIR}/libtermlib.a; \
+ ln -s /usr/lib/libtermlib.a ${TOP_LIBDIR}/libtermlib.a; \
${COMPILE_PART1} gtx ${COMPILE_PART2};; \
esac
libafs: libafs_setup ${KERNELDIR}
${COMPILE_PART1} libafs ${COMPILE_PART2}
+libafs_tree: libafs_setup ${KERNELDIR}
+ -/bin/rm -rf libafs_tree
+ for d in afs afsint rx config; do \
+ [ -d libafs_tree/$$d ] || mkdir -p libafs_tree/$$d; \
+ done
+ for f in `cd src/libafs; find . -name '*.[ch]'` \
+ Makefile.common Makefile.extradefs \
+ afs.shutdown afs.startup redhat.sh sgi_master sgi_system \
+ ; do \
+ ${INSTALL} -c -f src/libafs/$$f libafs_tree/$$f; \
+ done
+ for f in config.guess config.sub install-sh missing mkinstalldirs \
+ ; do \
+ ${INSTALL} -c -f $$f libafs_tree/$$f; \
+ done
+ src/config/config src/libafs/MakefileProto.${MKAFS_OSTYPE}.in libafs_tree/Makefile.in ${SYS_NAME}
+ ${INSTALL} -c src/config/Makefile.${SYS_NAME}.in libafs_tree/config
+ ${INSTALL} -c src/config/afsconfig.h.in libafs_tree/config
+ ${INSTALL} -c -f -ns configure-libafs libafs_tree/configure
+
libuafs: libuafs_setup ${UKERNELDIR}
set -x; \
case ${SYS_NAME} in \
libadmin: libafsauthent bozo
case ${SYS_NAME} in \
alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
- $(MAKE) libadmin_real SYS_NAME=$(SYS_NAME) \
- COMPILE_PART1="$(COMPILE_PART1)" \
- COMPILE_PART2="$(COMPILE_PART2)" \
- TOP_SRCDIR=@TOP_SRCDIR@ \
- SRCDIR=$(SRCDIR) DESTDIR=$(DESTDIR) \
- DBG_DEFS=$(DBG_DEFS) ;; \
+ $(MAKE) libadmin_real ;; \
*) \
echo Not building MT libadmin for ${SYS_NAME} ;; \
esac
finale: project cmd comerr afsd allrcmds butc tbutc @ENABLE_KERNEL_MODULE@ libuafs audit kauth log package \
ptserver scout bu_utils ubik uss bozo vfsck volser \
- venus update xstat afsmonitor dauth tests libafsrpc \
+ venus update xstat afsmonitor dauth rxdebug libafsrpc \
libafsauthent libadmin
${COMPILE_PART1} finale ${COMPILE_PART2}
finale_nolibafs: project cmd comerr afsd allrcmds butc tbutc libuafs audit kauth log package \
ptserver scout bu_utils ubik uss bozo vfsck volser \
- venus update xstat afsmonitor dauth tests libafsrpc \
+ venus update xstat afsmonitor dauth rxdebug libafsrpc \
libafsauthent libadmin
${COMPILE_PART1} finale ${COMPILE_PART2}
force:
TARGET=finale
-install: force
- $(MAKE) $(TARGET) "SYS_NAME=${SYS_NAME}" \
- "COMPILE_PART1=${COMPILE_PART1}" \
- "COMPILE_PART2=${COMPILE_PART2}" \
- DESTDIR=`pwd`/${SYS_NAME}/dest/ \
- TOP_SRCDIR=@TOP_SRCDIR@ \
- SRCDIR=`pwd`/${SYS_NAME}/dest/ \
- "DBG_DEFS=${DBG_DEFS}"
+build: force
+ $(MAKE) $(TARGET) DEST=$(DEST) COMPILE_PART2B=$(COMPILE_PART2B) DESTDIR=$(DESTDIR)
kupdate: updatekdir libafs_setup libuafs_setup
blibafs:
- $(MAKE) libafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument kinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
+ $(MAKE) libafs
blibuafs:
- $(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument ukinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
+ $(MAKE) libuafs
bwebafs: sys
- $(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument webinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
+ $(MAKE) libuafs
clean:
- $(MAKE) clean2 "COMPILE_PART1=cd src; cd" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
+ $(MAKE) clean2
clean2:
- ${COMPILE_PART1} config ${COMPILE_CLEAN}
- ${COMPILE_PART1} pinstall ${COMPILE_CLEAN}
- ${COMPILE_PART1} procmgmt ${COMPILE_CLEAN}
- ${COMPILE_PART1} util ${COMPILE_CLEAN}
- ${COMPILE_PART1} audit ${COMPILE_CLEAN}
- ${COMPILE_PART1} comerr ${COMPILE_CLEAN}
- ${COMPILE_PART1} cmd ${COMPILE_CLEAN}
- ${COMPILE_PART1} lwp ${COMPILE_CLEAN}
- ${COMPILE_PART1} rxgen ${COMPILE_CLEAN}
- ${COMPILE_PART1} rx ${COMPILE_CLEAN}
- ${COMPILE_PART1} rxstat ${COMPILE_CLEAN}
- ${COMPILE_PART1} fsint ${COMPILE_CLEAN}
- ${COMPILE_PART1} export ${COMPILE_CLEAN}
- ${COMPILE_PART1} afs ${COMPILE_CLEAN}
- ${COMPILE_PART1} des ${COMPILE_CLEAN}
- ${COMPILE_PART1} sys ${COMPILE_CLEAN}
- ${COMPILE_PART1} rxkad ${COMPILE_CLEAN}
- ${COMPILE_PART1} auth ${COMPILE_CLEAN}
- ${COMPILE_PART1} ubik ${COMPILE_CLEAN}
- ${COMPILE_PART1} ptserver ${COMPILE_CLEAN}
- ${COMPILE_PART1} kauth ${COMPILE_CLEAN}
- ${COMPILE_PART1} dauth ${COMPILE_CLEAN}
- ${COMPILE_PART1} libacl ${COMPILE_CLEAN}
- ${COMPILE_PART1} dir ${COMPILE_CLEAN}
- ${COMPILE_PART1} vol ${COMPILE_CLEAN}
- ${COMPILE_PART1} vlserver ${COMPILE_CLEAN}
- ${COMPILE_PART1} viced ${COMPILE_CLEAN}
- ${COMPILE_PART1} viced ${COMPILE_CLEAN}
- ${COMPILE_PART1} tviced ${COMPILE_CLEAN}
- ${COMPILE_PART1} volser ${COMPILE_CLEAN}
- ${COMPILE_PART1} venus ${COMPILE_CLEAN}
- ${COMPILE_PART1} venus/test ${COMPILE_CLEAN}
- ${COMPILE_PART1} afsd ${COMPILE_CLEAN}
- ${COMPILE_PART1} null ${COMPILE_CLEAN}
- ${COMPILE_PART1} gtx ${COMPILE_CLEAN}
- ${COMPILE_PART1} fsprobe ${COMPILE_CLEAN}
- ${COMPILE_PART1} scout ${COMPILE_CLEAN}
- ${COMPILE_PART1} uss ${COMPILE_CLEAN}
- ${COMPILE_PART1} bozo ${COMPILE_CLEAN}
- ${COMPILE_PART1} vfsck ${COMPILE_CLEAN}
- ${COMPILE_PART1} sgistuff ${COMPILE_CLEAN}
- ${COMPILE_PART1} tsm41 ${COMPILE_CLEAN}
- ${COMPILE_PART1} sia ${COMPILE_CLEAN}
- ${COMPILE_PART1} login ${COMPILE_CLEAN}
- ${COMPILE_PART1} pam ${COMPILE_CLEAN}
- ${COMPILE_PART1} afsweb ${COMPILE_CLEAN}
- ${COMPILE_PART1} update ${COMPILE_CLEAN}
- ${COMPILE_PART1} log ${COMPILE_CLEAN}
- ${COMPILE_PART1} bu_utils ${COMPILE_CLEAN}
- ${COMPILE_PART1} usd ${COMPILE_CLEAN}
- ${COMPILE_PART1} bubasics ${COMPILE_CLEAN}
- ${COMPILE_PART1} butm ${COMPILE_CLEAN}
- ${COMPILE_PART1} butc ${COMPILE_CLEAN}
- ${COMPILE_PART1} tbutc ${COMPILE_CLEAN}
- ${COMPILE_PART1} budb ${COMPILE_CLEAN}
- ${COMPILE_PART1} bucoord ${COMPILE_CLEAN}
- ${COMPILE_PART1} xstat ${COMPILE_CLEAN}
- ${COMPILE_PART1} afsmonitor ${COMPILE_CLEAN}
- ${COMPILE_PART1} libafsrpc ${COMPILE_CLEAN}
- ${COMPILE_PART1} libafsauthent ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/adminutil ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/client ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/vos ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/kas ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/pts ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/bos ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/cfg ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/test ${COMPILE_CLEAN}
- ${COMPILE_PART1} libadmin/samples ${COMPILE_CLEAN}
- ${COMPILE_PART1} finale ${COMPILE_CLEAN}
- ${COMPILE_PART1} mpp ${COMPILE_CLEAN}
- ${COMPILE_PART1} package ${COMPILE_CLEAN}
- ${COMPILE_PART1} ntp ${COMPILE_CLEAN}
- ${COMPILE_PART1} ftpd43+ ${COMPILE_CLEAN}
- ${COMPILE_PART1} inetd ${COMPILE_CLEAN}
- ${COMPILE_PART1} rsh ${COMPILE_CLEAN}
- ${COMPILE_PART1} rlogind ${COMPILE_CLEAN}
- ${COMPILE_PART1} rcp ${COMPILE_CLEAN}
- ${COMPILE_PART1} libafs ${COMPILE_CLEAN}
- ${COMPILE_PART1} libuafs ${COMPILE_CLEAN}
+ -${COMPILE_PART1} config ${COMPILE_CLEAN}
+ -${COMPILE_PART1} pinstall ${COMPILE_CLEAN}
+ -${COMPILE_PART1} procmgmt ${COMPILE_CLEAN}
+ -${COMPILE_PART1} util ${COMPILE_CLEAN}
+ -${COMPILE_PART1} audit ${COMPILE_CLEAN}
+ -${COMPILE_PART1} comerr ${COMPILE_CLEAN}
+ -${COMPILE_PART1} cmd ${COMPILE_CLEAN}
+ -${COMPILE_PART1} lwp ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rxgen ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rx ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rxstat ${COMPILE_CLEAN}
+ -${COMPILE_PART1} fsint ${COMPILE_CLEAN}
+ -${COMPILE_PART1} export ${COMPILE_CLEAN}
+ -${COMPILE_PART1} afs ${COMPILE_CLEAN}
+ -${COMPILE_PART1} des ${COMPILE_CLEAN}
+ -${COMPILE_PART1} sys ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rxkad ${COMPILE_CLEAN}
+ -${COMPILE_PART1} auth ${COMPILE_CLEAN}
+ -${COMPILE_PART1} ubik ${COMPILE_CLEAN}
+ -${COMPILE_PART1} ptserver ${COMPILE_CLEAN}
+ -${COMPILE_PART1} kauth ${COMPILE_CLEAN}
+ -${COMPILE_PART1} dauth ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libacl ${COMPILE_CLEAN}
+ -${COMPILE_PART1} dir ${COMPILE_CLEAN}
+ -${COMPILE_PART1} vol ${COMPILE_CLEAN}
+ -${COMPILE_PART1} vlserver ${COMPILE_CLEAN}
+ -${COMPILE_PART1} viced ${COMPILE_CLEAN}
+ -${COMPILE_PART1} viced ${COMPILE_CLEAN}
+ -${COMPILE_PART1} tviced ${COMPILE_CLEAN}
+ -${COMPILE_PART1} volser ${COMPILE_CLEAN}
+ -${COMPILE_PART1} venus ${COMPILE_CLEAN}
+ -${COMPILE_PART1} venus/test ${COMPILE_CLEAN}
+ -${COMPILE_PART1} afsd ${COMPILE_CLEAN}
+ -${COMPILE_PART1} null ${COMPILE_CLEAN}
+ -${COMPILE_PART1} gtx ${COMPILE_CLEAN}
+ -${COMPILE_PART1} fsprobe ${COMPILE_CLEAN}
+ -${COMPILE_PART1} scout ${COMPILE_CLEAN}
+ -${COMPILE_PART1} uss ${COMPILE_CLEAN}
+ -${COMPILE_PART1} bozo ${COMPILE_CLEAN}
+ -${COMPILE_PART1} vfsck ${COMPILE_CLEAN}
+ -${COMPILE_PART1} sgistuff ${COMPILE_CLEAN}
+ -${COMPILE_PART1} tsm41 ${COMPILE_CLEAN}
+ -${COMPILE_PART1} sia ${COMPILE_CLEAN}
+ -${COMPILE_PART1} login ${COMPILE_CLEAN}
+ -${COMPILE_PART1} pam ${COMPILE_CLEAN}
+ -${COMPILE_PART1} afsweb ${COMPILE_CLEAN}
+ -${COMPILE_PART1} update ${COMPILE_CLEAN}
+ -${COMPILE_PART1} log ${COMPILE_CLEAN}
+ -${COMPILE_PART1} bu_utils ${COMPILE_CLEAN}
+ -${COMPILE_PART1} usd ${COMPILE_CLEAN}
+ -${COMPILE_PART1} bubasics ${COMPILE_CLEAN}
+ -${COMPILE_PART1} butm ${COMPILE_CLEAN}
+ -${COMPILE_PART1} butc ${COMPILE_CLEAN}
+ -${COMPILE_PART1} tbutc ${COMPILE_CLEAN}
+ -${COMPILE_PART1} budb ${COMPILE_CLEAN}
+ -${COMPILE_PART1} bucoord ${COMPILE_CLEAN}
+ -${COMPILE_PART1} xstat ${COMPILE_CLEAN}
+ -${COMPILE_PART1} afsmonitor ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rxdebug ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libafsrpc ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libafsauthent ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/adminutil ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/client ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/vos ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/kas ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/pts ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/bos ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/cfg ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/test ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libadmin/samples ${COMPILE_CLEAN}
+ -${COMPILE_PART1} finale ${COMPILE_CLEAN}
+ -${COMPILE_PART1} mpp ${COMPILE_CLEAN}
+ -${COMPILE_PART1} package ${COMPILE_CLEAN}
+ -${COMPILE_PART1} ntp ${COMPILE_CLEAN}
+ -${COMPILE_PART1} ftpd43+ ${COMPILE_CLEAN}
+ -${COMPILE_PART1} inetd ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rsh ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rlogind ${COMPILE_CLEAN}
+ -${COMPILE_PART1} rcp ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libafs ${COMPILE_CLEAN}
+ -${COMPILE_PART1} libuafs ${COMPILE_CLEAN}
+ -(cd src/libafs; /bin/rm -rf afs afsint config rx)
+ -(cd src/libuafs; /bin/rm -rf afs afsint config rx des)
+ -/bin/rm -rf ${TOP_INCDIR} ${TOP_LIBDIR}
+ -/bin/rm -rf libafs_tree ${SYS_NAME}
distclean: clean
- /bin/rm -f config.log config.cache config.status Makefile
- /bin/rm -f src/config/afsconfig.h src/config/Makefile.${SYS_NAME}
- /bin/rm -f src/libafs/Makefile src/libafs/MakefileProto.${MKAFS_OSTYPE}
- /bin/rm -f src/libuafs/Makefile afs.ppc_darwin.plist src/pam/Makefile
+ /bin/rm -f config.log config.cache config.status \
+ src/config/afsconfig.h \
+ Makefile \
+ src/afs/Makefile \
+ src/afsd/Makefile \
+ src/afsd/afs.ppc_darwin.plist \
+ src/afsmonitor/Makefile \
+ src/afsweb/Makefile \
+ src/audit/Makefile \
+ src/auth/test/Makefile \
+ src/auth/Makefile \
+ src/bozo/test/Makefile \
+ src/bozo/Makefile \
+ src/bu_utils/Makefile \
+ src/bubasics/Makefile \
+ src/bucoord/Makefile \
+ src/budb/Makefile \
+ src/butc/Makefile \
+ src/butm/Makefile \
+ src/cmd/test/Makefile \
+ src/cmd/Makefile \
+ src/comerr/test/Makefile \
+ src/comerr/Makefile \
+ src/config/Makefile \
+ src/config/Makefile.version \
+ src/config/Makefile.version-NOCML \
+ src/config/Makefile.${SYS_NAME} \
+ src/dauth/Makefile \
+ src/des/test/Makefile \
+ src/des/Makefile \
+ src/des_stub/Makefile \
+ src/dir/test/Makefile \
+ src/dir/Makefile \
+ src/export/Makefile \
+ src/finale/Makefile \
+ src/fsint/Makefile \
+ src/fsprobe/Makefile \
+ src/ftpd43+/Makefile \
+ src/gtx/Makefile \
+ src/inetd/Makefile \
+ src/kauth/test/Makefile \
+ src/kauth/Makefile \
+ src/libacl/test/Makefile \
+ src/libacl/Makefile \
+ src/libadmin/adminutil/Makefile \
+ src/libadmin/Makefile \
+ src/libadmin/bos/Makefile \
+ src/libadmin/cfg/test/Makefile \
+ src/libadmin/cfg/Makefile \
+ src/libadmin/client/Makefile \
+ src/libadmin/kas/Makefile \
+ src/libadmin/pts/Makefile \
+ src/libadmin/samples/Makefile \
+ src/libadmin/test/Makefile \
+ src/libadmin/vos/Makefile \
+ src/libafs/Makefile \
+ src/libafs/MakefileProto.${MKAFS_OSTYPE} \
+ src/libafsauthent/Makefile \
+ src/libafsrpc/Makefile \
+ src/libuafs/Makefile \
+ src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
+ src/log/test/Makefile \
+ src/log/Makefile \
+ src/login/Makefile \
+ src/lwp/test/Makefile \
+ src/lwp/Makefile \
+ src/mpp/Makefile \
+ src/ntp/Makefile \
+ src/null/Makefile \
+ src/package/Makefile \
+ src/pam/Makefile \
+ src/pinstall/test/Makefile \
+ src/pinstall/Makefile \
+ src/procmgmt/Makefile \
+ src/procmgmt/test/Makefile \
+ src/ptserver/Makefile \
+ src/rcp/Makefile \
+ src/rlogind/Makefile \
+ src/rsh/Makefile \
+ src/rx/Makefile \
+ src/rx/bulk.example/Makefile \
+ src/rx/bulktest/Makefile \
+ src/rx/multi.example/Makefile \
+ src/rx/simple.example/Makefile \
+ src/rx/test/Makefile \
+ src/rxdebug/Makefile \
+ src/rxgen/Makefile \
+ src/rxkad/Makefile \
+ src/rxkad/test/Makefile \
+ src/rxstat/Makefile \
+ src/scout/Makefile \
+ src/sgistuff/Makefile \
+ src/sia/Makefile \
+ src/sys/Makefile \
+ src/tbutc/Makefile \
+ src/tsm41/Makefile \
+ src/tviced/Makefile \
+ src/ubik/Makefile \
+ src/update/Makefile \
+ src/usd/test/Makefile \
+ src/usd/Makefile \
+ src/uss/Makefile \
+ src/util/Makefile \
+ src/util/test/Makefile \
+ src/venus/test/Makefile \
+ src/venus/Makefile \
+ src/vfsck/Makefile \
+ src/viced/Makefile \
+ src/vlserver/Makefile \
+ src/vol/Makefile \
+ src/vol/test/Makefile \
+ src/volser/Makefile \
+ src/wsadmin.src/Makefile \
+ src/xstat/Makefile
pristine: distclean
- /bin/rm -f src/config/afsconfig.h.in configure aclocal.m4
-
-links:
- echo "Remove the obj directory"
- - /bin/rm -rf @sys/obj/* ;
- - /bin/rm -rf @sys/dest/* ;
- - /bin/mkdir @sys/obj ;
- echo "Create the obj directories"
- here=`pwd` ; \
- cd src; \
- for file in `find [!NW]* -type d -print` ; do \
- /bin/mkdir $${here}/obj/$${file} ; \
- done;
- echo "Create the obj file links"
- here=`pwd` ; \
- cd src; \
- for file in `find [!NW]* -type f -print` ; do \
- /bin/ln -s `pwd`/$${file} $${here}/obj/$${file} ; \
- done;
+ /bin/rm -f src/config/afsconfig.h.in configure configure-libafs aclocal.m4
#
# Below targets are all deprecated, insecure, or obsolte,
+++ /dev/null
-dnl aclocal.m4 generated automatically by aclocal 1.4-p4
-
-dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-dnl PARTICULAR PURPOSE.
-
-# Do all the work for Automake. This macro actually does too much --
-# some checks are only needed if your package does certain things.
-# But this isn't really a big deal.
-
-# serial 1
-
-dnl Usage:
-dnl AM_INIT_AUTOMAKE(package,version, [no-define])
-
-AC_DEFUN(AM_INIT_AUTOMAKE,
-[AC_REQUIRE([AC_PROG_INSTALL])
-PACKAGE=[$1]
-AC_SUBST(PACKAGE)
-VERSION=[$2]
-AC_SUBST(VERSION)
-dnl test to see if srcdir already configured
-if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
-fi
-ifelse([$3],,
-AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
-AC_REQUIRE([AM_SANITY_CHECK])
-AC_REQUIRE([AC_ARG_PROGRAM])
-dnl FIXME This is truly gross.
-missing_dir=`cd $ac_aux_dir && pwd`
-AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
-AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
-AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
-AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
-AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
-AC_REQUIRE([AC_PROG_MAKE_SET])])
-
-#
-# Check to make sure that the build environment is sane.
-#
-
-AC_DEFUN(AM_SANITY_CHECK,
-[AC_MSG_CHECKING([whether build environment is sane])
-# Just in case
-sleep 1
-echo timestamp > conftestfile
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- if test "[$]*" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftestfile`
- fi
- if test "[$]*" != "X $srcdir/configure conftestfile" \
- && test "[$]*" != "X conftestfile $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
-alias in your environment])
- fi
-
- test "[$]2" = conftestfile
- )
-then
- # Ok.
- :
-else
- AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-rm -f conftest*
-AC_MSG_RESULT(yes)])
-
-dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
-dnl The program must properly implement --version.
-AC_DEFUN(AM_MISSING_PROG,
-[AC_MSG_CHECKING(for working $2)
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if ($2 --version) < /dev/null > /dev/null 2>&1; then
- $1=$2
- AC_MSG_RESULT(found)
-else
- $1="$3/missing $2"
- AC_MSG_RESULT(missing)
-fi
-AC_SUBST($1)])
-
-
-dnl AM_PROG_LEX
-dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
-AC_DEFUN(AM_PROG_LEX,
-[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
-AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
-AC_PROG_LEX
-AC_DECL_YYTEXT])
-
-dnl
-dnl $Id: aclocal.m4,v 1.5 2001/07/16 12:53:29 hartmans Exp $
-dnl
-
-dnl check if this computer is little or big-endian
-dnl if we can figure it out at compile-time then don't define the cpp symbol
-dnl otherwise test for it and define it. also allow options for overriding
-dnl it when cross-compiling
-
-AC_DEFUN(OPENAFS_CHECK_BIGENDIAN, [
-AC_ARG_ENABLE(bigendian,
-[ --enable-bigendian the target is big endian],
-openafs_cv_c_bigendian=yes)
-AC_ARG_ENABLE(littleendian,
-[ --enable-littleendian the target is little endian],
-openafs_cv_c_bigendian=no)
-AC_CACHE_CHECK(whether byte order is known at compile time,
-openafs_cv_c_bigendian_compile,
-[AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/param.h>],[
-#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
-#endif], openafs_cv_c_bigendian_compile=yes, openafs_cv_c_bigendian_compile=no)])
-AC_CACHE_CHECK(whether byte ordering is bigendian, openafs_cv_c_bigendian,[
- if test "$openafs_cv_c_bigendian_compile" = "yes"; then
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/param.h>],[
-#if BYTE_ORDER != BIG_ENDIAN
- not big endian
-#endif], openafs_cv_c_bigendian=yes, openafs_cv_c_bigendian=no)
- else
- AC_TRY_RUN([main () {
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[sizeof (long) - 1] == 1);
- }], openafs_cv_c_bigendian=no, openafs_cv_c_bigendian=yes,
- AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian]))
- fi
-])
-if test "$openafs_cv_c_bigendian" = "yes"; then
- AC_DEFINE(WORDS_BIGENDIAN, 1, [define if target is big endian])dnl
-fi
-if test "$openafs_cv_c_bigendian_compile" = "yes"; then
- AC_DEFINE(ENDIANESS_IN_SYS_PARAM_H, 1, [define if sys/param.h defines the endiness])dnl
-fi
-])
-
-AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_BYTES, [
-AC_MSG_CHECKING(for i_bytes in struct inode)
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_bytes,
-[
-AC_TRY_COMPILE(
-[#include <linux/fs.h>],
-[struct inode _inode;
-printf("%d\n", _inode.i_bytes);],
-ac_cv_linux_fs_struct_inode_has_i_bytes=yes,
-ac_cv_linux_fs_struct_inode_has_i_bytes=no)])
-AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_bytes)
-CPPFLAGS="$save_CPPFLAGS"])
-
-AC_DEFUN(LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK, [
-AC_MSG_CHECKING(for page_lock in struct address_space)
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-AC_CACHE_VAL(ac_cv_linux_fs_struct_address_space_has_page_lock,
-[
-AC_TRY_COMPILE(
-[#include <linux/fs.h>],
-[struct address_space _a_s;
-printf("%x\n", _a_s.page_lock);],
-ac_cv_linux_fs_struct_address_space_has_page_lock=yes,
-ac_cv_linux_fs_struct_address_space_has_page_lock=no)])
-AC_MSG_RESULT($ac_cv_linux_fs_struct_address_space_has_page_lock)
-CPPFLAGS="$save_CPPFLAGS"])
-
-
-AC_DEFUN(LINUX_INODE_SETATTR_RETURN_TYPE,[
-AC_MSG_CHECKING(for inode_setattr return type)
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-AC_CACHE_VAL(ac_cv_linux_func_inode_setattr_returns_int,
-[
-AC_TRY_COMPILE(
-[#include <linux/fs.h>],
-[struct inode _inode;
-struct iattr _iattr;
-int i;
-i = inode_setattr(&_inode, &_iattr);],
-ac_cv_linux_func_inode_setattr_returns_int=yes,
-ac_cv_linux_func_inode_setattr_returns_int=no)])
-AC_MSG_RESULT($ac_cv_linux_func_inode_setattr_returns_int)
-CPPFLAGS="$save_CPPFLAGS"])
-
-AC_DEFUN(LINUX_NEED_RHCONFIG,[
-RHCONFIG_SP=""
-RHCONFIG_MP=""
-if test "x$enable_redhat_buildsys" = "xyes"; then
- AC_MSG_WARN(Configured to build from a Red Hat SPEC file)
-else
- AC_MSG_CHECKING(for redhat kernel configuration)
- if test -f "${LINUX_KERNEL_PATH}/include/linux/rhconfig.h"; then
- ac_linux_rhconfig=yes
- RHCONFIG_SP="-D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0"
- RHCONFIG_MP="-D__BOOT_KERNEL_UP=0 -D__BOOT_KERNEL_SMP=1"
- AC_MSG_RESULT($ac_linux_rhconfig)
- if test ! -f "/boot/kernel.h"; then
- AC_MSG_WARN([/boot/kernel.h does not exist. build may fail])
- fi
- else
- ac_linux_rhconfig=no
- AC_MSG_RESULT($ac_linux_rhconfig)
- fi
-fi
-AC_SUBST(RHCONFIG_SP)
-AC_SUBST(RHCONFIG_MP)
-])
-
-AC_DEFUN(LINUX_WHICH_MODULES,[
-if test "x$enable_redhat_buildsys" = "xyes"; then
- MPS=Default
-else
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $RHCONFIG_SP $CPPFLAGS"
- AC_MSG_CHECKING(if kernel uses MODVERSIONS)
- AC_CACHE_VAL(ac_cv_linux_config_modversions,[
- AC_TRY_COMPILE(
-[#include <linux/config.h>
-],
-[#ifndef CONFIG_MODVERSIONS
-lose;
-#endif
-],
- ac_cv_linux_config_modversions=yes,
- ac_cv_linux_config_modversions=no)])
- AC_MSG_RESULT($ac_cv_linux_config_modversions)
- AC_MSG_CHECKING(which kernel modules to build)
- if test "x$ac_linux_rhconfig" = "xyes" -o "x$ac_cv_linux_config_modversions" = "xno"; then
- MPS="MP SP"
- else
- AC_CACHE_VAL(ac_cv_linux_config_smp, [
- AC_TRY_COMPILE(
-[#include <linux/config.h>
-],
-[#ifndef CONFIG_SMP
-lose;
-#endif
-],
- ac_cv_linux_config_smp=yes,
- ac_cv_linux_config_smp=no)])
- dnl AC_MSG_RESULT($ac_cv_linux_config_smp)
- if test "x$ac_cv_linux_config_smp" = "xyes"; then
- MPS=MP
- else
- MPS=SP
- fi
- fi
- CPPFLAGS=$save_CPPFLAGS
- AC_MSG_RESULT($MPS)
-fi
-AC_SUBST(MPS)
-])
-
-
-AC_DEFUN(SOLARIS_UFSVFS_HAS_DQRWLOCK, [
-AC_MSG_CHECKING(for vfs_dqrwlock in struct ufsvfs)
-AC_CACHE_VAL(ac_cv_solaris_ufsvfs_has_dqrwlock,
-[
-AC_TRY_COMPILE(
-[#define _KERNEL
-#include <sys/fs/ufs_inode.h>],
-[struct ufsvfs _ufsvfs;
-(void) _ufsvfs.vfs_dqrwlock;],
-ac_cv_solaris_ufsvfs_has_dqrwlock=yes,
-ac_cv_solaris_ufsvfs_has_dqrwlock=no)])
-AC_MSG_RESULT($ac_cv_solaris_ufsvfs_has_dqrwlock)
-if test "$ac_cv_solaris_ufsvfs_has_dqrwlock" = "yes"; then
- AC_DEFINE(HAVE_VFS_DQRWLOCK, 1, [define if struct ufsvfs has vfs_dqrwlock])
-fi
-])
-
-
+++ /dev/null
-#! /bin/sh
-
-# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.13
-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-
-# Defaults:
-ac_help=
-ac_default_prefix=/usr/local
-# Any additions from configure.in:
-ac_help="$ac_help
- --with-afs-sysname=sys use sys for the afs sysname
-"
-ac_help="$ac_help
- --enable-obsolete enable obsolete portions of AFS (mpp, ntp and package)"
-ac_help="$ac_help
- --enable-insecure enable insecure portions of AFS (ftpd, inetd, rcp, rlogind and rsh)"
-ac_help="$ac_help
- --disable-afsdb disable AFSDB RR support"
-ac_help="$ac_help
- --enable-bos-restricted-mode enable bosserver restricted mode which disables certain bosserver functionality"
-ac_help="$ac_help
- --enable-namei-fileserver force compilation of namei fileserver in preference to inode fileserver"
-ac_help="$ac_help
- --enable-fast-restart enable fast startup of file server without salvaging"
-ac_help="$ac_help
- --enable-bitmap-later enable fast startup of file server by not reading bitmap till needed"
-ac_help="$ac_help
- --with-dux-kernel-headers=path use the kernel headers found at path(optional, defaults to first match in /usr/sys)
-"
-ac_help="$ac_help
- --with-linux-kernel-headers=path use the kernel headers found at path(optional, defaults to /usr/src/linux)
-"
-ac_help="$ac_help
- --disable-kernel-module disable compilation of the kernel module (defaults to enabled)"
-ac_help="$ac_help
- --enable-redhat-buildsys enable compilation of the redhat build system kernel (defaults to disabled)"
-ac_help="$ac_help
- --enable-bigendian the target is big endian"
-ac_help="$ac_help
- --enable-littleendian the target is little endian"
-
-# Initialize some variables set by options.
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-build=NONE
-cache_file=./config.cache
-exec_prefix=NONE
-host=NONE
-no_create=
-nonopt=NONE
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-target=NONE
-verbose=
-x_includes=NONE
-x_libraries=NONE
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datadir='${prefix}/share'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-infodir='${prefix}/info'
-mandir='${prefix}/man'
-
-# Initialize some other variables.
-subdirs=
-MFLAGS= MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-# Maximum number of lines to put in a shell here document.
-ac_max_here_lines=12
-
-ac_prev=
-for ac_option
-do
-
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
-
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case "$ac_option" in
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
-
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir="$ac_optarg" ;;
-
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
-
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
-Usage: configure [options] [host]
-Options: [defaults in brackets after descriptions]
-Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
-Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
-EOF
- cat << EOF
-Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
-Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
-EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
-
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
-
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
-
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
-
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
-
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
-
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
-
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
-
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
-
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
-
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
-
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
-
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.13"
- exit 0 ;;
-
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
-
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
-
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
-
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
-
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
-
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
-
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
-
- esac
-done
-
-if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
-fi
-
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
-# File descriptor usage:
-# 0 standard input
-# 1 file creation
-# 2 errors and warnings
-# 3 some systems may open it to /dev/tty
-# 4 used on the Kubota Titan
-# 6 checking for... messages and results
-# 5 compiler messages saved in config.log
-if test "$silent" = yes; then
- exec 6>/dev/null
-else
- exec 6>&1
-fi
-exec 5>./config.log
-
-echo "\
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-" 1>&5
-
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Also quote any args containing shell metacharacters.
-ac_configure_args=
-for ac_arg
-do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
-done
-
-# NLS nuisances.
-# Only set these to C if already set. These must not be set unconditionally
-# because not all systems understand e.g. LANG=C (notably SCO).
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
-# Non-C LC_CTYPE values break the ctype check.
-if test "${LANG+set}" = set; then LANG=C; export LANG; fi
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo > confdefs.h
-
-# A filename unique to this package, relative to the directory that
-# configure is in, which we can look for to find out if srcdir is correct.
-ac_unique_file=src/config/stds.h
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
-else
- ac_srcdir_defaulted=no
-fi
-if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
-fi
-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
-
-# Prefer explicitly selected file to automatically selected ones.
-if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
-fi
-for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
-done
-
-if test -r "$cache_file"; then
- echo "loading cache $cache_file"
- . $cache_file
-else
- echo "creating cache $cache_file"
- > $cache_file
-fi
-
-ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
-ac_exeext=
-ac_objext=o
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
-' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
-else
- ac_n= ac_c='\c' ac_t=
-fi
-
-
-ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
-fi
-ac_config_guess=$ac_aux_dir/config.guess
-ac_config_sub=$ac_aux_dir/config.sub
-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:587: checking for a BSD compatible install" >&5
-if test -z "$INSTALL"; then
-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
-fi
-echo "$ac_t""$INSTALL" 1>&6
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
-echo "configure:640: checking whether build environment is sane" >&5
-# Just in case
-sleep 1
-echo timestamp > conftestfile
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftestfile`
- fi
- if test "$*" != "X $srcdir/configure conftestfile" \
- && test "$*" != "X conftestfile $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
-alias in your environment" 1>&2; exit 1; }
- fi
-
- test "$2" = conftestfile
- )
-then
- # Ok.
- :
-else
- { echo "configure: error: newly created file is older than distributed files!
-Check your system clock" 1>&2; exit 1; }
-fi
-rm -f conftest*
-echo "$ac_t""yes" 1>&6
-if test "$program_transform_name" = s,x,x,; then
- program_transform_name=
-else
- # Double any \ or $. echo might interpret backslashes.
- cat <<\EOF_SED > conftestsed
-s,\\,\\\\,g; s,\$,$$,g
-EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
-fi
-test "$program_prefix" != NONE &&
- program_transform_name="s,^,${program_prefix},; $program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
-
-# sed with no file args requires a program.
-test "$program_transform_name" = "" && program_transform_name="s,x,x,"
-
-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:697: checking whether ${MAKE-make} sets \${MAKE}" >&5
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftestmake <<\EOF
-all:
- @echo 'ac_maketemp="${MAKE}"'
-EOF
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
-if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
-else
- eval ac_cv_prog_make_${ac_make}_set=no
-fi
-rm -f conftestmake
-fi
-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SET_MAKE=
-else
- echo "$ac_t""no" 1>&6
- SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-
-PACKAGE=openafs
-
-VERSION=1.1.1
-
-if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
-fi
-cat >> confdefs.h <<EOF
-#define PACKAGE "$PACKAGE"
-EOF
-
-cat >> confdefs.h <<EOF
-#define VERSION "$VERSION"
-EOF
-
-
-
-missing_dir=`cd $ac_aux_dir && pwd`
-echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
-echo "configure:743: checking for working aclocal" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL=aclocal
- echo "$ac_t""found" 1>&6
-else
- ACLOCAL="$missing_dir/missing aclocal"
- echo "$ac_t""missing" 1>&6
-fi
-
-echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
-echo "configure:756: checking for working autoconf" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoconf --version) < /dev/null > /dev/null 2>&1; then
- AUTOCONF=autoconf
- echo "$ac_t""found" 1>&6
-else
- AUTOCONF="$missing_dir/missing autoconf"
- echo "$ac_t""missing" 1>&6
-fi
-
-echo $ac_n "checking for working automake""... $ac_c" 1>&6
-echo "configure:769: checking for working automake" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (automake --version) < /dev/null > /dev/null 2>&1; then
- AUTOMAKE=automake
- echo "$ac_t""found" 1>&6
-else
- AUTOMAKE="$missing_dir/missing automake"
- echo "$ac_t""missing" 1>&6
-fi
-
-echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
-echo "configure:782: checking for working autoheader" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoheader --version) < /dev/null > /dev/null 2>&1; then
- AUTOHEADER=autoheader
- echo "$ac_t""found" 1>&6
-else
- AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ac_t""missing" 1>&6
-fi
-
-echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
-echo "configure:795: checking for working makeinfo" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
- MAKEINFO=makeinfo
- echo "$ac_t""found" 1>&6
-else
- MAKEINFO="$missing_dir/missing makeinfo"
- echo "$ac_t""missing" 1>&6
-fi
-
-
-
-# Make sure we can run config.sub.
-if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
-else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
-fi
-
-echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:815: checking host system type" >&5
-
-host_alias=$host
-case "$host_alias" in
-NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
-esac
-
-host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-echo "$ac_t""$host" 1>&6
-
-
-
-#BOZO_SAVE_CORES BOS_RESTRICTED_MODE BOS_NEW_CONFIG pam sia
-# Check whether --with-afs-sysname or --without-afs-sysname was given.
-if test "${with_afs_sysname+set}" = set; then
- withval="$with_afs_sysname"
- :
-fi
-
-# Check whether --enable-obsolete or --disable-obsolete was given.
-if test "${enable_obsolete+set}" = set; then
- enableval="$enable_obsolete"
- :
-else
- enable_obsolete="no"
-fi
-
-# Check whether --enable-insecure or --disable-insecure was given.
-if test "${enable_insecure+set}" = set; then
- enableval="$enable_insecure"
- :
-else
- enable_insecure="no"
-fi
-
-# Check whether --enable-afsdb or --disable-afsdb was given.
-if test "${enable_afsdb+set}" = set; then
- enableval="$enable_afsdb"
- :
-else
- enable_afsdb="yes"
-fi
-
-# Check whether --enable-bos-restricted-mode or --disable-bos-restricted-mode was given.
-if test "${enable_bos_restricted_mode+set}" = set; then
- enableval="$enable_bos_restricted_mode"
- :
-else
- enable_bos_restricted_mode="no"
-fi
-
-# Check whether --enable-namei-fileserver or --disable-namei-fileserver was given.
-if test "${enable_namei_fileserver+set}" = set; then
- enableval="$enable_namei_fileserver"
- :
-else
- enable_namei_fileserver="no"
-fi
-
-# Check whether --enable-fast-restart or --disable-fast-restart was given.
-if test "${enable_fast_restart+set}" = set; then
- enableval="$enable_fast_restart"
- :
-else
- enable_fast_restart="no"
-fi
-
-# Check whether --enable-bitmap-later or --disable-bitmap-later was given.
-if test "${enable_bitmap_later+set}" = set; then
- enableval="$enable_bitmap_later"
- :
-else
- enable_bitmap_later="no"
-fi
-
-# Check whether --with-dux-kernel-headers or --without-dux-kernel-headers was given.
-if test "${with_dux_kernel_headers+set}" = set; then
- withval="$with_dux_kernel_headers"
- :
-fi
-
-# Check whether --with-linux-kernel-headers or --without-linux-kernel-headers was given.
-if test "${with_linux_kernel_headers+set}" = set; then
- withval="$with_linux_kernel_headers"
- :
-fi
-
-# Check whether --enable-kernel-module or --disable-kernel-module was given.
-if test "${enable_kernel_module+set}" = set; then
- enableval="$enable_kernel_module"
- :
-else
- enable_kernel_module="yes"
-
-fi
-
-# Check whether --enable-redhat-buildsys or --disable-redhat-buildsys was given.
-if test "${enable_redhat_buildsys+set}" = set; then
- enableval="$enable_redhat_buildsys"
- :
-else
- enable_redhat_buildsys="no"
-
-fi
-
-
-# Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:934: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:964: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
-fi
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with args.
-set dummy cl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1015: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
-fi
-
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1047: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
-
-ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
-cat > conftest.$ac_ext << EOF
-
-#line 1058 "configure"
-#include "confdefs.h"
-
-main(){return(0);}
-EOF
-if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
-fi
-rm -fr conftest*
-ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
-if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
-cross_compiling=$ac_cv_prog_cc_cross
-
-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1094: checking whether we are using GNU C" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.c <<EOF
-#ifdef __GNUC__
- yes;
-#endif
-EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
-fi
-
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
-
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-else
- GCC=
-fi
-
-ac_test_CFLAGS="${CFLAGS+set}"
-ac_save_CFLAGS="$CFLAGS"
-CFLAGS=
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1122: checking whether ${CC-cc} accepts -g" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
-else
- ac_cv_prog_cc_g=no
-fi
-rm -f conftest*
-
-fi
-
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
-
-
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1155: checking how to run the C preprocessor" >&5
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
-#line 1170 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
-#line 1187 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
-#line 1204 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- :
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
-fi
-rm -f conftest*
-fi
-rm -f conftest*
-fi
-rm -f conftest*
- ac_cv_prog_CPP="$CPP"
-fi
- CPP="$ac_cv_prog_CPP"
-else
- ac_cv_prog_CPP="$CPP"
-fi
-echo "$ac_t""$CPP" 1>&6
-
-echo $ac_n "checking for AIX""... $ac_c" 1>&6
-echo "configure:1235: checking for AIX" >&5
-cat > conftest.$ac_ext <<EOF
-#line 1237 "configure"
-#include "confdefs.h"
-#ifdef _AIX
- yes
-#endif
-
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
-#define _ALL_SOURCE 1
-EOF
-
-else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
-fi
-rm -f conftest*
-
-
-echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
-echo "configure:1259: checking for POSIXized ISC" >&5
-if test -d /etc/conf/kconfig.d &&
- grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
-then
- echo "$ac_t""yes" 1>&6
- ISC=yes # If later tests want to check for ISC.
- cat >> confdefs.h <<\EOF
-#define _POSIX_SOURCE 1
-EOF
-
- if test "$GCC" = yes; then
- CC="$CC -posix"
- else
- CC="$CC -Xp"
- fi
-else
- echo "$ac_t""no" 1>&6
- ISC=
-fi
-
-ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
-echo "configure:1281: checking for minix/config.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1286 "configure"
-#include "confdefs.h"
-#include <minix/config.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MINIX=yes
-else
- echo "$ac_t""no" 1>&6
-MINIX=
-fi
-
-if test "$MINIX" = yes; then
- cat >> confdefs.h <<\EOF
-#define _POSIX_SOURCE 1
-EOF
-
- cat >> confdefs.h <<\EOF
-#define _POSIX_1_SOURCE 2
-EOF
-
- cat >> confdefs.h <<\EOF
-#define _MINIX 1
-EOF
-
-fi
-
-
-echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:1330: checking for inline" >&5
-if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_cv_c_inline=no
-for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
-#line 1337 "configure"
-#include "confdefs.h"
-
-int main() {
-} $ac_kw foo() {
-; return 0; }
-EOF
-if { (eval echo configure:1344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-done
-
-fi
-
-echo "$ac_t""$ac_cv_c_inline" 1>&6
-case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<\EOF
-#define inline
-EOF
- ;;
- *) cat >> confdefs.h <<EOF
-#define inline $ac_cv_c_inline
-EOF
- ;;
-esac
-
-echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:1370: checking for working const" >&5
-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1375 "configure"
-#include "confdefs.h"
-
-int main() {
-
-/* Ultrix mips cc rejects this. */
-typedef int charset[2]; const charset x;
-/* SunOS 4.1.1 cc rejects this. */
-char const *const *ccp;
-char **p;
-/* NEC SVR4.0.2 mips cc rejects this. */
-struct point {int x, y;};
-static struct point const zero = {0,0};
-/* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
-const char *g = "string";
-ccp = &g + (g ? g-g : 0);
-/* HPUX 7.0 cc rejects these. */
-++ccp;
-p = (char**) ccp;
-ccp = (char const *const *) p;
-{ /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
-
- *t++ = 0;
-}
-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
-}
-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
-}
-{ /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
-}
-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
-}
-
-; return 0; }
-EOF
-if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_c_const" 1>&6
-if test $ac_cv_c_const = no; then
- cat >> confdefs.h <<\EOF
-#define const
-EOF
-
-fi
-
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:1445: checking for ANSI C header files" >&5
-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1450 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 1475 "configure"
-#include "confdefs.h"
-#include <string.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
-else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 1493 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
-else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-if test "$cross_compiling" = yes; then
- :
-else
- cat > conftest.$ac_ext <<EOF
-#line 1514 "configure"
-#include "confdefs.h"
-#include <ctype.h>
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
-
-EOF
-if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- :
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
-fi
-rm -fr conftest*
-fi
-
-fi
-fi
-
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
-EOF
-
-fi
-
-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:1549: checking for pid_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1554 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_pid_t=yes
-else
- rm -rf conftest*
- ac_cv_type_pid_t=no
-fi
-rm -f conftest*
-
-fi
-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
-if test $ac_cv_type_pid_t = no; then
- cat >> confdefs.h <<\EOF
-#define pid_t int
-EOF
-
-fi
-
-echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:1582: checking for size_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1587 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
-else
- rm -rf conftest*
- ac_cv_type_size_t=no
-fi
-rm -f conftest*
-
-fi
-echo "$ac_t""$ac_cv_type_size_t" 1>&6
-if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<\EOF
-#define size_t unsigned
-EOF
-
-fi
-
-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:1615: checking return type of signal handlers" >&5
-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 1620 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-#undef signal
-#endif
-#ifdef __cplusplus
-extern "C" void (*signal (int, void (*)(int)))(int);
-#else
-void (*signal ()) ();
-#endif
-
-int main() {
-int i;
-; return 0; }
-EOF
-if { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_type_signal" 1>&6
-cat >> confdefs.h <<EOF
-#define RETSIGTYPE $ac_cv_type_signal
-EOF
-
-
-
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1668: checking for a BSD compatible install" >&5
-if test -z "$INSTALL"; then
-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
-fi
-echo "$ac_t""$INSTALL" 1>&6
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:1721: checking whether ln -s works" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null
-then
- rm -f conftestdata
- ac_cv_prog_LN_S="ln -s"
-else
- ac_cv_prog_LN_S=ln
-fi
-fi
-LN_S="$ac_cv_prog_LN_S"
-if test "$ac_cv_prog_LN_S" = "ln -s"; then
- echo "$ac_t""yes" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-# Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1744: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
-fi
-fi
-RANLIB="$ac_cv_prog_RANLIB"
-if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-for ac_prog in 'bison -y' byacc
-do
-# Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1776: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YACC="$ac_cv_prog_YACC"
-if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-test -n "$YACC" && break
-done
-test -n "$YACC" || YACC="yacc"
-
-missing_dir=`cd $ac_aux_dir && pwd`
-for ac_prog in flex lex
-do
-# Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1812: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-LEX="$ac_cv_prog_LEX"
-if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-test -n "$LEX" && break
-done
-test -n "$LEX" || LEX=""$missing_dir/missing flex""
-
-# Extract the first word of "flex", so it can be a program name with args.
-set dummy flex; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1845: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
-fi
-fi
-LEX="$ac_cv_prog_LEX"
-if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test -z "$LEXLIB"
-then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
-echo "configure:1879: checking for yywrap in -l$ac_lib" >&5
-ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l$ac_lib $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1887 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char yywrap();
-
-int main() {
-yywrap()
-; return 0; }
-EOF
-if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
-echo $ac_n "checking lex output file root""... $ac_c" 1>&6
-echo "configure:1921: checking lex output file root" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- # The minimal lex program is just a single line: %%. But some broken lexes
-# (Solaris, I think it was) want two %% lines, so accommodate them.
-echo '%%
-%%' | $LEX
-if test -f lex.yy.c; then
- ac_cv_prog_lex_root=lex.yy
-elif test -f lexyy.c; then
- ac_cv_prog_lex_root=lexyy
-else
- { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
-fi
-fi
-
-echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
-LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
-
-echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
-echo "configure:1942: checking whether yytext is a pointer" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- # POSIX says lex can declare yytext either as a pointer or an array; the
-# default is implementation-dependent. Figure out which it is, since
-# not all implementations provide the %pointer and %array declarations.
-ac_cv_prog_lex_yytext_pointer=no
-echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
-ac_save_LIBS="$LIBS"
-LIBS="$LIBS $LEXLIB"
-cat > conftest.$ac_ext <<EOF
-#line 1954 "configure"
-#include "confdefs.h"
-`cat $LEX_OUTPUT_ROOT.c`
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_prog_lex_yytext_pointer=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-rm -f "${LEX_OUTPUT_ROOT}.c"
-
-fi
-
-echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
-if test $ac_cv_prog_lex_yytext_pointer = yes; then
- cat >> confdefs.h <<\EOF
-#define YYTEXT_POINTER 1
-EOF
-
-fi
-
-
-
-# Check whether --enable-bigendian or --disable-bigendian was given.
-if test "${enable_bigendian+set}" = set; then
- enableval="$enable_bigendian"
- openafs_cv_c_bigendian=yes
-fi
-
-# Check whether --enable-littleendian or --disable-littleendian was given.
-if test "${enable_littleendian+set}" = set; then
- enableval="$enable_littleendian"
- openafs_cv_c_bigendian=no
-fi
-
-echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
-echo "configure:1997: checking whether byte order is known at compile time" >&5
-if eval "test \"`echo '$''{'openafs_cv_c_bigendian_compile'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2002 "configure"
-#include "confdefs.h"
-
-#include <sys/types.h>
-#include <sys/param.h>
-int main() {
-
-#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:2014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- openafs_cv_c_bigendian_compile=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- openafs_cv_c_bigendian_compile=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$openafs_cv_c_bigendian_compile" 1>&6
-echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
-echo "configure:2028: checking whether byte ordering is bigendian" >&5
-if eval "test \"`echo '$''{'openafs_cv_c_bigendian'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
- if test "$openafs_cv_c_bigendian_compile" = "yes"; then
- cat > conftest.$ac_ext <<EOF
-#line 2035 "configure"
-#include "confdefs.h"
-
-#include <sys/types.h>
-#include <sys/param.h>
-int main() {
-
-#if BYTE_ORDER != BIG_ENDIAN
- not big endian
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- openafs_cv_c_bigendian=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- openafs_cv_c_bigendian=no
-fi
-rm -f conftest*
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
-else
- cat > conftest.$ac_ext <<EOF
-#line 2062 "configure"
-#include "confdefs.h"
-main () {
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[sizeof (long) - 1] == 1);
- }
-EOF
-if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- openafs_cv_c_bigendian=no
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- openafs_cv_c_bigendian=yes
-fi
-rm -fr conftest*
-fi
-
- fi
-
-fi
-
-echo "$ac_t""$openafs_cv_c_bigendian" 1>&6
-if test "$openafs_cv_c_bigendian" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define WORDS_BIGENDIAN 1
-EOF
-fi
-if test "$openafs_cv_c_bigendian_compile" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define ENDIANESS_IN_SYS_PARAM_H 1
-EOF
-fi
-
-
-echo $ac_n "checking your OS""... $ac_c" 1>&6
-echo "configure:2105: checking your OS" >&5
-system=$host
-case $system in
- *-linux*)
- MKAFS_OSTYPE=LINUX
- if test "x$enable_redhat_buildsys" = "xyes"; then
- cat >> confdefs.h <<\EOF
-#define ENABLE_REDHAT_BUILDSYS 1
-EOF
-
- fi
- if test "x$enable_kernel_module" = "xyes"; then
- if test "x$with_linux_kernel_headers" != "x"; then
- LINUX_KERNEL_PATH="$with_linux_kernel_headers"
- else
- LINUX_KERNEL_PATH="/usr/src/linux"
- fi
- if test -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
- linux_kvers=`fgrep UTS_RELEASE $LINUX_KERNEL_PATH/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $2 }'|tail -1`
- if test "x$linux_kvers" = "x"; then
- if test -f "$LINUX_KERNEL_PATH/include/linux/version-up.h"; then
- linux_kvers=`fgrep UTS_RELEASE $LINUX_KERNEL_PATH/include/linux/version-up.h |awk 'BEGIN { FS="\"" } { print $2 }'|tail -1`
- if test "x$linux_kvers" = "x"; then
-
- { echo "configure: error: Linux headers lack version definition 2" 1>&2; exit 1; }
- exit 1
- else
- LINUX_VERSION="$linux_kvers"
- fi
- else
- { echo "configure: error: Linux headers lack version definition" 1>&2; exit 1; }
- exit 1
- fi
- else
- LINUX_VERSION="$linux_kvers"
- fi
- else
- enable_kernel_module="no"
- fi
- if test ! -f "$LINUX_KERNEL_PATH/include/linux/autoconf.h"; then
- enable_kernel_module="no"
- fi
- if test "x$enable_kernel_module" = "xno"; then
- if test "x$with_linux_kernel_headers" != "x"; then
- { echo "configure: error: No usable linux headers found at $LINUX_KERNEL_PATH" 1>&2; exit 1; }
- exit 1
- else
- echo "configure: warning: No usable linux headers found at $LINUX_KERNEL_PATH so disabling kernel module" 1>&2
- fi
- fi
- fi
- echo "$ac_t""linux" 1>&6
- if test "x$enable_kernel_module" = "xyes"; then
-
-echo $ac_n "checking for i_bytes in struct inode""... $ac_c" 1>&6
-echo "configure:2160: checking for i_bytes in struct inode" >&5
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-if eval "test \"`echo '$''{'ac_cv_linux_fs_struct_inode_has_i_bytes'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
-cat > conftest.$ac_ext <<EOF
-#line 2168 "configure"
-#include "confdefs.h"
-#include <linux/fs.h>
-int main() {
-struct inode _inode;
-printf("%d\n", _inode.i_bytes);
-; return 0; }
-EOF
-if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_linux_fs_struct_inode_has_i_bytes=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_linux_fs_struct_inode_has_i_bytes=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_linux_fs_struct_inode_has_i_bytes" 1>&6
-CPPFLAGS="$save_CPPFLAGS"
-
-echo $ac_n "checking for page_lock in struct address_space""... $ac_c" 1>&6
-echo "configure:2192: checking for page_lock in struct address_space" >&5
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-if eval "test \"`echo '$''{'ac_cv_linux_fs_struct_address_space_has_page_lock'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
-cat > conftest.$ac_ext <<EOF
-#line 2200 "configure"
-#include "confdefs.h"
-#include <linux/fs.h>
-int main() {
-struct address_space _a_s;
-printf("%x\n", _a_s.page_lock);
-; return 0; }
-EOF
-if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_linux_fs_struct_address_space_has_page_lock=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_linux_fs_struct_address_space_has_page_lock=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_linux_fs_struct_address_space_has_page_lock" 1>&6
-CPPFLAGS="$save_CPPFLAGS"
-
-echo $ac_n "checking for inode_setattr return type""... $ac_c" 1>&6
-echo "configure:2224: checking for inode_setattr return type" >&5
-save_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
-if eval "test \"`echo '$''{'ac_cv_linux_func_inode_setattr_returns_int'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
-cat > conftest.$ac_ext <<EOF
-#line 2232 "configure"
-#include "confdefs.h"
-#include <linux/fs.h>
-int main() {
-struct inode _inode;
-struct iattr _iattr;
-int i;
-i = inode_setattr(&_inode, &_iattr);
-; return 0; }
-EOF
-if { (eval echo configure:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_linux_func_inode_setattr_returns_int=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_linux_func_inode_setattr_returns_int=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_linux_func_inode_setattr_returns_int" 1>&6
-CPPFLAGS="$save_CPPFLAGS"
-
-RHCONFIG_SP=""
-RHCONFIG_MP=""
-if test "x$enable_redhat_buildsys" = "xyes"; then
- echo "configure: warning: Configured to build from a Red Hat SPEC file" 1>&2
-else
- echo $ac_n "checking for redhat kernel configuration""... $ac_c" 1>&6
-echo "configure:2263: checking for redhat kernel configuration" >&5
- if test -f "${LINUX_KERNEL_PATH}/include/linux/rhconfig.h"; then
- ac_linux_rhconfig=yes
- RHCONFIG_SP="-D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0"
- RHCONFIG_MP="-D__BOOT_KERNEL_UP=0 -D__BOOT_KERNEL_SMP=1"
- echo "$ac_t""$ac_linux_rhconfig" 1>&6
- if test ! -f "/boot/kernel.h"; then
- echo "configure: warning: /boot/kernel.h does not exist. build may fail" 1>&2
- fi
- else
- ac_linux_rhconfig=no
- echo "$ac_t""$ac_linux_rhconfig" 1>&6
- fi
-fi
-
-
-
-
-if test "x$enable_redhat_buildsys" = "xyes"; then
- MPS=Default
-else
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $RHCONFIG_SP $CPPFLAGS"
- echo $ac_n "checking if kernel uses MODVERSIONS""... $ac_c" 1>&6
-echo "configure:2287: checking if kernel uses MODVERSIONS" >&5
- if eval "test \"`echo '$''{'ac_cv_linux_config_modversions'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
- cat > conftest.$ac_ext <<EOF
-#line 2293 "configure"
-#include "confdefs.h"
-#include <linux/config.h>
-
-int main() {
-#ifndef CONFIG_MODVERSIONS
-lose;
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_linux_config_modversions=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_linux_config_modversions=no
-fi
-rm -f conftest*
-fi
-
- echo "$ac_t""$ac_cv_linux_config_modversions" 1>&6
- echo $ac_n "checking which kernel modules to build""... $ac_c" 1>&6
-echo "configure:2318: checking which kernel modules to build" >&5
- if test "x$ac_linux_rhconfig" = "xyes" -o "x$ac_cv_linux_config_modversions" = "xno"; then
- MPS="MP SP"
- else
- if eval "test \"`echo '$''{'ac_cv_linux_config_smp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
- cat > conftest.$ac_ext <<EOF
-#line 2327 "configure"
-#include "confdefs.h"
-#include <linux/config.h>
-
-int main() {
-#ifndef CONFIG_SMP
-lose;
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_linux_config_smp=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_linux_config_smp=no
-fi
-rm -f conftest*
-fi
-
- if test "x$ac_cv_linux_config_smp" = "xyes"; then
- MPS=MP
- else
- MPS=SP
- fi
- fi
- CPPFLAGS=$save_CPPFLAGS
- echo "$ac_t""$MPS" 1>&6
-fi
-
-
- if test "x$ac_cv_linux_func_inode_setattr_returns_int" = "xyes" ; then
- cat >> confdefs.h <<\EOF
-#define INODE_SETATTR_NOT_VOID 1
-EOF
-
- fi
- if test "x$ac_cv_linux_fs_struct_inode_has_i_bytes" = "xyes"; then
- cat >> confdefs.h <<\EOF
-#define STRUCT_INODE_HAS_I_BYTES 1
-EOF
-
- fi
- if test "x$ac_cv_linux_fs_struct_address_space_has_page_lock" = "xyes"; then
- cat >> confdefs.h <<\EOF
-#define STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK 1
-EOF
-
- fi
- :
- fi
- ;;
- *-solaris*)
- MKAFS_OSTYPE=SOLARIS
- echo "$ac_t""sun4" 1>&6
-
-echo $ac_n "checking for vfs_dqrwlock in struct ufsvfs""... $ac_c" 1>&6
-echo "configure:2387: checking for vfs_dqrwlock in struct ufsvfs" >&5
-if eval "test \"`echo '$''{'ac_cv_solaris_ufsvfs_has_dqrwlock'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
-cat > conftest.$ac_ext <<EOF
-#line 2393 "configure"
-#include "confdefs.h"
-#define _KERNEL
-#include <sys/fs/ufs_inode.h>
-int main() {
-struct ufsvfs _ufsvfs;
-(void) _ufsvfs.vfs_dqrwlock;
-; return 0; }
-EOF
-if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_solaris_ufsvfs_has_dqrwlock=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_solaris_ufsvfs_has_dqrwlock=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_solaris_ufsvfs_has_dqrwlock" 1>&6
-if test "$ac_cv_solaris_ufsvfs_has_dqrwlock" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define HAVE_VFS_DQRWLOCK 1
-EOF
-
-fi
-
- ;;
- *-hpux*)
- MKAFS_OSTYPE=HPUX
- echo "$ac_t""hp_ux" 1>&6
- ;;
- *-irix*)
- MKAFS_OSTYPE=IRIX
- echo "$ac_t""sgi" 1>&6
- ;;
- *-aix*)
- MKAFS_OSTYPE=AIX
- echo "$ac_t""rs_aix" 1>&6
- ;;
- *-osf*)
- MKAFS_OSTYPE=DUX
- echo "$ac_t""alpha_dux" 1>&6
- if test "x$enable_kernel_module" = "xyes"; then
- if test "x$with_dux_kernel_headers" != "x"; then
- HEADER_RT=`ls ${with_dux_kernel_headers}/rt_preempt.h | head -1 | sed 's,/rt_preempt.h,,;s,/usr/sys/,,'`
- else
- HEADER_RT=`ls /usr/sys/*/rt_preempt.h | head -1 | sed 's,/rt_preempt.h,,;s,/usr/sys/,,'`
- fi
- fi
- if test "$HEADER_RT" = "*" ; then
- { echo "configure: error: Need a configured kernel directory" 1>&2; exit 1; }
- fi
-
- ;;
- *-darwin*)
- MKAFS_OSTYPE=DARWIN
- echo "$ac_t""ppc_darwin" 1>&6
- ;;
- *-freebsd*)
- MKAFS_OSTYPE=FBSD
- echo "$ac_t""i386_fbsd" 1>&6
- ;;
- *)
- echo "$ac_t""$system" 1>&6
- ;;
-esac
-
-if test "x$with_afs_sysname" != "x"; then
- AFS_SYSNAME="$with_afs_sysname"
-else
- echo $ac_n "checking your AFS sysname""... $ac_c" 1>&6
-echo "configure:2467: checking your AFS sysname" >&5
- case $host in
- i?86-*-freebsd4.2*)
- AFS_SYSNAME="i386_fbsd_42"
- ;;
- hppa-hp-hpux11*)
- AFS_SYSNAME="hp_ux110"
- ;;
- hppa-hp-hpux10*)
- AFS_SYSNAME="hp_ux102"
- ;;
- powerpc-apple-darwin1.2*)
- AFS_SYSNAME="ppc_darwin_12"
- ;;
- powerpc-apple-darwin1.3*)
- AFS_SYSNAME="ppc_darwin_13"
- ;;
- sparc-sun-solaris2.5*)
- AFS_SYSNAME="sun4x_55"
- ;;
- sparc-sun-solaris2.6)
- AFS_SYSNAME="sun4x_56"
- ;;
- sparc-sun-solaris2.7)
- AFS_SYSNAME="sun4x_57"
- ;;
- sparc-sun-solaris2.8)
- AFS_SYSNAME="sun4x_58"
- ;;
- alpha*-dec-osf4.0*)
- AFS_SYSNAME="alpha_dux40"
- ;;
- alpha*-dec-osf5.0*)
- AFS_SYSNAME="alpha_dux50"
- ;;
- mips-sgi-irix6.5)
- AFS_SYSNAME="sgi_65"
- ;;
- powerpc-*-linux*)
- AFS_SYSNAME="ppc_linuxXX"
- ;;
- alpha*-linux*)
- AFS_SYSNAME="alpha_linux_XX"
- ;;
- sparc-*-linux*)
- AFS_SYSNAME="sparc_linuxXX"
- ;;
- sparc64-*-linux*)
- AFS_SYSNAME="sparc64_linuxXX"
- ;;
- i?86-*-linux*)
- AFS_SYSNAME="i386_linuxXX"
- ;;
- power*-ibm-aix4.2*)
- AFS_SYSNAME="rs_aix42"
- ;;
- power*-ibm-aix4.3*)
- AFS_SYSNAME="rs_aix42"
- ;;
- *)
- { echo "configure: error: An AFS sysname is required" 1>&2; exit 1; }
- exit 1
- ;;
- esac
- case $AFS_SYSNAME in
- *_linux*)
- AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $1 $2}'`
- if test "x${AFS_SYSKVERS}" = "x"; then
- { echo "configure: error: Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname." 1>&2; exit 1; }
- fi
- _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/XX\$/$AFS_SYSKVERS/`
- AFS_SYSNAME="$_AFS_SYSNAME"
- ;;
- esac
- echo "$ac_t""$AFS_SYSNAME" 1>&6
-fi
-
-
-if test "x${MKAFS_OSTYPE}" = "xIRIX"; then
- echo Skipping library tests because they confuse Irix.
-else
- for ac_func in socket
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2551: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2556 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
- if test "$ac_cv_func_socket" = no; then
- for lib in socket inet; do
- if test "$HAVE_SOCKET" != 1; then
- echo $ac_n "checking for socket in -l${lib}""... $ac_c" 1>&6
-echo "configure:2608: checking for socket in -l${lib}" >&5
-ac_lib_var=`echo ${lib}'_'socket | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l${lib} $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2616 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char socket();
-
-int main() {
-socket()
-; return 0; }
-EOF
-if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -l$lib";HAVE_SOCKET=1;cat >> confdefs.h <<\EOF
-#define HAVE_SOCKET 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
- done
- fi
-
- for ac_func in connect
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2657: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2662 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
- if test "$ac_cv_func_connect" = no; then
- for lib in nsl; do
- if test "$HAVE_CONNECT" != 1; then
- echo $ac_n "checking for connect in -l${lib}""... $ac_c" 1>&6
-echo "configure:2714: checking for connect in -l${lib}" >&5
-ac_lib_var=`echo ${lib}'_'connect | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l${lib} $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2722 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char connect();
-
-int main() {
-connect()
-; return 0; }
-EOF
-if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -l$lib";HAVE_CONNECT=1;cat >> confdefs.h <<\EOF
-#define HAVE_CONNECT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
- done
- fi
-
- for ac_func in gethostbyname
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2763: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2768 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
- if test "$ac_cv_func_gethostbyname" = no; then
- for lib in dns nsl resolv; do
- if test "$HAVE_GETHOSTBYNAME" != 1; then
- echo $ac_n "checking for gethostbyname in -l${lib}""... $ac_c" 1>&6
-echo "configure:2819: checking for gethostbyname in -l${lib}" >&5
-ac_lib_var=`echo ${lib}'_'gethostbyname | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l${lib} $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2827 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char gethostbyname();
-
-int main() {
-gethostbyname()
-; return 0; }
-EOF
-if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -l$lib";HAVE_GETHOSTBYNAME=1;cat >> confdefs.h <<\EOF
-#define HAVE_GETHOSTBYNAME 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
- done
- fi
-
- for ac_func in res_search
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2868: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2873 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
- if test "$ac_cv_func_res_search" = no; then
- for lib in dns nsl resolv; do
- if test "$HAVE_RES_SEARCH" != 1; then
- echo $ac_n "checking for res_search in -l${lib}""... $ac_c" 1>&6
-echo "configure:2924: checking for res_search in -l${lib}" >&5
-ac_lib_var=`echo ${lib}'_'res_search | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-l${lib} $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2932 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char res_search();
-
-int main() {
-res_search()
-; return 0; }
-EOF
-if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -l$lib";HAVE_RES_SEARCH=1;cat >> confdefs.h <<\EOF
-#define HAVE_RES_SEARCH 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
- done
- if test "$HAVE_RES_SEARCH" = 1; then
- LIB_res_search="-l$lib"
- fi
- fi
-fi
-
-PTHREAD_LIBS=error
-echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
-echo "configure:2976: checking for pthread_attr_init in -lpthread" >&5
-ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lpthread $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2984 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pthread_attr_init();
-
-int main() {
-pthread_attr_init()
-; return 0; }
-EOF
-if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREAD_LIBS="-lpthread"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test "x$PTHREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
-echo "configure:3017: checking for pthread_attr_init in -lpthreads" >&5
-ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lpthreads $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3025 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pthread_attr_init();
-
-int main() {
-pthread_attr_init()
-; return 0; }
-EOF
-if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREAD_LIBS="-lpthreads"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-if test "x$PTHREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
-echo "configure:3059: checking for pthread_attr_init in -lc_r" >&5
-ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lc_r $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3067 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pthread_attr_init();
-
-int main() {
-pthread_attr_init()
-; return 0; }
-EOF
-if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREAD_LIBS="-lc_r"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-if test "x$PTHREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
-echo "configure:3101: checking for pthread_attr_init" >&5
-if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3106 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_attr_init(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pthread_attr_init();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
-choke me
-#else
-pthread_attr_init();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pthread_attr_init=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_pthread_attr_init=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREAD_LIBS=""
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-if test "x$PTHREAD_LIBS" = xerror; then
- echo "configure: warning: *** Unable to locate working posix thread library ***" 1>&2
-fi
-
-
-WITH_OBSOLETE=NO
-if test "$enable_obsolete" = "yes"; then
- WITH_OBSOLETE=YES
-fi
-
-WITH_INSECURE=NO
-if test "$enable_insecure" = "yes"; then
- WITH_INSECURE=YES
-fi
-
-# Fast restart
-if test "$enable_fast_restart" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define FAST_RESTART 1
-EOF
-
-fi
-
-if test "$enable_bitmap_later" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define BITMAP_LATER 1
-EOF
-
-fi
-
-if test "$enable_bos_restricted_mode" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define BOS_RESTRICTED_MODE 1
-EOF
-
-fi
-
-if test "$enable_namei_fileserver" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define AFS_NAMEI_ENV 1
-EOF
-
-fi
-
-if test "$enable_afsdb" = "yes"; then
- LIB_AFSDB="$LIB_res_search"
- cat >> confdefs.h <<\EOF
-#define AFS_AFSDB_ENV 1
-EOF
-
-fi
-
-SRCDIR_PARENT=`pwd`
-TOP_SRCDIR="${SRCDIR_PARENT}/src"
-
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:3205: checking for ANSI C header files" >&5
-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3210 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 3235 "configure"
-#include "confdefs.h"
-#include <string.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
-else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 3253 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
-else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-if test "$cross_compiling" = yes; then
- :
-else
- cat > conftest.$ac_ext <<EOF
-#line 3274 "configure"
-#include "confdefs.h"
-#include <ctype.h>
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
-
-EOF
-if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- :
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
-fi
-rm -fr conftest*
-fi
-
-fi
-fi
-
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
-EOF
-
-fi
-
-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:3309: checking for sys/wait.h that is POSIX.1 compatible" >&5
-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3314 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <sys/wait.h>
-#ifndef WEXITSTATUS
-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
-#endif
-#ifndef WIFEXITED
-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
-#endif
-int main() {
-int s;
-wait (&s);
-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
-; return 0; }
-EOF
-if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_sys_wait_h=no
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
-if test $ac_cv_header_sys_wait_h = yes; then
- cat >> confdefs.h <<\EOF
-#define HAVE_SYS_WAIT_H 1
-EOF
-
-fi
-
-ac_header_dirent=no
-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:3355: checking for $ac_hdr that defines DIR" >&5
-if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3360 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <$ac_hdr>
-int main() {
-DIR *dirp = 0;
-; return 0; }
-EOF
-if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
- ac_header_dirent=$ac_hdr; break
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
-if test $ac_header_dirent = dirent.h; then
-echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:3393: checking for opendir in -ldir" >&5
-ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldir $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3401 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir();
-
-int main() {
-opendir()
-; return 0; }
-EOF
-if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -ldir"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-else
-echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:3434: checking for opendir in -lx" >&5
-ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lx $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3442 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir();
-
-int main() {
-opendir()
-; return 0; }
-EOF
-if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lx"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
-for ac_hdr in stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3479: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3484 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-for ac_hdr in netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3519: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3524 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-for ac_hdr in mntent.h sys/vfs.h sys/param.h sys/fs_types.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3559: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3564 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-for ac_hdr in sys/mount.h strings.h termios.h signal.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3599: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3604 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-for ac_hdr in windows.h malloc.h winsock2.h direct.h io.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3639: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3644 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-for ac_hdr in security/pam_modules.h siad.h usersec.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3679: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3684 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
-for ac_func in utimes random srandom getdtablesize snprintf re_comp re_exec
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3719: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3724 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
-
-if test "x$enable_kernel_module" = "xyes"; then
-ENABLE_KERNEL_MODULE=libafs
-fi
-
-
-
-
-
-
-
-
-
-
-
-trap '' 1 2 15
-cat > confcache <<\EOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs. It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
-#
-# By default, configure uses ./config.cache as the cache file,
-# creating it if it does not exist already. You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
-#
-EOF
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- -e "s/'/'\\\\''/g" \
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- esac >> confcache
-if cmp -s $cache_file confcache; then
- :
-else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
-fi
-rm -f confcache
-
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-# Any assignment to VPATH causes Sun make to only execute
-# the first set of double-colon rules, so remove it if not needed.
-# If there is a colon in the path, we need to keep it.
-if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
-fi
-
-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-
-DEFS=-DHAVE_CONFIG_H
-
-# Without the "./", some shells look in PATH for config.status.
-: ${CONFIG_STATUS=./config.status}
-
-echo creating $CONFIG_STATUS
-rm -f $CONFIG_STATUS
-cat > $CONFIG_STATUS <<EOF
-#! /bin/sh
-# Generated automatically by configure.
-# Run this file to recreate the current configuration.
-# This directory was configured as follows,
-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-#
-# $0 $ac_configure_args
-#
-# Compiler output produced by configure, useful for debugging
-# configure, is in ./config.log if it exists.
-
-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
-for ac_option
-do
- case "\$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
- esac
-done
-
-ac_given_srcdir=$srcdir
-ac_given_INSTALL="$INSTALL"
-
-trap 'rm -fr `echo "\
-Makefile \
-src/config/Makefile.version-NOCML \
-src/config/Makefile.${AFS_SYSNAME} \
-src/libafs/MakefileProto.${MKAFS_OSTYPE} \
-src/pam/Makefile \
-src/afsd/afs.ppc_darwin.plist \
- src/config/afsconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
-EOF
-cat >> $CONFIG_STATUS <<EOF
-
-# Protect against being on the right side of a sed subst in config.status.
-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
-$ac_vpsub
-$extrasub
-s%@SHELL@%$SHELL%g
-s%@CFLAGS@%$CFLAGS%g
-s%@CPPFLAGS@%$CPPFLAGS%g
-s%@CXXFLAGS@%$CXXFLAGS%g
-s%@FFLAGS@%$FFLAGS%g
-s%@DEFS@%$DEFS%g
-s%@LDFLAGS@%$LDFLAGS%g
-s%@LIBS@%$LIBS%g
-s%@exec_prefix@%$exec_prefix%g
-s%@prefix@%$prefix%g
-s%@program_transform_name@%$program_transform_name%g
-s%@bindir@%$bindir%g
-s%@sbindir@%$sbindir%g
-s%@libexecdir@%$libexecdir%g
-s%@datadir@%$datadir%g
-s%@sysconfdir@%$sysconfdir%g
-s%@sharedstatedir@%$sharedstatedir%g
-s%@localstatedir@%$localstatedir%g
-s%@libdir@%$libdir%g
-s%@includedir@%$includedir%g
-s%@oldincludedir@%$oldincludedir%g
-s%@infodir@%$infodir%g
-s%@mandir@%$mandir%g
-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
-s%@INSTALL_DATA@%$INSTALL_DATA%g
-s%@PACKAGE@%$PACKAGE%g
-s%@VERSION@%$VERSION%g
-s%@ACLOCAL@%$ACLOCAL%g
-s%@AUTOCONF@%$AUTOCONF%g
-s%@AUTOMAKE@%$AUTOMAKE%g
-s%@AUTOHEADER@%$AUTOHEADER%g
-s%@MAKEINFO@%$MAKEINFO%g
-s%@SET_MAKE@%$SET_MAKE%g
-s%@host@%$host%g
-s%@host_alias@%$host_alias%g
-s%@host_cpu@%$host_cpu%g
-s%@host_vendor@%$host_vendor%g
-s%@host_os@%$host_os%g
-s%@CC@%$CC%g
-s%@CPP@%$CPP%g
-s%@LN_S@%$LN_S%g
-s%@RANLIB@%$RANLIB%g
-s%@YACC@%$YACC%g
-s%@LEX@%$LEX%g
-s%@LEXLIB@%$LEXLIB%g
-s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
-s%@RHCONFIG_SP@%$RHCONFIG_SP%g
-s%@RHCONFIG_MP@%$RHCONFIG_MP%g
-s%@MPS@%$MPS%g
-s%@HEADER_RT@%$HEADER_RT%g
-s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
-s%@AFS_SYSNAME@%$AFS_SYSNAME%g
-s%@ENABLE_KERNEL_MODULE@%$ENABLE_KERNEL_MODULE%g
-s%@LIB_AFSDB@%$LIB_AFSDB%g
-s%@LINUX_KERNEL_PATH@%$LINUX_KERNEL_PATH%g
-s%@LINUX_VERSION@%$LINUX_VERSION%g
-s%@MKAFS_OSTYPE@%$MKAFS_OSTYPE%g
-s%@TOP_SRCDIR@%$TOP_SRCDIR%g
-s%@WITH_OBSOLETE@%$WITH_OBSOLETE%g
-s%@WITH_INSECURE@%$WITH_INSECURE%g
-
-CEOF
-EOF
-
-cat >> $CONFIG_STATUS <<\EOF
-
-# Split the substitutions into bite-sized pieces for seds with
-# small command number limits, like on Digital OSF/1 and HP-UX.
-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
-ac_file=1 # Number of current file.
-ac_beg=1 # First line for current file.
-ac_end=$ac_max_sed_cmds # Line after last line for current file.
-ac_more_lines=:
-ac_sed_cmds=""
-while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
-done
-if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
-fi
-EOF
-
-cat >> $CONFIG_STATUS <<EOF
-
-CONFIG_FILES=\${CONFIG_FILES-"\
-Makefile \
-src/config/Makefile.version-NOCML \
-src/config/Makefile.${AFS_SYSNAME} \
-src/libafs/MakefileProto.${MKAFS_OSTYPE} \
-src/pam/Makefile \
-src/afsd/afs.ppc_darwin.plist \
-"}
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
-
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
-
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
-
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
-
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
-# $configure_input" ;;
- *) ac_comsub= ;;
- esac
-
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
-s%@configure_input@%$configure_input%g
-s%@srcdir@%$srcdir%g
-s%@top_srcdir@%$top_srcdir%g
-s%@INSTALL@%$INSTALL%g
-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
-fi; done
-rm -f conftest.s*
-
-# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
-# NAME is the cpp macro being defined and VALUE is the value it is being given.
-#
-# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
-ac_dC='\3'
-ac_dD='%g'
-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
-ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_uB='\([ ]\)%\1#\2define\3'
-ac_uC=' '
-ac_uD='\4%g'
-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_eB='$%\1#\2define\3'
-ac_eC=' '
-ac_eD='%g'
-
-if test "${CONFIG_HEADERS+set}" != set; then
-EOF
-cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="src/config/afsconfig.h"
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-fi
-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- echo creating $ac_file
-
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
-
-EOF
-
-# Transform confdefs.h into a sed script conftest.vals that substitutes
-# the proper values into config.h.in to produce config.h. And first:
-# Protect against being on the right side of a sed subst in config.status.
-# Protect against being in an unquoted here document in config.status.
-rm -f conftest.vals
-cat > conftest.hdr <<\EOF
-s/[\\&%]/\\&/g
-s%[\\$`]%\\&%g
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
-s%ac_d%ac_u%gp
-s%ac_u%ac_e%gp
-EOF
-sed -n -f conftest.hdr confdefs.h > conftest.vals
-rm -f conftest.hdr
-
-# This sed command replaces #undef with comments. This is necessary, for
-# example, in the case of _POSIX_SOURCE, which is predefined and required
-# on some systems where configure will not decide to define it.
-cat >> conftest.vals <<\EOF
-s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
-EOF
-
-# Break up conftest.vals because some shells have a limit on
-# the size of here documents, and old seds have small limits too.
-
-rm -f conftest.tail
-while :
-do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
-' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
-done
-rm -f conftest.vals
-
-cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
-fi; done
-
-EOF
-cat >> $CONFIG_STATUS <<EOF
-
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-
-exit 0
-EOF
-chmod +x $CONFIG_STATUS
-rm -fr confdefs* $ac_clean_files
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
-
+++ /dev/null
-[Client]
----Comment---=
----FileGroup---=
-HKLM0=Software\TransarcCorporation\AFS Client\CurrentVersion
-HKLM1=Software\TransarcCorporation\AFS Client
-HKLM2=Software\TransarcCorporation\AFS Client\1.0 4.01
-HKLM3=SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon
-HKCR0=CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}
-HKLM4=SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
-HKCR1=CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}\InprocServer32
-HKLM5=SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider
-HKCR2=*\shellex\ContextMenuHandlers\AFS Client Shell Extension
-HKCR3=FOLDER\shellex\ContextMenuHandlers\AFS Client Shell Extension
-HKLM6=SYSTEM\CurrentControlSet\Services\NetBT\Parameters\r
-
-[Client:HKCR:*\shellex\ContextMenuHandlers\AFS Client Shell Extension]
----Comment---=
-(Default)=S,{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}
-
-[Client:HKCR:CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}\InprocServer32]
----Comment---=
-(Default)=S,<TARGETDIR>\Client\Program\afs_shl_ext.dll
-ThreadingModel=S,Apartment
-
-[Client:HKLM:SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
-Cell=S,
----Comment---=
-(Default)=S,
-
-[Client:HKLM:SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
-SMBDeviceEnabled=N,0
-
-[Server:HKLM:System\CurrentControlSet\Services\EventLog\Application\AFS Service]
-(Default)=S,
----Comment---=
-EventMessageFile=S,<EVENT_MSG_DLL>
-TypesSupported=N,7
-
-[Server]
----Comment---=
----FileGroup---=
-HKLM0=Software\TransarcCorporation\AFS Server\CurrentVersion
-HKLM1=System\CurrentControlSet\Services\EventLog\Application\AFS Service
-HKLM2=Software\TransarcCorporation\AFS Server
-HKLM3=Software\TransarcCorporation\AFS Server\1.0 4.01
-
-[WinNT_Client_NoUninstall:HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\File Manager\AddOns]
----Comment---=
-(Default)=S,
-AFS Client FME=S,<TARGETDIR>\Client\Program\afs_fme.dll
-
-[Control_Center]
----Comment---=
----FileGroup---=
-HKLM0=Software\TransarcCorporation\AFS Control Center\CurrentVersion
-HKLM1=Software\TransarcCorporation\AFS Control Center
-HKLM2=Software\TransarcCorporation\AFS Control Center\1.0 4.01
-
-[Client:HKLM:Software\TransarcCorporation\AFS Client\1.0 4.01]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-Title=S,<CLIENT_TITLE>
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Client
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,<CLIENT_DESC>
-
-[Client_NoUninstall]
----Comment---=
----FileGroup---=
-HKLM0=SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved
-
-[Client:HKLM:SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon]
-(Default)=S,
----Comment---=
-
-[Light_Client:HKLM:SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
----Comment---=
-(Default)=S,
-Gateway=S,
-
-[Control_Center:HKLM:Software\TransarcCorporation\AFS Control Center\1.0 4.01]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Control Center
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS Control Center for Windows NT
-
-[Client_NoUninstall:HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
-{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}=S,AFS Client Shell Extension
-(Default)=S,
----Comment---=
-
-[Control_Center:HKLM:Software\TransarcCorporation\AFS Control Center]
----Comment---=
-(Default)=S,
-
-[Control_Center:HKLM:Software\TransarcCorporation\AFS Control Center\CurrentVersion]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Control Center
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS Control Center for Windows NT
-
-[Light_Client]
----Comment---=
----FileGroup---=
-HKLM0=SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
-
-[Full_Client:HKLM:SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
----Comment---=
-(Default)=S,
-IsGateway=N,0
-
-[Server:HKLM:Software\TransarcCorporation\AFS Server]
----Comment---=
-(Default)=S,
-
-[Docs]
----Comment---=
----FileGroup---=
-HKLM0=Software\TransarcCorporation\AFS Supplemental Documentation\CurrentVersion
-HKLM1=Software\TransarcCorporation\AFS Supplemental Documentation
-HKLM2=Software\TransarcCorporation\AFS Supplemental Documentation\1.0 4.01
-
-[Data]
-Set0=Server
-Set1=Client
-Set2=Control_Center
-Set3=Client_NoUninstall
-Set4=WinNT_Client_NoUninstall
-Set5=Light_Client
-Set6=Full_Client
-Set7=Docs
-
-[Client:HKLM:Software\TransarcCorporation\AFS Client\CurrentVersion]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-Title=S,<CLIENT_TITLE>
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Client
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,<CLIENT_DESC>
-
-[Full_Client]
----Comment---=
----FileGroup---=
-HKLM0=SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
-
-[Docs:HKLM:Software\TransarcCorporation\AFS Supplemental Documentation\CurrentVersion]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Documentation
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS System Administration Documentation
-
-[Server:HKLM:Software\TransarcCorporation\AFS Server\1.0 4.01]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Server
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS Server for Windows NT
-
-[Client:HKLM:SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]
-(Default)=S,
----Comment---=
-Class=N,2
-Name=S,TransarcAFSDaemon
-ProviderPath=S,<LOGON_DLL>
-AuthentProviderPath=S,<LOGON_DLL>
-
-[WinNT_Client_NoUninstall:HKLM:SOFTWARE\Microsoft\Windows NT\Current Version\File Manager\AddOns]
-(Default)=S,
----Comment---=
-AFS Client FME=S,<TARGETDIR>\Client\Program\afs_fme.dll
-
-[Client:HKLM:Software\TransarcCorporation\AFS Client]
----Comment---=
-(Default)=S,
-
-[WinNT_Client_NoUninstall]
----Comment---=
----FileGroup---=
-HKLM0=SOFTWARE\Microsoft\Windows NT\CurrentVersion\File Manager\AddOns
-
-[Docs:HKLM:Software\TransarcCorporation\AFS Supplemental Documentation\1.0 4.01]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Documentation
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS System Administration Documentation
-
-[General]
-Type=REGISTRYDATA
-Version=1.00.000
-
-[Client:HKCR:FOLDER\shellex\ContextMenuHandlers\AFS Client Shell Extension]
----Comment---=
-(Default)=S,{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}
-
-[Server:HKLM:Software\TransarcCorporation\AFS Server\CurrentVersion]
-PatchLevel=N,401
-BetaLevel=N,1
-Revision=N,0
----Comment---=
-(Default)=S,
-MajorVersion=N,1
-InstallDateString=S,<INSTALL_DATE>
-PathName=S,<TARGETDIR>\Server
-Software Type=S,File System
-MinorVersion=N,0
-ReleaseType=S,<RELEASE_TYPE>
-VersionString=S,1.0 4.01
-Description=S,AFS Server for Windows NT
-
-[Client:HKCR:CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}]
----Comment---=
-(Default)=S,AFS Client Shell Extension
-
-[Docs:HKLM:Software\TransarcCorporation\AFS Supplemental Documentation]
----Comment---=
-(Default)=S,
-
+++ /dev/null
-[Data]
-DEFAULT_INSTALL_DIR=IBM\AFS
-NOTHING_SELECTED_MSG=You must select something to install before continuing.
-DOWNGRADE_LIGHT_CLIENT_MSG=Downgrade AFS Light Client
-SETUP_FINISHED_MSG=Setup has finished installing AFS® for Windows on your computer.
-TITLE_MAIN=Open AFS for Windows 1.0 4.01
-SEVERE_DIALOG_TITLE=Open AFS for Windows
-UPGRADE_CLIENT_MSG=Upgrade AFS Client
-PRODUCT_VERSION_MINOR=0
-CONFIGURING_AFS_CLIENT_SERVICE=Configuring the AFS Client service
-PRODUCT_NAME_CC=AFS Control Center
-PRODUCT_NAME_SERVER=AFS Server
-UPGRADE_CC_MSG=Upgrade AFS Control Center
-DOWNGRADE_SERVER_MSG=Downgrade AFS Server
-UNINST_DISPLAY_NAME_LIGHT_CLIENT=AFS Light 1.0 4.01
-PRODUCT_NAME_LIGHT_CLIENT=AFS Light
-ERROR_COMPONENT=Component:
-COMPANY_NAME=TransarcCorporation
-REINSTALL_CLIENT_MSG=Reinstall AFS Client
-DOWNGRADE_CC_MSG=Downgrade AFS Control Center
-UNINST_DISPLAY_NAME_DOCS=AFS Supplemental Documentation 1.0 4.01
-UNINST_KEY_SERVER=AFS Server
-VIEW_README_PROMPT_MSG=View the readme file
-INSTALL_LIGHT_CLIENT_MSG=AFS Light Client
-PRODUCT_VERSION_TITLE=1.0 4.01
-UNINST_DISPLAY_NAME_CC=AFS Control Center 1.0 4.01
-ERROR_FILEGROUP=File Group:
-ERROR_MOVEDATA=An error occurred during the move data process: %d
-CONFIGURING_AFS_SERVER_SERVICE=Configuring the AFS Server service
-CLIENT_DESC=AFS Client
-SET_NETWORK_PROVIDER_ERROR=Unable to configure the AFS Client as a Network Provider.
-PRODUCT_VERSION_MAJOR=1
-UNINST_DISPLAY_NAME_SERVER=AFS Server 1.0 4.01
-SETUPUTILS_NOT_FOUND=The file InstallUtils.dll could not be loaded. Setup cannot continue.
-LIGHT_CLIENT_ALREADY_INSTALLED_MSG=AFS Light is already installed on this computer.
-SETUP_TYPE_MSG=Select the AFS® for Windows products that you wish to install:
-PRODUCT_KEY_SERVER=bosctlsvc.exe
-INSTALL_SERVER_MSG=AFS Server
-REINSTALL_LIGHT_CLIENT_MSG=Reinstall AFS Light Client
-PRODUCT_NAME_DOCS=AFS Supplemental Documentation
-NEW_STRING1=
-PRODUCT_KEY_DOCS=dummy.exe
-TITLE_CAPTIONBAR=AFS® for Windows Setup
-CONFIG_FILE_MAN_EXT_ERROR=Failed to configure the AFS Client File Manager Extension.
-CONFIGURING_AFS_CREDS_ERROR=Failed to configure the AFS Client toolbar tool.
-UPGRADE_SERVER_MSG=Upgrade AFS Server
-PRODUCT_VERSION_RELEASE_TYPE=GA
-AFS_CLIENT_SERVICE_INSTALL_ERROR=An error occurred during configuration of the AFS Client service: %d
-CLIENT_TITLE=AFS Client
-PRODUCT_KEY_CC=TaAfsServerManager.exe
-AFS_SERVER_SERVICE_INSTALL_ERROR=An error occurred during configuration of the AFS Server service: %d
-LIGHT_CLIENT_DESC=AFS Light
-CLIENT_FILE_MAN_EXT_ENTRY_NAME=TransarcAFSFileManExt
-INSTALL_CC_MSG=AFS Control Center
-REINSTALL_CC_MSG=Reinstall AFS Control Center
-PRODUCT_NAME_CLIENT=AFS Client
-CONFIGURING_AFS_CREDS=Configuring the AFS Client
-DOWNGRADE_DOCS_MSG=Downgrade AFS Supplemental Documentation
-INSTALL_DOCS_MSG=AFS Supplemental Documentation
-PRODUCT_KEY_LIGHT_CLIENT=fs.exe
-FOLDER_NAME=IBM AFS
-ERROR_FILE=File:
-ERROR_VGARESOLUTION=This program requires VGA or better resolution.
-REINSTALL_SERVER_MSG=Reinstall AFS Server
-DOWNGRADE_CLIENT_MSG=Downgrade AFS Client
-PRODUCT_VERSION_BETA_LEVEL=0
-UNINST_KEY_CC=AFS Control Center
-UNINST_KEY_CLIENT=AFS Client
-UPGRADE_DOCS_MSG=Upgrade AFS Supplemental Documentation
-DOWNGRADE_PREP_MSG=Preparing to downgrade the %s. Please wait...this may be a lengthy process.
-PRODUCT_VERSION_PATCH_LEVEL=401
-NON_UPGRADABLE_SOFTWARE_INSTALLED_ERROR_MSG=Non-upgradable versions of this product are installed on your computer. These \nversions must be uninstalled before the current versions can be installed.
-CANT_INSTALL_BOTH_CLIENTS_MSG=Please select only one of the AFS Clients to install. You cannot install both.
-UNINST_KEY_LIGHT_CLIENT=AFS Light
-UPGRADE_LIGHT_CLIENT_MSG=Upgrade AFS Light Client
-UNINST_KEY_DOCS=AFS Supplemental Documentation
-UNINST_DISPLAY_NAME_CLIENT=AFS Client 1.0 4.01
-REINSTALL_DOCS_MSG=Reinstall AFS Supplemental Documentation
-UPGRADE_PREP_MSG=Preparing to upgrade the %s. Please wait...this may be a lengthy process.
-MUST_BE_AN_ADMIN_MSG=You must be a member of the local Administrators group on this Windows system in order to install this product.
-LIGHT_CLIENT_TITLE=AFS Light
-PRODUCT_NAME=AFS® for Windows
-PRODUCT_KEY_CLIENT=fs.exe
-ERROR_UNINSTSETUP=unInstaller setup failed to initialize. You may not be able to uninstall this product.
-ADD_PATH_ERROR=Failed to add program directory to the system path.
-SERVER_NEEDS_CLIENT_MSG=To install the AFS Server, you must also choose to install the AFS Client.
-INSTALL_CLIENT_MSG=AFS Client
-WSPP_FOLDER_NAME=IBM WebSphere\Performance Pack\AFS
-REINSTALL_PREP_MSG=Preparing to reinstall the %s. Please wait...this may be a lengthy process.
-APPS_NOT_SAME_VERSION=The components you have selected for installation will result in a mixture of different versions of AFS for Windows. AFS will not work correctly if installed in this way. Please remake your selections so that all of the AFS components will be the same version after installation.\n
-STATUS_INSTALLING_CLIENT=Installing the AFS Client...
-STATUS_INSTALLING_SERVER=Installing the AFS Server...
-STATUS_INSTALLING_CCENTER=Installing the AFS Control Center...
-STATUS_INSTALLING_LIGHT=Installing AFS Light...
-STATUS_INSTALLING_HEADERS=Installing AFS Client extension files...
-STATUS_INSTALLING_DOCS=Installing AFS Supplemental Documentation...
-STATUS_INSTALLING_LANGUAGE=Installing language-specific content...
-DOCUMENTATION_ITEM_NAME=Documentation
-CFG_WIZARD_ITEM_NAME=Configuration Wizard
-CREDS_TOOL_ITEM_NAME=Authentication
-CLIENT_HELP_ITEM_NAME=AFS Client Help
-LIGHT_CLIENT_HELP_ITEM_NAME=AFS Light Help
-SERVER_MANAGER_ITEM_NAME=Server Manager
-ACCT_MANAGER_ITEM_NAME=Account Manager
-SERVER_GROUP_NAME=Server
-CLIENT_GROUP_NAME=Client
-CCENTER_GROUP_NAME=Control Center
-LIGHT_GROUP_NAME=Light
-
-[General]
-Language=0009
-Type=STRINGTABLESPECIFIC
-Version=1.00.000
-
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_file.c,v 1.6 2001/07/15 07:22:26 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_file.c,v 1.7 2001/09/11 15:47:36 hartmans Exp $");
#include "../afs/sysincludes.h" /* Standard vendor system headers */
#include "../afs/afsincludes.h" /* Afs-based standard headers */
}
if (!afs_osicred_initialized) {
/* valid for alpha_osf, SunOS, Ultrix */
- bzero((char *)&afs_osi_cred, sizeof(struct AFS_UCRED));
+ memset((char *)&afs_osi_cred, 0, sizeof(struct AFS_UCRED));
crhold(&afs_osi_cred); /* don't let it evaporate, since it is static */
afs_osicred_initialized = 1;
}
#include "../h/sched.h"
#define osi_Time() (xtime.tv_sec)
#if (CPU == sparc64)
-#define osi_GetTime(V) do { (*##V##).tv_sec = xtime.tv_sec; (*##V##).tv_usec = xtime.tv_usec; } while (0)
+#define osi_GetTime(V) do { (*(V)).tv_sec = xtime.tv_sec; (*(V)).tv_usec = xtime.tv_usec; } while (0)
#else
#define osi_GetTime(V) (*(V)=xtime)
#endif
((vc)->v_op == &afs_dir_iops) ? 1 : \
((vc)->v_op == &afs_symlink_iops))
-/* bcopy is in stds.h, just so fcrpyt.c can pick it up. */
+#if 0
+/* bcopy is in stds.h, just so fcrypt.c can pick it up. */
#define bzero(D,C) memset((D), 0, (C))
#define bcmp(A,B,C) memcmp((A), (B), (C))
+#endif
/* We often need to pretend we're in user space to get memory transfers
* right for the kernel calls we use.
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_misc.c,v 1.6 2001/07/15 07:22:26 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_misc.c,v 1.7 2001/09/11 15:47:37 hartmans Exp $");
#include "../afs/sysincludes.h"
#include "../afs/afsincludes.h"
if (!code) {
if (nd.dentry->d_inode) {
- *dpp = nd.dentry;
+ *dpp = dget(nd.dentry);
code = 0;
}
- else
- path_release(&nd);
+ path_release(&nd);
}
#else
if (seg == AFS_UIOUSER) {
#endif
printf("afs_put_inode: ino %d (0x%x) has count %d\n", ip->i_ino, ip);
+ ObtainWriteLock(&vc->lock, 504);
afs_InactiveVCache(vc, credp);
+ ReleaseWriteLock(&vc->lock);
#if defined(AFS_LINUX24_ENV)
atomic_set(&ip->i_count, 0);
#else
if (!ip->i_count)
#endif
osi_clear_inode(ip);
- AFS_GUNLOCK();
}
- else {
- AFS_GUNLOCK();
+ else
iput(ip);
- }
+ AFS_GUNLOCK();
}
/* check_bad_parent() : Checks if this dentry's vcache is a root vcache
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_module.c,v 1.6 2001/07/15 07:22:26 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_module.c,v 1.7 2001/09/11 15:47:37 hartmans Exp $");
#include "../afs/sysincludes.h"
#include "../afs/afsincludes.h"
#include "../h/mm.h"
#include <linux/module.h>
+#include <linux/slab.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+#include <linux/init.h>
+#endif
+
#ifdef AFS_SPARC64_LINUX24_ENV
asmlinkage int (*sys_socketcallp)(int call, long *args);
#endif /* no socketcall on alpha */
asmlinkage int (*sys_killp)(int pid, int signal);
-asmlinkage int (*sys_setgroupsp)(int gidsetsize, gid_t *grouplist);
+asmlinkage long (*sys_setgroupsp)(int gidsetsize, gid_t *grouplist);
#ifdef AFS_SPARC64_LINUX20_ENV
extern unsigned int sys_call_table[]; /* changed to uint because SPARC64 has syscaltable of 32bit items */
}
#endif
+#ifdef AFS_IA64_LINUX20_ENV
+unsigned char ia64_syscall_stub[] =
+{
+ 0x00, 0x50, 0x45, 0x16, 0x80, 0x05, // [MII] alloc r42=ar.pfs,8,3,6,0
+ 0x90, 0x02, 0x00, 0x62, 0x00, 0x60, // mov r41=b0
+ 0x05, 0x00, 0x01, 0x84, // mov r43=r32
+ 0x00, 0x60, 0x01, 0x42, 0x00, 0x21, // [MII] mov r44=r33
+ 0xd0, 0x02, 0x88, 0x00, 0x42, 0xc0, // mov r45=r34
+ 0x05, 0x18, 0x01, 0x84, // mov r46=r35
+ 0x0d, 0x78, 0x01, 0x48, 0x00, 0x21, // [MFI] mov r47=r36
+ 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, // nop.f 0x0
+ 0x06, 0x08, 0x00, 0x84, // mov r48=gp;;
+ 0x05, 0x00, 0x00, 0x00, 0x01, 0x00, // [MLX] nop.m 0x0
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, // movl r15=0x0;;
+ 0x01, 0x00, 0x00, 0x60, //
+ 0x0a, 0x80, 0x20, 0x1e, 0x18, 0x14, // [MMI] ld8 r16=[r15],8;;
+ 0x10, 0x00, 0x3c, 0x30, 0x20, 0xc0, // ld8 gp=[r15]
+ 0x00, 0x09, 0x00, 0x07, // mov b6=r16
+ 0x1d, 0x00, 0x00, 0x00, 0x01, 0x00, // [MFB] nop.m 0x0
+ 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, // nop.f 0x0
+ 0x68, 0x00, 0x00, 0x10, // br.call.sptk.many b0=b6;;
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // [MII] nop.m 0x0
+ 0x00, 0x50, 0x01, 0x55, 0x00, 0x00, // mov.i ar.pfs=r42
+ 0x90, 0x0a, 0x00, 0x07, // mov b0=r41
+ 0x1d, 0x08, 0x00, 0x60, 0x00, 0x21, // [MFB] mov gp=r48
+ 0x00, 0x00, 0x00, 0x02, 0x00, 0x80, // nop.f 0x0
+ 0x08, 0x00, 0x84, 0x00 // br.ret.sptk.many b0;;
+};
+
+void ia64_imm64_fixup(unsigned long v, void *code)
+{
+ unsigned long *bundle = (unsigned long *) code;
+
+ unsigned long insn;
+ unsigned long slot1;
+
+ insn = ((v & 0x8000000000000000) >> 27) | ((v & 0x0000000000200000)) |
+ ((v & 0x00000000001f0000) << 6) | ((v & 0x000000000000ff80) << 20) |
+ ((v & 0x000000000000007f) << 13);
+
+ slot1 = (v & 0x7fffffffffc00000) >> 22;
+
+ *bundle |= slot1 << 46;
+ *(bundle+1) |= insn << 23;
+ *(bundle+1) |= slot1 >> 18;
+}
+
+unsigned char *afs_syscall_stub, *afs_xsetgroups_stub;
+
+struct fptr
+{
+ unsigned long ip;
+ unsigned long gp;
+};
+
+#endif /* AFS_IA64_LINUX20_ENV */
+
#ifdef AFS_LINUX24_ENV
asmlinkage int (*sys_setgroups32p)(int gidsetsize, __kernel_gid32_t *grouplist);
#endif
#define SYSCALL2POINTER (void *)
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+int __init afs_init(void)
+#else
int init_module(void)
+#endif
{
+#if defined(AFS_IA64_LINUX20_ENV)
+ unsigned long kernel_gp;
+ static struct fptr sys_kill, sys_settimeofday, sys_setgroups;
+#endif
extern int afs_syscall();
- extern int afs_xsetgroups();
+ extern long afs_xsetgroups();
#if defined(__NR_setgroups32)
extern int afs_xsetgroups32();
#endif
#endif
#endif
+
+
/* obtain PAGE_OFFSET value */
afs_linux_page_offset = get_page_offset();
#endif
/* Initialize pointers to kernel syscalls. */
+#if defined(AFS_IA64_LINUX20_ENV)
+ kernel_gp = ((struct fptr *)printk)->gp;
+
+ sys_settimeofdayp = (void *) &sys_settimeofday;
+ sys_killp = (void *) &sys_kill;
+
+ ((struct fptr *)sys_settimeofdayp)->ip =
+ SYSCALL2POINTER sys_call_table[__NR_settimeofday - 1024];
+ ((struct fptr *)sys_settimeofdayp)->gp = kernel_gp;
+
+ ((struct fptr *)sys_killp)->ip =
+ SYSCALL2POINTER sys_call_table[__NR_kill - 1024];
+ ((struct fptr *)sys_killp)->gp = kernel_gp;
+#else /* !AFS_IA64_LINUX20_ENV */
sys_settimeofdayp = SYSCALL2POINTER sys_call_table[__NR_settimeofday];
-#if !defined(AFS_ALPHA_LINUX20_ENV)
+#ifdef __NR_socketcall
sys_socketcallp = SYSCALL2POINTER sys_call_table[__NR_socketcall];
#endif /* no socketcall on alpha */
sys_killp = SYSCALL2POINTER sys_call_table[__NR_kill];
+#endif /* AFS_IA64_LINUX20_ENV */
/* setup AFS entry point. */
- if (SYSCALL2POINTER sys_call_table[__NR_afs_syscall] == afs_syscall) {
+ if (
+#if defined(AFS_IA64_LINUX20_ENV)
+ SYSCALL2POINTER sys_call_table[__NR_afs_syscall - 1024]
+#else
+ SYSCALL2POINTER sys_call_table[__NR_afs_syscall]
+#endif
+ == afs_syscall) {
printf("AFS syscall entry point already in use!\n");
return -EBUSY;
}
+#if defined(AFS_IA64_LINUX20_ENV)
+ afs_ni_syscall = sys_call_table[__NR_afs_syscall - 1024];
+
+ afs_syscall_stub = (void *) kmalloc(sizeof(ia64_syscall_stub), GFP_KERNEL);
+ memcpy(afs_syscall_stub, ia64_syscall_stub, sizeof(ia64_syscall_stub));
+ ia64_imm64_fixup((unsigned long)afs_syscall, afs_syscall_stub+0x30);
+ sys_call_table[__NR_afs_syscall - 1024] = POINTER2SYSCALL afs_syscall_stub;
+#else /* AFS_IA64_LINUX20_ENV */
afs_ni_syscall = sys_call_table[__NR_afs_syscall];
sys_call_table[__NR_afs_syscall] = POINTER2SYSCALL afs_syscall;
-#ifdef AFS_SPARC64_LINUX20_ENV
+# ifdef AFS_SPARC64_LINUX20_ENV
afs_ni_syscall32 = sys_call_table32[__NR_afs_syscall];
sys_call_table32[__NR_afs_syscall] = POINTER2SYSCALL afs_syscall32;
-#endif
+# endif
+#endif /* AFS_IA64_LINUX20_ENV */
osi_Init();
register_filesystem(&afs_file_system);
/* Intercept setgroups calls */
+#if defined(AFS_IA64_LINUX20_ENV)
+ sys_setgroupsp = (void *) &sys_setgroups;
+
+ afs_xsetgroups_stub = (void *) kmalloc(sizeof(ia64_syscall_stub), GFP_KERNEL);
+ memcpy(afs_xsetgroups_stub, ia64_syscall_stub, sizeof(ia64_syscall_stub));
+ ia64_imm64_fixup((unsigned long)afs_xsetgroups, afs_xsetgroups_stub+0x30);
+
+ ((struct fptr *)sys_setgroupsp)->ip =
+ SYSCALL2POINTER sys_call_table[__NR_setgroups - 1024];
+ ((struct fptr *)sys_setgroupsp)->gp = kernel_gp;
+
+ sys_call_table[__NR_setgroups - 1024] = POINTER2SYSCALL afs_xsetgroups_stub;
+#else /* AFS_IA64_LINUX20_ENV */
sys_setgroupsp = SYSCALL2POINTER sys_call_table[__NR_setgroups];
sys_call_table[__NR_setgroups] = POINTER2SYSCALL afs_xsetgroups;
-#ifdef AFS_SPARC64_LINUX20_ENV
+# ifdef AFS_SPARC64_LINUX20_ENV
sys32_setgroupsp = SYSCALL2POINTER sys_call_table32[__NR_setgroups];
sys_call_table32[__NR_setgroups] = POINTER2SYSCALL afs32_xsetgroups;
-#endif
-#if defined(__NR_setgroups32)
+# endif
+# if defined(__NR_setgroups32)
sys_setgroups32p = SYSCALL2POINTER sys_call_table[__NR_setgroups32];
sys_call_table[__NR_setgroups32] = POINTER2SYSCALL afs_xsetgroups32;
-#ifdef AFS_SPARC64_LINUX20_ENV
+# ifdef AFS_SPARC64_LINUX20_ENV
sys32_setgroups32p = SYSCALL2POINTER sys_call_table32[__NR_setgroups32];
sys_call_table32[__NR_setgroups32] = POINTER2SYSCALL afs32_xsetgroups32;
-#endif
-#endif
+# endif
+# endif
+#endif /* AFS_IA64_LINUX20_ENV */
return 0;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+void __exit afs_cleanup(void)
+#else
void cleanup_module(void)
+#endif
{
struct task_struct *t;
+#if defined(AFS_IA64_LINUX20_ENV)
+ sys_call_table[__NR_setgroups - 1024] = POINTER2SYSCALL ((struct fptr *) sys_setgroupsp)->ip;
+ sys_call_table[__NR_afs_syscall - 1024] = afs_ni_syscall;
+#else /* AFS_IA64_LINUX20_ENV */
sys_call_table[__NR_setgroups] = POINTER2SYSCALL sys_setgroupsp;
sys_call_table[__NR_afs_syscall] = afs_ni_syscall;
-#ifdef AFS_SPARC64_LINUX20_ENV
+# ifdef AFS_SPARC64_LINUX20_ENV
sys_call_table32[__NR_setgroups] = POINTER2SYSCALL sys32_setgroupsp;
sys_call_table32[__NR_afs_syscall] = afs_ni_syscall32;
-#endif
-#if defined(__NR_setgroups32)
+# endif
+# if defined(__NR_setgroups32)
sys_call_table[__NR_setgroups32] = POINTER2SYSCALL sys_setgroups32p;
-#ifdef AFS_SPARC64_LINUX20_ENV
+# ifdef AFS_SPARC64_LINUX20_ENV
sys_call_table32[__NR_setgroups32] = POINTER2SYSCALL sys32_setgroups32p;
-#endif
-#endif
+# endif
+# endif
+#endif /* AFS_IA64_LINUX20_ENV */
unregister_filesystem(&afs_file_system);
osi_linux_free_inode_pages(); /* Invalidate all pages using AFS inodes. */
return;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+module_init(afs_init);
+module_exit(afs_cleanup);
+#endif
+
+
static long get_page_offset(void)
{
-#if defined(AFS_PPC_LINUX22_ENV) || defined(AFS_SPARC64_LINUX20_ENV) || defined(AFS_SPARC_LINUX20_ENV) || defined(AFS_ALPHA_LINUX20_ENV) || defined(AFS_S390_LINUX22_ENV)
+#if defined(AFS_PPC_LINUX22_ENV) || defined(AFS_SPARC64_LINUX20_ENV) || defined(AFS_SPARC_LINUX20_ENV) || defined(AFS_ALPHA_LINUX20_ENV) || defined(AFS_S390_LINUX22_ENV) || defined(AFS_IA64_LINUX20_ENV)
return PAGE_OFFSET;
#else
struct task_struct *p;
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.8 2001/07/15 07:22:26 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.9 2001/09/11 15:47:37 hartmans Exp $");
#include "../afs/sysincludes.h"
#include "../afs/afsincludes.h"
ObtainWriteLock(&vcp->lock, 530);
vcp->m.Date = osi_Time(); /* set modification time */
afs_FakeClose(vcp, credp);
- if (code>=0)
- code2 = afs_DoPartialWrite(vcp, &treq);
- if (code2 && code >=0)
- code = (ssize_t) -code2;
ReleaseWriteLock(&vcp->lock);
afs_Trace4(afs_iclSetp, CM_TRACE_WRITEOP, ICL_TYPE_POINTER, vcp,
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-COMPONENT=afs
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-system: install
-
-# NOTE: linux case uses --new as well to work around bug in some versions of
-# gencat.
-kinstall: AFS_component_version_number.c
- set ${KERNELDIR}afs; $(MKDIR_IF_NEEDED)
- -chmod 666 ${KERNELDIR}afs/*
- ${DESTDIR}bin/compile_et -v 2 afs_trace.et
- ${INSTALL} *.[csh] ${KERNELDIR}afs
- ${INSTALL} VNOPS/*.[csh] ${KERNELDIR}afs
- ${INSTALL} ${AFS_OSTYPE}/*.[csh] ${KERNELDIR}afs
- set ${DESTDIR}root.client/usr/vice/etc/C; $(MKDIR_IF_NEEDED)
- -rm -f afszcm.cat
- case ${SYS_NAME} in \
- sgi_* ) \
- gencat -m afszcm.cat afs_trace.msf ;; \
- *_linux* ) \
- gencat --new afszcm.cat afs_trace.msf ;; \
- ppc_darwin* | i386_fbsd*) \
- echo No gencat for ${SYS_NAME} ;; \
- * ) \
- gencat afszcm.cat afs_trace.msf ;; \
- esac
-
-
-
-ukinstall webinstall: AFS_component_version_number.c
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- -chmod 666 ${UKERNELDIR}afs/*
- ${DESTDIR}bin/compile_et -v 2 afs_trace.et
- ${INSTALL} *.[csh] ${UKERNELDIR}afs
- ${INSTALL} VNOPS/*.[csh] ${UKERNELDIR}afs
- ${INSTALL} UKERNEL/*.[csh] ${UKERNELDIR}afs
-
-noversion: install.noversion
-install install.noversion: kinstall ukinstall
- ${INSTALL} afs.h ${DESTDIR}include/afs
- ${INSTALL} ${AFS_OSTYPE}/osi_inode.h ${DESTDIR}include/afs
- ${INSTALL} afs_stats.h exporter.h nfsclient.h ${DESTDIR}include/afs
- case ${SYS_NAME} in \
- pmax_ul43 | pmax_ul43a) \
- ${INSTALL} longc_procs.h ${DESTDIR}include/afs ;; \
- esac
- case ${SYS_NAME} in \
- next_mach30 | vax_ul43 | ppc_darwin* | i386_fbsd* ) \
- echo skipping afszcm.cat install for ${SYS_NAME} ;; \
- * ) \
- ${INSTALL} afszcm.cat ${DESTDIR}root.client/usr/vice/etc/C ;; \
- esac
- case ${SYS_NAME} in \
- *linux* ) \
- ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DESTDIR}include/afs ;;\
- * ) \
- echo No vfs headers to install for ${SYS_NAME};; \
- esac
-
-clean:
- rm -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.7 2001/07/20 10:57:13 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.8 2001/09/11 15:47:38 hartmans Exp $");
#include "../afs/sysincludes.h" /* Standard vendor system headers */
#include "../afs/afsincludes.h" /* Afs-based standard headers */
volnamep = &avc->linkData[1];
tcell = afs_GetCell(avc->fid.Cell, READ_LOCK);
}
- if (!tcell) return ENOENT;
+ if (!tcell) return ENODEV;
mtptCell = tcell->cell; /* The cell for the mountpoint */
if (tcell->lcellp) {
* preserve the value of the file size. We could
* flush the pages, but it wouldn't be worthwhile.
*/
- bcopy((char *) &tfid.Fid, (char *)(fidsp+fidIndex),
- sizeof(*fidsp));
+ memcpy((char *)(fidsp+fidIndex), (char *) &tfid.Fid, sizeof(*fidsp));
tvcp->states |= CBulkFetching;
tvcp->m.Length = statSeqNo;
fidIndex++;
AFS_STATCNT(afs_lookup);
#ifdef AFS_OSF_ENV
ndp->ni_dvp = (struct vnode *)adp;
- bcopy(ndp->ni_ptr, aname, ndp->ni_namelen);
+ memcpy(aname, ndp->ni_ptr, ndp->ni_namelen);
aname[ndp->ni_namelen] = '\0';
#endif /* AFS_OSF_ENV */
};
/* vcache state bits */
-#define CStatd 1 /* has this file ever been stat'd? */
-#define CBackup 2 /* file is on a backup volume */
-#define CRO 4 /* is it on a read-only volume */
-#define CMValid 8 /* is the mount point info valid? */
-#define CCore 0x10 /* storing a core file, needed since we don't get an open */
-#define CDirty 0x20 /* file has been modified since first open (... O_RDWR) */
-#define CSafeStore 0x40 /* close must wait for store to finish (should be in fd) */
-#define CMAPPED 0x80 /* Mapped files; primarily used by SunOS 4.0.x */
-#define CNSHARE 0x100 /* support O_NSHARE semantics */
-#define CLied 0x200
-#define CTruth 0x400
+#define CStatd 0x00000001 /* has this file ever been stat'd? */
+#define CBackup 0x00000002 /* file is on a backup volume */
+#define CRO 0x00000004 /* is it on a read-only volume */
+#define CMValid 0x00000008 /* is the mount point info valid? */
+#define CCore 0x00000010 /* storing a core file, needed since we don't get an open */
+#define CDirty 0x00000020 /* file has been modified since first open (... O_RDWR) */
+#define CSafeStore 0x00000040 /* close must wait for store to finish (should be in fd) */
+#define CMAPPED 0x00000080 /* Mapped files; primarily used by SunOS 4.0.x */
+#define CNSHARE 0x00000100 /* support O_NSHARE semantics */
+#define CLied 0x00000200
+#define CTruth 0x00000400
#ifdef AFS_OSF_ENV
-#define CWired 0x800 /* OSF hack only */
+#define CWired 0x00000800 /* OSF hack only */
#else
-#define CWRITE_IGN 0x800 /* Next OS hack only */
+#define CWRITE_IGN 0x00000800 /* Next OS hack only */
#endif
-#define CUnique 0x1000 /* vc's uniquifier - latest unifiquier for fid */
-#define CForeign 0x2000 /* this is a non-afs vcache */
-#define CHasPages 0x4000
-#define CUnlinked 0x10000
-#define CBulkStat 0x20000 /* loaded by a bulk stat, and not ref'd since */
-#define CUnlinkedDel 0x40000
-#define CVFlushed 0x80000
-#define CCore1 0x100000 /* osf1 core file; not same as CCore above */
-#define CWritingUFS 0x200000 /* to detect vm deadlock - used by sgi */
-#define CCreating 0x400000 /* avoid needless store after open truncate */
-#define CPageHog 0x800000 /* AIX - dumping large cores is a page hog. */
-#define CDCLock 0x200000 /* Vnode lock held over call to GetDownD */
-#define CBulkFetching 0x4000000 /* stats are being fetched by bulk stat */
-#define CExtendedFile 0x8000000 /* extended file via ftruncate call. */
+#define CUnique 0x00001000 /* vc's uniquifier - latest unifiquier for fid */
+#define CForeign 0x00002000 /* this is a non-afs vcache */
+#define CHasPages 0x00004000
+#define CUnlinked 0x00010000
+#define CBulkStat 0x00020000 /* loaded by a bulk stat, and not ref'd since */
+#define CUnlinkedDel 0x00040000
+#define CVFlushed 0x00080000
+#define CCore1 0x00100000 /* osf1 core file; not same as CCore above */
+#define CWritingUFS 0x00200000 /* to detect vm deadlock - used by sgi */
+#define CCreating 0x00400000 /* avoid needless store after open truncate */
+#define CPageHog 0x00800000 /* AIX - dumping large cores is a page hog. */
+#define CDCLock 0x02000000 /* Vnode lock held over call to GetDownD */
+#define CBulkFetching 0x04000000 /* stats are being fetched by bulk stat */
+#define CExtendedFile 0x08000000 /* extended file via ftruncate call. */
/* vcache vstate bits */
#define VRevokeWait 0x1
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_call.c,v 1.6 2001/07/15 07:22:24 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_call.c,v 1.7 2001/09/11 15:47:35 hartmans Exp $");
#include "../afs/sysincludes.h" /* Standard vendor system headers */
#include "../afs/afsincludes.h" /* Afs-based standard headers */
afs_InitStats();
#endif /* AFS_NOSTATS */
- bzero(afs_zeros, AFS_ZEROS);
+ memset(afs_zeros, 0, AFS_ZEROS);
/* start RX */
rx_extraPackets = AFS_NRXPACKETS; /* smaller # of packets */
}
#endif /* AFS_SUN57_64BIT_ENV */
-#if defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV)
+#if defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)
struct iparam32 dst32;
#ifdef AFS_SPARC64_LINUX24_ENV
shutdown_afstest();
/* The following hold the cm stats */
/*
- bzero(&afs_cmstats, sizeof(struct afs_CMStats));
- bzero(&afs_stats_cmperf, sizeof(struct afs_stats_CMPerf));
- bzero(&afs_stats_cmfullperf, sizeof(struct afs_stats_CMFullPerf));
+ memset(&afs_cmstats, 0, sizeof(struct afs_CMStats));
+ memset(&afs_stats_cmperf, 0, sizeof(struct afs_stats_CMPerf));
+ memset(&afs_stats_cmfullperf, 0, sizeof(struct afs_stats_CMFullPerf));
*/
afs_warn(" ALL allocated tables\n");
afs_shuttingdown = 0;
logp = (struct afs_icl_log *)
osi_AllocSmallSpace(sizeof(struct afs_icl_log));
- bzero((caddr_t)logp, sizeof(*logp));
+ memset((caddr_t)logp, 0, sizeof(*logp));
logp->refCount = 1;
logp->name = osi_AllocSmallSpace(strlen(name)+1);
if (end - ix < nwords)
nwords = end - ix;
if (nwords > 0) {
- bcopy((char *) &logp->datap[ix], (char *) bufferp,
- sizeof(afs_int32) * nwords);
+ memcpy((char *) bufferp, (char *) &logp->datap[ix], sizeof(afs_int32) * nwords);
outWords += nwords;
inWords -= nwords;
bufferp += nwords;
nwords = inWords;
if (logp->firstFree - ix < nwords)
nwords = logp->firstFree - ix;
- bcopy((char *) &logp->datap[ix], (char *) bufferp,
- sizeof(afs_int32) * nwords);
+ memcpy((char *) bufferp, (char *) &logp->datap[ix], sizeof(afs_int32) * nwords);
outWords += nwords;
inWords -= nwords;
bufferp += nwords;
states |= ICL_SETF_PERSISTENT;
setp = (struct afs_icl_set *) afs_osi_Alloc(sizeof(struct afs_icl_set));
- bzero((caddr_t)setp, sizeof(*setp));
+ memset((caddr_t)setp, 0, sizeof(*setp));
setp->refCount = 1;
if (states & ICL_SETF_FREED)
states &= ~ICL_SETF_ACTIVE; /* if freed, can't be active */
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_daemons.c,v 1.4 2001/07/15 07:22:24 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_daemons.c,v 1.5 2001/09/11 15:47:35 hartmans Exp $");
#include "../afs/sysincludes.h" /* Standard vendor system headers */
#include "../afs/afsincludes.h" /* Afs-based standard headers */
/* Initialize a token (self) to use in the queue of sleeping processes. */
self = (struct afs_bioqueue *) afs_osi_Alloc (sizeof (struct afs_bioqueue));
pin (self, sizeof (struct afs_bioqueue)); /* fix in memory */
- bzero(self, sizeof(*self));
+ memset(self, 0, sizeof(*self));
QInit (&(self->lruq)); /* initialize queue entry pointers */
/* initialize subsystem */
if (brsInit == 0) {
LOCK_INIT(&afs_xbrs, "afs_xbrs");
- bzero((char *)afs_brs, sizeof(afs_brs));
+ memset((char *)afs_brs, 0, sizeof(afs_brs));
brsInit = 1;
#if defined (AFS_SGI_ENV) && defined(AFS_SGI_SHORTSTACK)
/*
if (afs_cold_shutdown) {
afs_brsDaemons = brsInit = 0;
rxepoch_checked = afs_nbrs = 0;
- bzero((char *)afs_brs, sizeof(afs_brs));
- bzero((char *)&afs_xbrs, sizeof(afs_lock_t));
+ memset((char *)afs_brs, 0, sizeof(afs_brs));
+ memset((char *)&afs_xbrs, 0, sizeof(afs_lock_t));
afs_brsWaiters = 0;
#ifdef AFS_AIX32_ENV
#ifdef AFS_AIX41_ENV
#else /* AFS_AIX41_ENV */
afs_busyq = NULL;
afs_biodcnt = 0;
- bzero((char *)&afs_bioqueue, sizeof(struct afs_bioqueue));
+ memset((char *)&afs_bioqueue, 0, sizeof(struct afs_bioqueue));
#endif
afs_initbiod = 0;
#endif
#include <afsconfig.h>
#include "../afs/param.h"
-RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_pioctl.c,v 1.8 2001/07/15 07:22:25 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/afs/afs_pioctl.c,v 1.9 2001/09/11 15:47:35 hartmans Exp $");
#include "../afs/sysincludes.h" /* Standard vendor system headers */
#include "../afs/afsincludes.h" /* Afs-based standard headers */
}
#endif /* defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64) */
-#if defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV)
+#if defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)
struct afs_ioctl32 dst32;
#ifdef AFS_SPARC64_LINUX24_ENV
#ifdef AFS_LINUX22_ENV
cred_t *credp = crref(); /* don't free until done! */
struct dentry *dp;
+
#endif
AFS_STATCNT(afs_syscall_pioctl);
if (follow) follow = 1; /* compat. with old venus */
return afs_CheckCode(code, &treq, 41);
}
- static PGetFID(avc, afun, areq, ain, aout, ainSize, aoutSize)
+static PGetFID(avc, afun, areq, ain, aout, ainSize, aoutSize)
struct vcache *avc;
int afun;
struct vrequest *areq;
AFS_STATCNT(PGetFID);
if (!avc) return EINVAL;
- bcopy((char *)&avc->fid, aout, sizeof(struct VenusFid));
+ memcpy(aout, (char *)&avc->fid, sizeof(struct VenusFid));
*aoutSize = sizeof(struct VenusFid);
return 0;
}
if (!afs_resourceinit_flag) {
return EIO;
}
- bcopy(ain, (char *)&i, sizeof(afs_int32));
+ memcpy((char *)&i, ain, sizeof(afs_int32));
ain += sizeof(afs_int32);
stp = ain; /* remember where the ticket is */
if (i < 0 || i > 2000) return EINVAL; /* malloc may fail */
stLen = i;
ain += i; /* skip over ticket */
- bcopy(ain, (char *)&i, sizeof(afs_int32));
+ memcpy((char *)&i, ain, sizeof(afs_int32));
ain += sizeof(afs_int32);
if (i != sizeof(struct ClearToken)) {
return EINVAL;
}
- bcopy(ain, (char *)&clear, sizeof(struct ClearToken));
+ memcpy((char *)&clear, ain, sizeof(struct ClearToken));
if (clear.AuthHandle == -1) clear.AuthHandle = 999; /* more rxvab compat stuff */
ain += sizeof(struct ClearToken);
if (ainSize != 2*sizeof(afs_int32) + stLen + sizeof(struct ClearToken)) {
/* still stuff left? we've got primary flag and cell name. Set these */
- bcopy(ain, (char *)&flag, sizeof(afs_int32)); /* primary id flag */
+ memcpy((char *)&flag, ain, sizeof(afs_int32)); /* primary id flag */
ain += sizeof(afs_int32); /* skip id field */
/* rest is cell name, look it up */
if (flag & 0x8000) { /* XXX Use Constant XXX */
}
tu->stp = (char *) afs_osi_Alloc(stLen);
tu->stLen = stLen;
- bcopy(stp, tu->stp, stLen);
+ memcpy(tu->stp, stp, stLen);
tu->ct = clear;
#ifndef AFS_NOSTATS
afs_stats_cmfullperf.authent.TicketUpdates++;
if (code) return code;
/* Copy all this junk into msg->im_data, keeping track of the lengths. */
cp = aout;
- bcopy((char *)&volstat, cp, sizeof(VolumeStatus));
+ memcpy(cp, (char *)&volstat, sizeof(VolumeStatus));
cp += sizeof(VolumeStatus);
strcpy(cp, volName);
cp += strlen(volName)+1;
return ENODEV;
/* Copy the junk out, using cp as a roving pointer. */
cp = ain;
- bcopy(cp, (char *)&volstat, sizeof(AFSFetchVolumeStatus));
+ memcpy((char *)&volstat, cp, sizeof(AFSFetchVolumeStatus));
cp += sizeof(AFSFetchVolumeStatus);
if (strlen(cp) >= sizeof(volName))
return E2BIG;
/* we are sending parms back to make compat. with prev system. should
change interface later to not ask for current status, just set new status */
cp = aout;
- bcopy((char *)&volstat, cp, sizeof(VolumeStatus));
+ memcpy(cp, (char *)&volstat, sizeof(VolumeStatus));
cp += sizeof(VolumeStatus);
strcpy(cp, volName);
cp += strlen(volName)+1;
at the end, in that order.
*/
if (newStyle = (ainSize > 0)) {
- bcopy(ain, (char *)&iterator, sizeof(afs_int32));
+ memcpy((char *)&iterator, ain, sizeof(afs_int32));
}
i = UHash(areq->uid);
ObtainReadLock(&afs_xuser);
cp = aout;
iterator = tu->stLen; /* for compat, we try to return 56 byte tix if they fit */
if (iterator < 56) iterator = 56; /* # of bytes we're returning */
- bcopy((char *)&iterator, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&iterator, sizeof(afs_int32));
cp += sizeof(afs_int32);
- bcopy(tu->stp, cp, tu->stLen); /* copy out st */
+ memcpy(cp, tu->stp, tu->stLen); /* copy out st */
cp += iterator;
iterator = sizeof(struct ClearToken);
- bcopy((char *)&iterator, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&iterator, sizeof(afs_int32));
cp += sizeof(afs_int32);
- bcopy((char *)&tu->ct, cp, sizeof(struct ClearToken));
+ memcpy(cp, (char *)&tu->ct, sizeof(struct ClearToken));
cp += sizeof(struct ClearToken);
if (newStyle) {
/* put out primary id and cell name, too */
iterator = (tu->states & UPrimary ? 1 : 0);
- bcopy((char *)&iterator, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&iterator, sizeof(afs_int32));
cp += sizeof(afs_int32);
tcell = afs_GetCell(tu->cell, READ_LOCK);
if (tcell) {
tu->vid = UNDEFVID;
tu->states &= ~UHasTokens;
/* security is not having to say you're sorry */
- bzero((char *)&tu->ct, sizeof(struct ClearToken));
+ memset((char *)&tu->ct, 0, sizeof(struct ClearToken));
tu->refCount++;
ReleaseWriteLock(&afs_xuser);
/* We have to drop the lock over the call to afs_ResetUserConns, since
AFS_STATCNT(PMariner);
if (afs_mariner)
- bcopy((char *)&afs_marinerHost, (char *)&oldHostAddr, sizeof(afs_int32));
+ memcpy((char *)&oldHostAddr, (char *)&afs_marinerHost, sizeof(afs_int32));
else
oldHostAddr = 0xffffffff; /* disabled */
- bcopy(ain, (char *)&newHostAddr, sizeof(afs_int32));
+ memcpy((char *)&newHostAddr, ain, sizeof(afs_int32));
if (newHostAddr == 0xffffffff) {
/* disable mariner operations */
afs_mariner = 0;
afs_mariner = 1;
afs_marinerHost = newHostAddr;
}
- bcopy((char *)&oldHostAddr, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&oldHostAddr, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
return 0;
}
pcheck=(struct chservinfo *)ain;
if (pcheck->tinterval >= 0) {
cp = aout;
- bcopy((char *)&PROBE_INTERVAL, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&PROBE_INTERVAL, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
if (pcheck->tinterval > 0) {
if (!afs_osi_suser(acred))
temp=pcheck->tflags;
cp = pcheck->tbuffer;
} else { /* For pre afs3.3 versions */
- bcopy(ain, (char *)&temp, sizeof(afs_int32));
+ memcpy((char *)&temp, ain, sizeof(afs_int32));
cp = ain+sizeof(afs_int32);
if (ainSize > sizeof(afs_int32))
havecell = 1;
for(ts = afs_servers[i]; ts; ts=ts->next) {
if (cellp && ts->cell != cellp) continue; /* cell spec'd and wrong */
if ((ts->flags & SRVR_ISDOWN) && ts->addr->sa_portal != ts->cell->vlport) {
- bcopy((char *)&ts->addr->sa_ip, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&ts->addr->sa_ip, sizeof(afs_int32));
cp += sizeof(afs_int32);
}
}
ReleaseReadLock(&afs_xconn);
afs_PutUser(tu, READ_LOCK);
}
- bcopy((char *)&retValue, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&retValue, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
return 0;
}
for(i=0;i<MAXHOSTS;i++) {
ts = tvp->serverHost[i];
if (!ts) break;
- bcopy((char *)&ts->addr->sa_ip, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&ts->addr->sa_ip, sizeof(afs_int32));
cp += sizeof(afs_int32);
}
if (i<MAXHOSTS) {
/* still room for terminating NULL, add it on */
ainSize = 0; /* reuse vbl */
- bcopy((char *)&ainSize, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&ainSize, sizeof(afs_int32));
cp += sizeof(afs_int32);
}
*aoutSize = cp - aout;
if (!avc) return EINVAL;
code = afs_VerifyVCache(avc, areq);
if (code) return code;
- bcopy(ain, (char *)&temp, sizeof(afs_int32));
+ memcpy((char *)&temp, ain, sizeof(afs_int32));
code = afs_AccessOK(avc,temp, areq, CHECK_MODE_BITS);
if (code) return 0;
else return EACCES;
return EACCES;
/* too many things are setup initially in mem cache version */
if (cacheDiskType == AFS_FCACHE_TYPE_MEM) return EROFS;
- bcopy(ain, (char *)&newValue, sizeof(afs_int32));
+ memcpy((char *)&newValue, ain, sizeof(afs_int32));
if (newValue == 0) afs_cacheBlocks = afs_stats_cmperf.cacheBlocksOrig;
else {
extern u_int afs_min_cache;
afs_int32 results[MAXGCSTATS];
AFS_STATCNT(PGetCacheSize);
- bzero((char *)results, sizeof(results));
+ memset((char *)results, 0, sizeof(results));
results[0] = afs_cacheBlocks;
results[1] = afs_blocksUsed;
- bcopy((char *)results, aout, sizeof(results));
+ memcpy(aout, (char *)results, sizeof(results));
*aoutSize = sizeof(results);
return 0;
}
if (!afs_osi_suser(acred))
return EACCES;
- bcopy(tp, (char *)&magic, sizeof(afs_int32));
+ memcpy((char *)&magic, tp, sizeof(afs_int32));
tp += sizeof(afs_int32);
if (magic != 0x12345678)
return EINVAL;
scount = ((newcell[0] != '\0') ? MAXCELLHOSTS : MAXHOSTS);
/* MAXCELLHOSTS (=8) is less than MAXHOSTS (=13) */
- bcopy(tp, (char *)cellHosts, MAXCELLHOSTS * sizeof(afs_int32));
+ memcpy((char *)cellHosts, tp, MAXCELLHOSTS * sizeof(afs_int32));
tp += (scount * sizeof(afs_int32));
lp = (afs_int32 *)tp;
if ( !afs_resourceinit_flag ) /* afs deamons havn't started yet */
return EIO; /* Inappropriate ioctl for device */
- bcopy(tp, (char *)&whichCell, sizeof(afs_int32));
+ memcpy((char *)&whichCell, tp, sizeof(afs_int32));
tp += sizeof(afs_int32);
ObtainReadLock(&afs_xcell);
for (cq = CellLRU.next; cq != &CellLRU; cq = tq) {
}
if (tcell) {
cp = aout;
- bzero(cp, MAXCELLHOSTS * sizeof(afs_int32));
+ memset(cp, 0, MAXCELLHOSTS * sizeof(afs_int32));
for(i=0;i<MAXCELLHOSTS;i++) {
if (tcell->cellHosts[i] == 0) break;
- bcopy((char *)&tcell->cellHosts[i]->addr->sa_ip, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&tcell->cellHosts[i]->addr->sa_ip, sizeof(afs_int32));
cp += sizeof(afs_int32);
}
cp = aout + MAXCELLHOSTS * sizeof(afs_int32);
if (!tcell) return ENOENT;
temp = tcell->states;
afs_PutCell(tcell, READ_LOCK);
- bcopy((char *)&temp, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&temp, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
return 0;
}
tcell = afs_GetCellByName(ain+2*sizeof(afs_int32), WRITE_LOCK);
if (!tcell) return ENOENT;
- bcopy(ain, (char *)&temp, sizeof(afs_int32));
+ memcpy((char *)&temp, ain, sizeof(afs_int32));
if (temp & CNoSUID)
tcell->states |= CNoSUID;
else
stat.flockCount = avc->flockCount;
stat.mvstat = avc->mvstat;
stat.states = avc->states;
- bcopy((char *)&stat, aout, sizeof(struct vcxstat));
+ memcpy(aout, (char *)&stat, sizeof(struct vcxstat));
*aoutSize = sizeof(struct vcxstat);
return 0;
}
return (setuerror(EINVAL), EINVAL);
#endif
}
- bzero(inname, MAXSYSNAME);
- bcopy(ain, (char *)&setsysname, sizeof(afs_int32));
+ memset(inname, 0, MAXSYSNAME);
+ memcpy((char *)&setsysname, ain, sizeof(afs_int32));
ain += sizeof(afs_int32);
if (setsysname) {
/* inname gets first entry in case we're being a translater */
t = strlen(ain);
- bcopy(ain, inname, t+1); /* include terminating null */
+ memcpy(inname, ain, t+1); /* include terminating null */
ain += t + 1;
}
if (acred->cr_gid == RMTUSER_REQ) { /* Handles all exporters */
if (!afs_sysnamelist[count])
osi_Panic("PSetSysName: no afs_sysnamelist entry to write\n");
t = strlen(cp);
- bcopy(cp, afs_sysnamelist[count], t+1); /* include null */
+ memcpy(afs_sysnamelist[count], cp, t+1); /* include null */
cp += t+1;
}
}
}
if (!setsysname) {
cp = aout; /* not changing so report back the count and ... */
- bcopy((char *)&foundname, cp, sizeof(afs_int32));
+ memcpy(cp, (char *)&foundname, sizeof(afs_int32));
cp += sizeof(afs_int32);
if (foundname) {
strcpy(cp, outname); /* ... the entry, ... */
register struct afs_exporter *exporter;
AFS_STATCNT(PExportAfs);
- bcopy(ain, (char *)&handleValue, sizeof(afs_int32));
+ memcpy((char *)&handleValue, ain, sizeof(afs_int32));
type = handleValue >> 24;
if (type == 0x71) {
newint = 1;
}
if (!changestate) {
handleValue = exporter->exp_states;
- bcopy((char *)&handleValue, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&handleValue, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
} else {
if (!afs_osi_suser(acred))
}
}
handleValue = exporter->exp_states;
- bcopy((char *)&handleValue, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&handleValue, sizeof(afs_int32));
*aoutSize = sizeof(afs_int32);
} else {
if (export)
if (sizeof(struct cm_initparams) > PIGGYSIZE)
return E2BIG;
- bcopy((char*)&cm_initParams, aout, sizeof(struct cm_initparams));
+ memcpy(aout, (char*)&cm_initParams, sizeof(struct cm_initparams));
*aoutSize = sizeof(struct cm_initparams);
return 0;
}
{
cred_t *cr;
cr = crdup(get_current_cred());
- bzero((char*)cr, sizeof(cred_t));
+ memset((char*)cr, 0, sizeof(cred_t));
#if CELL || CELL_PREPARE
cr->cr_id = -1;
#endif
afs_int32 *aoutSize;
struct AFS_UCRED *acred;
{
- bcopy((char *)&cryptall, aout, sizeof(afs_int32));
+ memcpy(aout, (char *)&cryptall, sizeof(afs_int32));
*aoutSize=sizeof(afs_int32);
return 0;
}
return EPERM;
if (ainSize != sizeof(afs_int32) || ain == NULL)
return EINVAL;
- bcopy(ain, (char *)&tmpval, sizeof(afs_int32));
+ memcpy((char *)&tmpval, ain, sizeof(afs_int32));
/* if new mappings added later this will need to be changed */
if (tmpval != 0 && tmpval != 1)
return EINVAL;
code = EINVAL;
goto out;
}
- bcopy(ain, (char *)&flags, sizeof(afs_int32));
+ memcpy((char *)&flags, ain, sizeof(afs_int32));
if (!(flags & AFSCALL_RXSTATS_MASK) || (flags & ~AFSCALL_RXSTATS_MASK)) {
code = EINVAL;
goto out;
code = EINVAL;
goto out;
}
- bcopy(ain, (char *)&flags, sizeof(afs_int32));
+ memcpy((char *)&flags, ain, sizeof(afs_int32));
if (!(flags & AFSCALL_RXSTATS_MASK) || (flags & ~AFSCALL_RXSTATS_MASK)) {
code = EINVAL;
goto out;
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# afsd makefile
-
-SHELL = /bin/sh
-DESTDIR = DEST/
-SRCDIR = DEST/
-
-SOURCES = afsd.c sys.c
-
-COMPONENT=afsd
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-INSTALLro = ${INSTALL} -m 644
-INSTALLex = ${INSTALL} -m 755
-CFLAGS = -g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = -g ${XLDFLAGS}
-
-noversion: install
-
-#
-# What to make
-#
-all: afsd vsys
-
-#
-# Programs
-#
-
-AFSLIBS=$(SRCDIR)lib/afs/libauth.a ${SRCDIR}lib/afs/libcmd.a $(SRCDIR)lib/afs/libsys.a $(SRCDIR)lib/afs/util.a $(SRCDIR)lib/librx.a $(SRCDIR)lib/liblwp.a $(SRCDIR)lib/afs/util.a
-
-afsd: afsd.o $(AFSLIBS)
- case ${SYS_NAME} in \
- sgi_61 | sgi_62 | sgi_63) \
- ${CC} ${CFLAGS} -g -o afsd afsd.o $(NON_SHARED) $(LDFLAGS) $(AFSLIBS) ${XLIBS} /usr/lib/libdwarf.a /usr/lib/libelf.a ;; \
- sgi_64 | sgi_65 ) \
- ${CC} ${CFLAGS} -g -o afsd afsd.o $(NON_SHARED) $(LDFLAGS) $(AFSLIBS) ${XLIBS} /usr/lib32/libdwarf.a /usr/lib32/libelf.a ;; \
- * ) \
- ${CC} ${CFLAGS} -g -o afsd afsd.o $(NON_SHARED) $(LDFLAGS) $(AFSLIBS) ${XLIBS} ;; \
- esac
-
-vsys: vsys.o
- $(CC) -g -o vsys vsys.o ${SRCDIR}lib/afs/libsys.a $(LDFLAGS) ${XLIBS}
-
-#
-# Objects
-#
-afsd.o: afsd.c AFS_component_version_number.c
-
-vsys.o: vsys.c AFS_component_version_number.c
-
-clean:
- rm -f *.o vsys afsd core AFS_component_version_number.c
-
-beancount:
- wc -l afsd.c
-
-system: install
-
-install: all
- ${INSTALL} vsys ${DESTDIR}etc
- ${INSTALL} afsd ${DESTDIR}root.client/usr/vice/etc
- case ${SYS_NAME} in \
- rs_aix*) \
- ${INSTALL} rc.afs.rs_aix ${DESTDIR}root.client/usr/vice/etc/dkload/rc.afs ; \
- ${INSTALL} rc.dkload.client.rs_aix ${DESTDIR}root.client/usr/vice/etc/dkload/rc.dkload.client ; \
- ${INSTALL} rc.dkload.server.rs_aix ${DESTDIR}root.client/usr/vice/etc/dkload/rc.dkload.server ;; \
- sgi_65 ) \
- ${INSTALL} afs.rc.sgi_ipnos ${DESTDIR}root.client/usr/vice/etc/sgiload/afs.rc ;\
- ${INSTALL} afs.rc.sgi_ipnos ${DESTDIR}root.server/etc/init.d/afs.rc ;;\
- sgi_* ) \
- ${INSTALL} afs.rc.sgi ${DESTDIR}root.client/usr/vice/etc/sgiload/afs.rc ;\
- ${INSTALL} afs.rc.sgi ${DESTDIR}root.server/etc/init.d/afs.rc ;\
- case ${SYS_NAME} in \
- sgi_53 | sgi_61 ) \
- ${INSTALL} afs_rtsymtab.pl.${SYS_NAME} ${DESTDIR}root.client/usr/vice/etc/sgiload/afs_rtsymtab.pl ;;\
- esac;; \
- sun4_52 | sun4_53 | sun4c_52 | sun4c_53 | sun4m_52 | sun4m_53 | sun4m_54 | sun4_54 | sun4c_54 | sunx86_54) \
- ${INSTALL} afs.rc.solaris ${DESTDIR}root.client/usr/vice/etc/modload/afs.rc ;;\
- sun4x_57 ) \
- ${INSTALL} afs.rc.solaris.2.7 ${DESTDIR}root.client/usr/vice/etc/modload/afs.rc ;;\
- sun4x_58 ) \
- ${INSTALL} afs.rc.solaris.2.8 ${DESTDIR}root.client/usr/vice/etc/modload/afs.rc ;;\
- sun4x_5? ) \
- ${INSTALL} afs.rc.solaris.2_5 ${DESTDIR}root.client/usr/vice/etc/modload/afs.rc ;;\
- alpha_osf* ) \
- ${INSTALL} afs.rc.alpha ${DESTDIR}root.client/usr/vice/etc/dkload/afs.rc ;;\
- hp_ux10? | hp_ux11? ) \
- ${INSTALL} afs.rc.hpux10 ${DESTDIR}root.client/usr/vice/etc/dkload/afs.rc ;\
- ${INSTALL} afs.hpux102.driver ${DESTDIR}root.client/usr/vice/etc/afs.driver ;;\
- alpha_dux* ) \
- ${INSTALL} afs.rc.alpha_dux40 ${DESTDIR}root.client/usr/vice/etc/dkload/afs.rc ;;\
- hp?00_ux10? ) \
- ${INSTALL} afs.rc.hpux10 ${DESTDIR}root.client/usr/vice/etc/dkload/afs.rc ;;\
- *linux* ) \
- ${INSTALLex} -f afs.rc.linux ${DESTDIR}root.client/usr/vice/etc/afs.rc; \
- ${INSTALL} -f afs.conf.linux ${DESTDIR}root.client/usr/vice/etc/afs.conf ;; \
- ppc_darwin*) \
- mkdir -p ${DESTDIR}root.client/usr/vice/etc/afs.kext/Contents/MacOS ;\
- ${INSTALL} -f afs.ppc_darwin.plist ${DESTDIR}root.client/usr/vice/etc/afs.kext/Contents/Info.plist ; \
- ${INSTALLex} -f afs.rc.darwin ${DESTDIR}root.client/usr/vice/etc/afs.rc ; \
- ${INSTALL} -f afs.rc.darwin.plist ${DESTDIR}root.client/usr/vice/etc/StartupParameters.plist ;; \
- *fbsd*) \
- mkdir -p ${DESTDIR}root.client/usr/vice/etc/afs.rc; \
- ${INSTALL} -f afs.rc.fbsd ${DESTDIR}root.client/usr/vice/etc/afs.rc.fbsd ;; \
- * ) \
- echo No rc scripts installed for ${SYS_NAME} ;; \
- esac
-
-
-
+++ /dev/null
-{
- Description = "OpenAFS network file system";
- Provides = ("AFS");
- Requires = ("Resolver");
- OrderPreference = "None";
- Messages =
- {
- start = "Starting OpenAFS file system";
- stop = "Stopping OpenAFS file system";
- };
-}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for Afsmonitor, the AFS Performance monitoring tool
-
-SHELL = /bin/sh
-DESTDIR=DEST/
-SRCDIR=DEST/
-COMPONENT=afsmonitor
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS=-g -I. \
- -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include \
- -I${SRCDIR}include/afs \
- -I${SRCDIR} ${XCFLAGS}
-LDFLAGS = ${XLDFLAGS}
-RPCINCLS=
-
-INCLS=${SRCDIR}include/afs/gtxobjects.h \
- ${SRCDIR}include/afs/gtxwindows.h \
- ${SRCDIR}include/afs/gtxcurseswin.h \
- ${SRCDIR}include/afs/gtxdumbwin.h \
- ${SRCDIR}include/afs/gtxX11win.h \
- ${SRCDIR}include/afs/gtxobjects.h \
- ${SRCDIR}include/afs/gtxlightobj.h \
- ${SRCDIR}include/afs/gtxtextobj.h \
- ${SRCDIR}include/afs/gtxobjdict.h \
- ${RPCINCLS} \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/cmd.h \
- ${SRCDIR}include/afs/xstat_fs.h \
- ${SRCDIR}include/afs/xstat_cm.h \
- afsmonitor.h \
- afsmon-labels.h
-LIBS=${SRCDIR}lib/afs/libxstat_fs.a \
- ${SRCDIR}lib/afs/libxstat_cm.a \
- ${SRCDIR}lib/afs/libgtx.a \
- ${SRCDIR}lib/afs/libafsint.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/util.a
-
-EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a ${XLIBS}
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: afsmonitor
-
-afsmon-output.o: afsmon-output.c ${INCLS}
-afsmon-win.o: afsmon-win.c ${INCLS}
-afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
-
-afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
- ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
- afsmon-output.o ${LIBS} ${EXTRA_LIBS}
-
-afsmon-parselog: afsmon-parselog.o ${LIBS}
- ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
- ${LIBS} ${EXTRA_LIBS}
-
-#gtxtest.o: gtxtest.c ${INCLS}
-#gtxtest: gtxtest.o ${LIBS}
-# cc ${CFLAGS} -o gtxtest gtxtest.o ${LIBS} ${EXTRA_LIBS}
-
-#
-# Misc others
-#
-system: install
-
-install: all
- ${INSTALL} afsmonitor ${DESTDIR}bin
-
-clean:
- rm -f *.o afsmonitor AFS_component_version_number.c
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=nsafs
-
-include ../config/Makefile.${SYS_NAME}
-
-UKERNELDIR=../libuafs/
-COMPILE_ET=${SRCDIR}bin/compile_et
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-UKSRCS=nsafs.h nsafs.c securehash.c
-
-#
-# Targets for Apache AFS Web Secure
-#
-APACHE_AFS_LIB=libapacheafs.a
-DCE_ADK_LIB=libadk.a
-APACHE_AFS_COMMON_LIB=libcommon.a
-
-BINARIES=weblog weblog_starter
-SRC_MODULE=afs_module.c
-## This module is made compatible with Apache 1.3.1 by including a file called
-## ap_compat.h provided by Apache (basically all they do is #define all the old API calls
-## as the new ones with ap_ prepended to the old API calls. The makefile takes care of this
-## while building afs_module.c and adding the AFS_component_version_number.c file's contents
-## in comments.
-
-APACHEAFS_DOC=README
-APACHE_INSTALL_SCRIPT=afswsApache_config.sh
-NETSCAPE_INSTALL_SCRIPT=afswsNetscape_config.sh
-
-
-
-system noversion apache_afs_web_secure:
- case "${SYS_NAME}" in \
- rs_aix* ) \
- echo Clean, make, and install the lib for 1.2 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_CFLAGS=-DAIX $(APACHE_AFS_LIB) ; \
- ${INSTALL} ${APACHE_AFS_LIB} ${DESTDIR}root.afsweb/lib/apache_1.2 ; \
- echo Make and install source for 1.2 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG=-DAPACHE_1_2 ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.2 ; \
- echo Make and install the lib for 1.3.1 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_CFLAGS=-DAIX $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.1 ; \
- echo Make and install source for 1.3.1 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.1 ; \
- echo Clean, make, and install the lib for 1.3.6 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_CFLAGS=-DAIX $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6"; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.6 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- echo Make and install source for 1.3.1 ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.6 ; \
- echo Do the binaries ; \
- $(MAKE) AUX_CFLAGS=-DAIX $(BINARIES) ;; \
- sun*) \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DSOLARIS $(APACHE_AFS_LIB) ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.2 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DSOLARIS $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.1 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DSOLARIS $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6" ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.6 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG=-DAPACHE_1_2 ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.2 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.1 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.6 ; \
- $(MAKE) AUX_CFLAGS=-DSOLARIS "XLIBS=-lsocket -lnsl" $(BINARIES) ;; \
- *linux*) \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DLINUX $(APACHE_AFS_LIB) ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.2 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DLINUX $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.1 ; \
- $(MAKE) libclean ; \
- $(MAKE) AUX_FLAGS=-DLINUX $(APACHE_AFS_LIB) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6" ; \
- ${INSTALL} $(APACHE_AFS_LIB) ${DESTDIR}root.afsweb/lib/apache_1.3.6 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG=-DAPACHE_1_2 ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.2 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_1" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.1 ; \
- /bin/rm -f $(SRC_MODULE) ; \
- $(MAKE) $(SRC_MODULE) VERSION_CFLAG="-DAPACHE_1_3 -DAPACHE_1_3_6" ; \
- ${INSTALL} $(SRC_MODULE) ${DESTDIR}root.afsweb/src/apache_1.3.6 ; \
- $(MAKE) AUX_CFLAGS=-DLINUX "XLIBS=-lnsl" $(BINARIES) ;; \
- * ) \
- echo "NOT BUILT FOR ${SYS_NAME}"; ;; \
- esac
- ${INSTALL} ${APACHEAFS_DOC} ${DESTDIR}root.afsweb/doc
- ${INSTALL} ${APACHE_INSTALL_SCRIPT} ${DESTDIR}root.afsweb/install
- chmod a+x ${DESTDIR}root.afsweb/install/${APACHE_INSTALL_SCRIPT}
- chmod a+w ${DESTDIR}root.afsweb/install/${APACHE_INSTALL_SCRIPT}
- ${INSTALL} $(BINARIES) ${DESTDIR}root.afsweb/bin
-
-include ../config/Makefile.version
-
-all:
-
-install: kinstall ukinstall
-
-kinstall:
- @echo No $@ source here.
-
-
-webinstall:${UKSRCS}
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-ukinstall:
- @echo No $@ source here.
-
-##
-## For Apache Afs Web Secure libraries and binaries
-## NOTE: APACHE_INCLUDES should point to the Apache src directory where
-## httpd.h and all it's included files reside which right now is src/afsweb/include
-## and we have Apache versions as subdirectories but these are taken care of by the
-## code. Be sure to compile with the VERSION_CFLAG=-DAPACHE_1_3 option for Apache 1.3
-##
-APACHE_INCLUDES=-Iapache_includes
-EXTRA_CFLAGS=-DENABLE_DCE_DLOG -I../dauth/
-ADKOBJS=../dauth/adkint.cs.o ../dauth/adkint.xdr.o
-
-XLIBS=
-DEFINES=-DSTATUS
-OPTF=
-DEBUG_FLAG=
-AUX_CFLAGS=
-VERSION_CFLAG=
-AFS_INCL=-I${SRCDIR}include -I.. -I../config
-CFLAGS=$(OPTF) $(DEFINES) -I. -I.. $(EXTRA_CFLAGS) $(VERSION_CFLAG) $(DEBUG_FLAG)
-INCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/rx/rxkad.h \
- ${SRCDIR}include/afs/com_err.h \
- weblog_errors.h $(DCE_DLOG_INCLUDES)
-deslib=${SRCDIR}lib/libdes.a
-rxkadlib=${SRCDIR}lib/librxkad.a
-authlib=${SRCDIR}lib/afs/libauth.a
-cmdlib=${SRCDIR}lib/afs/libcmd.a
-utilib=${SRCDIR}lib/afs/util.a
-auditlib=${SRCDIR}lib/afs/libaudit.a
-kauthlib=${SRCDIR}lib/afs/libkauth.a
-
-LIBS = ${kauthlib} ${SRCDIR}lib/libubik.a ${SRCDIR}lib/afs/libprot.a \
- ${authlib} ${rxkadlib} ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a ${deslib} ${cmdlib} \
- ${SRCDIR}lib/afs/libcom_err.a ${utilib} \
- $(DBM) $(XLIBS)
-
-AR=ar
-ARFLAGS=rv
-LIBCOMMON_OBJS=apache_afs_utils.o apache_afs_cache.o
-LIBAPACHE_OBJS=apache_afs_client.o apache_afs_plugin.o
-LIBOBJS=$(LIBCOMMON_OBJS) $(LIBAPACHE_OBJS)
-OBJS=$(LIBOBJS) apache_afs_weblog.o weblog.o
-
-.c.o:
- $(CC) -c $(CFLAGS) $(AFS_INCL) $(AUX_CFLAGS) $<
-
-
-weblog: weblog.o $(APACHE_AFS_COMMON_LIB) $(DCE_ADK_LIB)
- $(CC) -o $@ weblog.o $(APACHE_AFS_COMMON_LIB) $(LIBS) $(DCE_ADK_LIB) $(XLIBS)
-
-weblog_starter: apache_afs_weblog.o weblog_errors.h
- $(CC) -o $@ apache_afs_weblog.o
-
-$(DCE_ADK_LIB):
- - /bin/rm -f $@
- $(AR) $(ARFLAGS) $@ $(ADKOBJS)
-
-$(APACHE_AFS_COMMON_LIB):$(LIBCOMMON_OBJS)
- - /bin/rm -f $@
- $(AR) $(ARFLAGS) $@ $(LIBCOMMON_OBJS)
-
-$(APACHE_AFS_LIB): $(LIBOBJS) AFS_component_version_number.o
- - /bin/rm -f $@
- $(AR) $(ARFLAGS) $@ $(LIBOBJS)
-
-afs_module.c: apache_afs_module.c
- -/bin/rm -f afs_module.c \
- ; echo "/*" > afs_module.c \
- ; cat AFS_component_version_number.c >> afs_module.c \
- ; echo "*/" >> afs_module.c \
- ; case "${VERSION_CFLAG}" in \
- -DAPACHE_1_3*) echo '#include "ap_compat.h"' >> afs_module.c ;; \
- esac \
- ; cat apache_afs_module.c >> afs_module.c
-
-##
-##Dependencies
-##
-
-$(OBJS): Makefile
-
-apache_afs_weblog.o: apache_afs_weblog.c weblog_errors.h AFS_component_version_number.o
-apache_afs_utils.o: apache_afs_utils.c apache_afs_utils.h
-apache_afs_cache.o: apache_afs_cache.c apache_afs_cache.h
-weblog.o: weblog.c weblog_errors.h $(APACHE_AFS_COMMON_LIB)
-apache_afs_client.o: apache_api.h apache_afs_client.c apache_afs_utils.o apache_afs_cache.o AFS_component_version_number.o
- $(CC) -c $(CFLAGS) $(AFS_INCL) $(APACHE_INCLUDES) $(AUX_CFLAGS) apache_afs_client.c
-apache_afs_plugin.o: apache_api.h apache_afs_plugin.c apache_afs_client.o apache_afs_utils.o apache_afs_cache.o
- $(CC) -c $(CFLAGS) $(APACHE_INCLUDES) $(AUX_CFLAGS) apache_afs_plugin.c
-
-
-clean:
- -/bin/rm -f *.o $(BINARIES) $(APACHE_AFS_LIB) $(APACHE_AFS_COMMON_LIB) $(DCE_ADK_LIB)
-
-libclean:
- -/bin/rm -f $(APACHE_AFS_LIB) $(LIBOBJS)
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# # Auditing is currently only supported for AIX32 machines. It is
-# # integrated with the AIX auditing facility. The objects, events,
-# # and config files are AIX specific. The Audit file is not but is
-# # included in the rs_aix32 case since other platforms are not
-# # supported (if not supported, don't show it).
-# ######################################################################
-
-SHELL = /bin/sh
-
-COMPONENT=audit
-include ../config/Makefile.${SYS_NAME}
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-UKERNELDIR = ../libuafs/
-LOCALDIR = ${DESTDIR}root.server/usr/afs/local/
-
-audobjs = audit.o
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I$(SRCDIR)include ${XCFLAGS}
-
-include ../config/Makefile.version
-
-noversion system: install
-
-UKSRCS = audit.h
-
-all: libaudit.a
-
-headers: audit.h
- ${INSTALL} audit.h ${DESTDIR}include/afs
-
-install: ukinstall libaudit.a
- ${INSTALL} libaudit.a ${DESTDIR}lib/afs
- ${INSTALL} audit.h ${DESTDIR}include/afs
- case ${SYS_NAME} in \
- rs_aix*) \
- ${INSTALL} Audit ${LOCALDIR} ; \
- ${INSTALL} objects.aix.sample ${LOCALDIR}audit/objects.sample ; \
- ${INSTALL} events.aix.sample ${LOCALDIR}audit/events.sample ; \
- ${INSTALL} config.aix.sample ${LOCALDIR}audit/config.sample ;; \
- *) ;; \
- esac ;
-
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall:
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-doc:
- echo no documents in this directory
-
-libaudit.a: ${audobjs} AFS_component_version_number.o
- rm -f libaudit.a
- ar r libaudit.a ${audobjs} AFS_component_version_number.o
- $(RANLIB) libaudit.a
-
-audit.o: audit.c audit.h
- ${CC} ${CFLAGS} -c audit.c
-
-clean:
- rm -f *.o core AFS_component_version_number.c *.a
-
-beancount:
- wc -l *.c *.h
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=auth
-
-include ../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-COMPILE_ET = ${SRCDIR}bin/compile_et
-OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
- acfg_errors.o ktc_errors.o # comktc.o comvice.o comauth.o
-KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
- acfg_errors.o ktc_errors.o # comktc.o comvice.o comauth.o
-
-CFLAGS=-g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDIRS=
-LIBS= libauth.a ${DESTDIR}lib/afs/libsys.a \
- ${DESTDIR}lib/librxkad.a ${DESTDIR}lib/libdes.a \
- ${DESTDIR}lib/librx.a ${DESTDIR}lib/afs/libsys.a \
- ${DESTDIR}lib/liblwp.a ${SRCDIR}lib/afs/util.a ${XLIBS}
-INCLS=cellconfig.h auth.h keys.h # comauth.h
-KSRCS=auth.h
-UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
- ktc.c authcon.c ktc_errors.c
-
-include ../config/Makefile.version
-
-system install noversion: install.noversion
-
-all: libauth.a libauth.krb.a setkey
-
-cellconfig.o: cellconfig.c ${INCLS}
-#comktc.o: comktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
-#comvice.o: comvice.c ${INCLS}
-ktc.o: ktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
-writeconfig.o: writeconfig.c ${INCLS}
-authcon.o: authcon.c ${INCLS}
-userok.o: userok.c ${INCLS}
-cellconfig.o: cellconfig.c ${INCLS}
-copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
-setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
-#comauth.o: comauth.c ${INCLS} ${SRCDIR}include/afs/vice.h
-
-ktc.krb.o: ktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
- ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c ktc.c -o ktc.krb.o
-
-libauth.a: $(OBJS) AFS_component_version_number.o
- -rm -f libauth.a
- ar rv libauth.a $(OBJS) AFS_component_version_number.o
- $(RANLIB) libauth.a
-
-libauth.krb.a: $(KOBJS) AFS_component_version_number.o
- -rm -f libauth.krb.a
- ar rv libauth.krb.a $(KOBJS) AFS_component_version_number.o
- $(RANLIB) libauth.krb.a
-
-copyauth: copyauth.o
- $(CC) $(CFLAGS) $(LDIRS) -o copyauth copyauth.o ${LIBS}
-
-setkey: setkey.o
- ${CC} $(CFLAGS) $(LDIRS) -o setkey setkey.o ${LIBS}
-
-acfg_errors.o: acfg_errors.c
-
-acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
- rm -f cellconfig.h acfg_errors.c; ${COMPILE_ET} acfg_errors -h cellconfig
-
-ktc_errors.o: ktc_errors.c
-
-ktc_errors.c auth.h: ktc_errors.et auth.p.h
- rm -f auth.h ktc_errors.c; ${COMPILE_ET} ktc_errors -h auth
-
-test:
- cd test; $(MAKE)
-
-kinstall: ${KSRCS}
- ${INSTALL} ${KSRCS} ${KERNELDIR}afs
-
-ukinstall webinstall: ${UKSRCS}
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-${DESTDIR}etc/copyauth: copyauth
- ${INSTALL} copyauth ${DESTDIR}etc/copyauth
-
-install.noversion: all kinstall ukinstall ${DESTDIR}etc/copyauth
- ${INSTALL} libauth.a ${DESTDIR}lib/afs/libauth.a
- ${INSTALL} libauth.krb.a ${DESTDIR}lib/afs/libauth.krb.a
- ${INSTALL} auth.h ${DESTDIR}include/afs
-# ${INSTALL} comauth.h ${DESTDIR}include/afs
- ${INSTALL} cellconfig.h ${DESTDIR}include/afs
- ${INSTALL} keys.h ${DESTDIR}include/afs
-
-includes: auth.h cellconfig.h keys.h
- ${INSTALL} auth.h ${DESTDIR}include/afs
- ${INSTALL} cellconfig.h ${DESTDIR}include/afs
- ${INSTALL} keys.h ${DESTDIR}include/afs
-
-clean:
- rm -f *.o *.a copyauth testcellconf setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core\
- AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-SRCDIR=
-DESTDIR=DEST/
-OPTIMIZE=-O
-
-INCDIRS= -I./ -I${DESTDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L${DESTDIR}lib/rx
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -lauth -lsys -lrx -llwp ${utilib} ${XLIBS}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${XCFLAGS}
-
-tests system all: testcellconf ktctest
-
-testcellconf: testcellconf.o
- $(CC) $(CFLAGS) -o testcellconf testcellconf.o ${LIBS}
-
-ktctest: ktctest.o
- $(CC) $(CFLAGS) -o ktctest ktctest.o ${LIBS}
-
-clean:
- rm -f *.o *.a copyauth testcellconf ktctest setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=bozo
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET=$(SRCDIR)bin/compile_et
-CFLAGS=-g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h bosint.h
-INCLS=bnode.h ${RPCINCLS} ${SRCDIR}include/afs/auth.h \
- ${SRCDIR}include/afs/keys.h ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/cmd.h ${SRCDIR}include/afs/ktime.h
-
-auditlib=${SRCDIR}/lib/afs/libaudit.a
-
-#have to search libauth.a twice to get error stuff done right.
-# EH 12/18/90 - have to search librx.a twice on Ultrix 4.0
-LIBS=${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libvolser.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librxkad.a ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libprocmgmt.a
-
-OBJS=bosserver.o bnode.o ezbnodeops.o fsbnodeops.o bosint.ss.o bosint.xdr.o \
-bosoprocs.o cronbnodeops.o
-
-LIBOBJS=bosint.xdr.o bosint.cs.o boserr.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: bosserver bos libbos.a
-
-$(OBJS) $(LIBOBJS): $(INCLS)
-
-bosint.ss.o: bosint.ss.c ${RPCINCLS}
-bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
-bosint.cs.o: bosint.cs.c ${RPCINCLS}
-
-bosint.xdr.c bosint.ss.c bosint.cs.c bosint.h: bosint.xg
- ${SRCDIR}bin/rxgen -x bosint.xg
-
-bnode.h boserr.c: bnode.p.h boserr.et
- rm -f boserr.c bnode.h; $(COMPILE_ET) boserr -h bnode
-
-bosserver.o: bosserver.c ${INCLS} AFS_component_version_number.o
-
-cronbnodeops.o: cronbnodeops.c ${INCLS}
-
-bnode.o: bnode.c ${INCLS}
-
-bosoprocs.o: bosoprocs.c ${INCLS}
-
-bos.o: bos.c ${INCLS} AFS_component_version_number.o
-
-bos: bos.o $(LIBS) libbos.a
- ${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS) ${XLIBS}
-
-ezbnodeops.o: ezbnodeops.c ${INCLS}
-
-fsbnodeops.o: fsbnodeops.c ${INCLS}
-
-libbos.a: $(LIBOBJS) AFS_component_version_number.o
- -rm -f libbos.a
- ${AR} r libbos.a ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) libbos.a
-
-bosserver: $(OBJS) $(LIBS)
- ${CC} $(CFLAGS) -o bosserver $(OBJS) ${auditlib} $(LIBS) ${XLIBS}
-
-system: install
-
-install: all
- ${INSTALL} bosserver ${DESTDIR}root.server/usr/afs/bin
- ${INSTALL} bosint.h ${DESTDIR}include/afs/bosint.h
- ${INSTALL} bos ${DESTDIR}bin
- ${INSTALL} bos ${DESTDIR}root.server/usr/afs/bin
- ${INSTALL} libbos.a ${DESTDIR}lib/afs/libbos.a
- ${INSTALL} bnode.h ${DESTDIR}include/afs/bnode.h
-
-clean:
- rm -f *.a *.o bos bosserver testproc bosint.cs.c bosint.ss.c bosint.xdr.c bosint.h core boserr.c bnode.h\
- AFS_component_version_number.c
-
-test:
- cd test; $(MAKE)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-system: testproc smail-notifier
-
-testproc: testproc.c
- $(CC) $(CFLAGS) -o testproc testproc.c
-
-smail-notifier: smail-notifier.c
- $(CC) $(CFLAGS) -o smail-notifier smail-notifier.c
-
-clean:
- rm -f *.a *.o testproc smail-notifier core
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=bu_utils
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET = ${DESTDIR}/bin/compile_et
-CFLAGS= -g -w -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include -I${SRCDIR}include/afs ${XCFLAGS}
-LDFLAGS = ${XLDFLAGS}
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: fms
-
-FMSOBJS = fms.o
-FMSLIBS=${DESTDIR}lib/afs/libcmd.a \
- ${TXLIBS} \
- $(SRCDIR)lib/afs/libusd.a \
- $(SRCDIR)lib/afs/libtermlib.a ${XLIBS} \
- $(SRCDIR)lib/afs/util.a
-
-fms: ${FMSOBJS}
- ${CC} ${LDFLAGS} -o fms ${FMSOBJS} ${FMSLIBS}
-
-fms.o: fms.c AFS_component_version_number.o
-
-#
-# global operations
-#
-
-system: install
-
-install: all
- ${INSTALL} fms ${DESTDIR}etc
-
-clean:
- rm -f *.o fms AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=bubasics
-include ../config/Makefile.${SYS_NAME}
-
-RXGEN=${SRCDIR}bin/rxgen
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-CFLAGS= ${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h
-
-OBJS=butc.ss.o butc.cs.o butc.xdr.o bumon.ss.o bumon.cs.o bumon.xdr.o butc_errs.o butm_errs.o butx_errs.o
-
-libbubasics.a: $(OBJS) AFS_component_version_number.o
- -rm -f libbubasics.a
- ar r libbubasics.a ${OBJS} AFS_component_version_number.o
- ${RANLIB} libbubasics.a
-
-butc.xdr.c butc.ss.c butc.cs.c butc.h: butc.xg
- ${RXGEN} butc.xg
-
-bumon.xdr.c bumon.ss.c bumon.cs.c bumon.h: bumon.xg
- ${RXGEN} bumon.xg
-
-butm_errs.c butm.h: butm_errs.et butm.p.h
- rm -f butm.h butm_errs.c; ${COMPILE_ET} butm_errs -h butm
-
-butc_errs.c tcdata.h: butc_errs.et tcdata.p.h butm.h
- rm -f tcdata.h butc_errs.c; ${COMPILE_ET} butc_errs -h tcdata
-
-butx_errs.c butx.h: butx_errs.et
- rm -f butx.h butx_errs.c; ${COMPILE_ET} butx_errs -h butx
-
-system: install
-
-${DESTDIR}lib/afs/libbubasics.a: libbubasics.a
- ${INSTALL} $? $@
-
-
-install: all ${DESTDIR}lib/afs/libbubasics.a
- ${INSTALL} bubasics.h butc.h bumon.h butm.h butx.h tcdata.h ${DESTDIR}include/afs
-
-clean:
- -rm -f *.o *.a *.xdr.c *.ss.c *.cs.c \
-butc.h butx.h butm.h bumon.h tcdata.h \
-butc_errs.c butx_errs.c butm_errs.c \
-core AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=bucoord
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-CFLAGS= ${DBUG} -w -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include -I${SRCDIR}include/afs ${XCFLAGS}
-
-#LIBS=${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/afs/libbubasics.a \
-#${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a \
-#$(SRCDIR)lib/librx.a $(SRCDIR)lib/liblwp.a
-
-LIBS=${SRCDIR}lib/afs/libbudb.a ${SRCDIR}lib/afs/libbubasics.a \
- ${SRCDIR}lib/afs/libbutm.a ${SRCDIR}lib/afs/libvolser.a \
- ${SRCDIR}lib/afs/libvldb.a ${SRCDIR}lib/afs/vlib.a \
- ${SRCDIR}lib/afs/libkauth.a ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librx.a ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a
-
-INCLS=bc.h ${SRCDIR}include/afs/butc.h
-RXGEN=${SRCDIR}bin/rxgen
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: backup libbxdb.a
-
-libbxdb.a: dsstub.o ubik_db_if.o status.o dlq.o bucoord_errs.o volstub.o AFS_component_version_number.o
- -rm -f libbxdb.a
- ${AR} r libbxdb.a dsstub.o ubik_db_if.o status.o dlq.o \
- bucoord_errs.o volstub.o AFS_component_version_number.o
- ${RANLIB} libbxdb.a
-
-ttest: ttest.o ${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a libbxdb.a
- ${CC} ${CFLAGS} -o ttest ttest.o libbxdb.a \
- ${SRCDIR}lib/afs/libbubasics.a \
-${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a
-
-ttest.o: AFS_component_version_number.c
-
-btest: btest.o ${SRCDIR}lib/afs/libbubasics.a ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a
- ${CC} ${CFLAGS} -o btest btest.o ${SRCDIR}lib/afs/libbubasics.a \
- ${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a
-
-btest.o: AFS_component_version_number.c
-
-BACKSRCS = main.c config.c dsstub.c volstub.c commands.c regex.c server.c \
- dsvs.c dump.c restore.c ubik_db_if.c \
- dump_sched.c vol_sets.c tape_hosts.c \
- bc_status.c status.c dlq.c
-
-BACKOBJS = main.o config.o dsstub.o volstub.o commands.o regex.o server.o \
- dsvs.o dump.o restore.o ubik_db_if.o dump_sched.o vol_sets.o \
- tape_hosts.o bucoord_errs.o bc_status.o status.o dlq.o
-
-main.o: AFS_component_version_number.c
-
-$(BACKOBJS): $(INCLS)
-
-backup: $(BACKOBJS) ${LIBS}
- ${CC} ${CFLAGS} -o backup $(BACKOBJS) ${LIBS} ${XLIBS}
-
-bucoord_errs.c bc.h: bucoord_errs.et bc.p.h
- rm -f bc.h bucoord_errs.c
- ${COMPILE_ET} bucoord_errs -h bc
-
-system: install
-
-install: all
- ${INSTALL} libbxdb.a ${DESTDIR}lib/afs
- ${INSTALL} backup ${DESTDIR}etc
-
-clean:
- rm -f *.o backup convert *.ss.c *.cs.c *.xdr.c *.a core btest ttest AFS_component_version_number.c bc.h bucoord_errs.c
-
-lint:
- lint -IDEST/include -IDEST/include/afs *.h *.c
-
-cxref:
- cxref $(CFLAGS) $(BACKSRCS) > cxref.out
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-
-SHELL = /bin/sh
-COMPONENT=budb
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET = ${SRCDIR}bin/compile_et
-RXGEN=${SRCDIR}bin/rxgen
-
-CFLAGS = -g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = -g ${XLDFLAGS}
-INCLS= \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/des.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/rx/rxkad.h \
- ${SRCDIR}include/afs/auth.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/com_err.h \
- ${SRCDIR}include/afs/bubasics.h \
- budb.h budb_client.h database.h
-
-audlib=${SRCDIR}lib/afs/libaudit.a
-deslib=${SRCDIR}lib/libdes.a
-rxkadlib=${SRCDIR}lib/librxkad.a
-kauthlib=${SRCDIR}lib/afs/libkauth.a
-authlib=${SRCDIR}lib/afs/libauth.a
-cmdlib=${SRCDIR}lib/afs/libcmd.a
-utilib=${SRCDIR}lib/afs/util.a
-ubiklib=${SRCDIR}lib/libubik.a
-
-# library ordering defined by top level makefile
-
-LIBS= ${SRCDIR}lib/afs/libbubasics.a \
- ${audlib} \
- ${SRCDIR}lib/afs/libprot.a \
- ${kauthlib} \
- ${ubiklib} \
- ${authlib} \
- ${rxkadlib} \
- ${SRCDIR}lib/afs/libsys.a \
- ${deslib} \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a \
- ${cmdlib} ${SRCDIR}lib/afs/libcom_err.a \
- ${utilib}
-
-COMMON_OBJS = database.o db_alloc.o db_dump.o db_hash.o struct_ops.o \
- ol_verify.o
-
-SERVER_OBJS = ${COMMON_OBJS} \
- budb.ss.o budb.xdr.o dbs_dump.o db_lock.o db_text.o procs.o server.o budb_errs.o
-
-LIB_BUDB_OBJS = budb_errs.o budb.cs.o budb.xdr.o struct_ops.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: budb_server libbudb.a
-
-clean:
- rm -f *.o *~ budb_errs.[ch] budb.h budb_client.h *.a *.xdr.c \
- *.ss.c *.cs.c core budb_server AFS_component_version_number.c
-
-budb_errs.o: budb_errs.c
-
-budb_errs.c budb_client.h: budb_errs.et budb_client.p.h
- rm -f budb_client.h budb_errs.c; ${COMPILE_ET} budb_errs -h budb_client
-
-budb_errs.h: budb_errs.et
- ${COMPILE_ET} budb_errs
-
-database.o: database.c budb_errs.h globals.h ${INCLS}
-db_alloc.o: db_alloc.c budb_errs.h ${INCLS}
-dbs_dump.o: dbs_dump.c budb_errs.h ${INCLS}
-db_lock.o: db_lock.c budb_errs.h ${INCLS}
-db_text.o: db_text.c budb_errs.h ${INCLS}
-db_hash.o: db_hash.c budb_errs.h ${INCLS}
-ol_verify.o: ol_verify.c budb_errs.h ${INCLS}
-procs.o: procs.c budb_errs.h globals.h ${INCLS}
-server.o: server.c budb_errs.h ${INCLS} AFS_component_version_number.c
-
-# database verification and rebuild
-
-budb_server: $(SERVER_OBJS) ${LIBS}
- ${CC} ${LDFLAGS} -o budb_server $(SERVER_OBJS) ${LIBS} ${XLIBS}
-
-budb.xdr.c budb.cs.c budb.ss.c budb.h: budb.rg
- ${RXGEN} budb.rg
-
-libbudb.a: ${LIB_BUDB_OBJS} AFS_component_version_number.o
- -rm -f libbudb.a
- ${AR} rv libbudb.a $(LIB_BUDB_OBJS) AFS_component_version_number.o
- ${RANLIB} libbudb.a
-
-system: install
-install: all ${DESTDIR}lib/afs/libbudb.a ${DESTDIR}include/afs/budb.h ${DESTDIR}include/afs/budb_errs.h ${DESTDIR}include/afs/budb_client.h ${DESTDIR}root.server/usr/afs/bin/buserver
-
-${DESTDIR}lib/afs/libbudb.a: libbudb.a
- ${INSTALL} $? $@
-
-${DESTDIR}include/afs/budb.h: budb.h
- ${INSTALL} $? $@
-
-${DESTDIR}include/afs/budb_errs.h: budb_errs.h
- ${INSTALL} $? $@
-
-${DESTDIR}include/afs/budb_client.h: budb_client.h
- ${INSTALL} $? $@
-
-${DESTDIR}root.server/usr/afs/bin/buserver: budb_server
- ${INSTALL} -f $? $@
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=butc
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS=-g -w ${INCDIRS} ${XCFLAGS}
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${SRCDIR}include/afs \
- -I${SRCDIR}include/rx -I${SRCDIR}include
-
-INCLS=${SRCDIR}include/afs/partition.h ${SRCDIR}include/afs/volume.h \
- ${SRCDIR}include/afs/vlserver.h ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h ${SRCDIR}include/ubik.h \
- ${SRCDIR}include/afs/cmd.h ${SRCDIR}include/afs/butc.h \
- ${SRCDIR}include/afs/tcdata.h ${SRCDIR}include/afs/bubasics.h \
- ${SRCDIR}include/afs/butm.h
-
-HACKS=${SRCDIR}lib/afs/libdir.a
-
-INCLIBS=-L${SRCDIR}lib/afs -L${SRCDIR}lib
-
-LIBS=${SRCDIR}lib/afs/libbudb.a \
- $(SRCDIR)/lib/afs/libbxdb.a \
- ${SRCDIR}lib/afs/libbubasics.a \
- ${SRCDIR}lib/afs/libbutm.a \
- ${SRCDIR}lib/afs/libvolser.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/afs/vlib.a \
- ${SRCDIR}/lib/afs/libacl.a \
- ${SRCDIR}lib/afs/libprot.a \
- ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libusd.a \
- ${SRCDIR}lib/afs/libprocmgmt.a
-
-TESTOBJS=test.o
-
-SOBJS=dbentries.o tcprocs.o lwps.o tcmain.o list.o recoverDb.o tcudbprocs.o \
- dump.o tcstatus.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: butc read_tape
-
-butc_test: ${TESTOBJS} ${LIBS} ${INCLS} ${HACKS}
- ${CC} ${CFLAGS} ${TESTOBJS} ${LIBS} ${XLIBS} -o butc_test
-
-tdump: tdump.c AFS_component_version_number.c
- ${CC} ${CFLAGS} tdump.c -o tdump
-
-butc: ${SOBJS} ${LIBS} ${INCLS} ${HACKS}
- @case ${SYS_NAME} in \
- rs_aix4*) ${CC} ${CFLAGS} ${SOBJS} ${LIBS} ${XLIBS} /usr/lib/libc_r.a -o butc;; \
- *) ${CC} ${CFLAGS} ${SOBJS} ${LIBS} ${XLIBS} -o butc;; \
- esac
-
-tcmain.o: tcmain.c ${INCLS} AFS_component_version_number.c
-dbentries.o: dbentries.c ${INCLS}
-tcprocs.o: tcprocs.c ${INCLS}
-test.o: test.c ${INCLS} AFS_component_version_number.c
-lwps.o: lwps.c ${INCLS}
-list.o: list.c ${INCLS}
-recoverDb.o: recoverDb.c ${INCLS}
-tcudbprocs.o: tcudbprocs.c ${INCLS}
-dump.o: dump.c ${INCLS}
-tcstatus.o: tcstatus.c ${INCLS}
-
-read_tape: read_tape.c
- ${CC} ${CFLAGS} -o read_tape read_tape.c \
- ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libusd.a
- ${INSTALL} read_tape ${SRCDIR}etc
-
-clean:
- rm -f butc *.o butc_test core tdump read_tape AFS_component_version_number.c
-
-system: install
-install install.noversion: all
- @case ${SYS_NAME} in \
- alpha_dux*|sgi_*|sun4x_*|rs_aix4*|*linux*|hp_ux*) \
- echo "Don't install butc for ${SYS_NAME} (will install from tbutc)" ;; \
- *) \
- echo ${INSTALL} butc ${DESTDIR}etc/butc ; \
- ${INSTALL} butc ${DESTDIR}etc/butc ;; \
- esac
-
-lint: tcmain.c dbentries.c tcprocs.c test.c lwps.c list.c
- lint -hb ${INCDIRS} ${INCLIBS} tcmain.c
- lint -hb ${INCDIRS} ${INCLIBS} dbentries.c
- lint -hb ${INCDIRS} ${INCLIBS} tcprocs.c
- lint -hb ${INCDIRS} ${INCLIBS} lwps.c
- lint -hb ${INCDIRS} ${INCLIBS} list.c
- lint -hb ${INCDIRS} ${INCLIBS} test.c
- lint -hb ${INCDIRS} ${INCLIBS} recoverDb.c
- lint -hb ${INCDIRS} ${INCLIBS} tcudbprocs.c
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-SHELL = /bin/sh
-SRCDIR=DEST/
-DESTDIR=DEST/
-
-CFLAGS = -g -w -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = -g ${XLDFLAGS}
-INCLS= ${SRCDIR}include/afs/com_err.h ${SRCDIR}include/afs/butm.h
-
-LIBS=${SRCDIR}lib/afs/libbubasics.a \
-${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libusd.a \
-${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/libbutm.a \
-${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a ${XLIBS}
-
-OBJS=file_tm.o
-
-COMPONENT=butm
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-noversion: install
-
-all: libbutm.a
-
-clean:
- rm -f *.o *.a core test_ftm AFS_component_version_number.c
-
-file_tm.o: file_tm.c ${INCLS}
-
-test_ftm.o: test_ftm.c ${INCLS} AFS_component_version_number.c
-
-test_ftm: test_ftm.o libbutm.a
- ${CC} ${LDFLAGS} -o test_ftm test_ftm.o libbutm.a ${LIBS}
-
-libbutm.a: ${OBJS} AFS_component_version_number.o
- -rm -f libbutm.a
- ${AR} rv libbutm.a $(OBJS) AFS_component_version_number.o
- ${RANLIB} libbutm.a
-
-${DESTDIR}lib/afs/libbutm.a: libbutm.a
- ${INSTALL} $? $@
-
-system: install
-install install.noversion: all ${DESTDIR}lib/afs/libbutm.a
-
-test: test_ftm
- echo 'Usage: ./test_ftm -conf config -tape xxx *'
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-SHELL = /bin/sh
-COMPONENT=cmd
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-INCLS=cmd.h ${XINCLS}
-LIBOBJS=cmd_errors.o cmd.o
-LIB64OBJS=cmd_errors64.o cmd64.o
-
-CFLAGS= ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-include ../config/Makefile.version
-
-system install noversion: install.noversion
-
-all: libcmd.a
-
-test tests:
- (cd test; $(MAKE) )
-
-cmd.h cmd_errors.c: cmd_errors.et cmd.p.h
- rm -f cmd.h cmd_errors.c; ${COMPILE_ET} cmd_errors -h cmd
-
-cmd_errors.o: cmd_errors.c
-
-cmd.o: cmd.c ${INCLS}
-
-AFS_component_version_number64.o: AFS_component_version_number.c
- ${CC} ${OPTMZ} -I${SRCDIR}include ${XCFLAGS64} -c -o AFS_component_version_number64.o AFS_component_version_number.c
-
-cmd_errors64.o: cmd_errors.c
- ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS64} -c -o cmd_errors64.o cmd_errors.c
-
-cmd64.o: cmd.c ${INCLS}
- ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS64} -c -o cmd64.o cmd.c
-
-
-libcmd64.a: ${LIB64OBJS} AFS_component_version_number64.o
- -rm -f libcmd64.a
- $(AR) r libcmd64.a ${LIB64OBJS} AFS_component_version_number64.o
- $(RANLIB) libcmd64.a
-
-libcmd.a: ${LIBOBJS} AFS_component_version_number.o
- -rm -f libcmd.a
- $(AR) r libcmd.a ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) libcmd.a
-
-kinstall:
- @echo No kernel source here.
-
-ukinstall webinstall: install
-
-install64: libcmd64.a
- ${INSTALL} libcmd64.a ${DESTDIR}lib/afs/libcmd64.a
- ${INSTALL} cmd.h ${DESTDIR}include/afs/cmd.h
-
-install.noversion: all
- ${INSTALL} libcmd.a ${DESTDIR}lib/afs/libcmd.a
- ${INSTALL} cmd.h ${DESTDIR}include/afs/cmd.h
-
-clean:
- rm -f *.a *.o ctest dtest cmd.h cmd_errors.c core AFS_component_version_number.c
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-DESTDIR=DEST/
-SRCDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. L${BACKDIR}lib -L${BACKDIR}lib/afs
-LIBS=-lcmd -lcom_err ${DESTDIR}lib/afs/util.a
-
-INCDIRS= -I${SRCDIR}include -I${SRCDIR}include/afs -I.. -I${BACKDIR}include -I${BACKDIR}include/afs
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-all: test
-test tests: ctest dtest itest
-
-itest: itest.o
- cc ${CFLAGS} -o itest itest.o
-
-ctest: ctest.o
- cc ${CFLAGS} -o ctest ctest.o
-
-dtest: dtest.o
- cc ${CFLAGS} -o dtest dtest.o
-
-system: test
-
-kinstall:
- @echo No kernel source here.
-
-clean:
- rm -f *.a *.o ctest dtest itest core
-
+++ /dev/null
-#
-# Makefile for error-table routines
-#
-# Copyright 1987, 1989 MIT Student Information Processing Board
-# For copyright info, see mit-sipb-cr.h.
-#
-# $Locker: $
-#
-
-SHELL = /bin/sh
-COMPONENT=comerr
-include ../config/Makefile.${SYS_NAME}
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-LINTFLAGS= -uhvpb
-LINTFILES= error_msg.c et_name.c com_err.c
-LIBOBJS= error_msg.o et_name.o com_err.o
-
-UKERNELDIR=../libuafs/
-
-CFLAGS= ${OPTMZ} -I${DESTDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
-FILES= Makefile et_name.c error_msg.c compile_et.c \
- error_table.y et_lex.lex.l \
- com_err.c com_err.h \
- error_table.h mit-sipb-cr.h \
- test.c test1.et test2.et \
- compiler.h internal.h
-
-CFILES= compile_et.c error_table.c error_msg.c et_name.c \
- com_err.c
-
-UKSRCS=com_err.c com_err.h error_msg.c error_table.h mit-sipb-cr.h internal.h et_name.c
-
-COMPONENT=comerr
-include ../config/Makefile.version
-
-utilib=${SRCDIR}lib/afs/util.a ${XLIBS}
-
-system noversion: install
-
-#
-# what to build...
-#
-${DESTDIR}bin/compile_et: compile_et
- ${INSTALL} compile_et ${DESTDIR}bin/compile_et
-
-all: libcom_err.a ${DESTDIR}bin/compile_et
-
-lint: llib-lcom_err.ln
-
-archive: et.tar
-
-doc: com_err.dvi
-
-#
-# rules
-#
-.SUFFIXES: .l .h .c .et .ps .x9700 .mss .dvi .texinfo
-
-.l.c:
- $(RM) -f $*.c
- $(LEX) -t $*.l >$*.c
-
-.et.c:
- ./compile_et $*.et
-
-.et.h:
- ./compile_et $*.et
-
-.texinfo.dvi:
- tex $<
-
-.dvi.ps:
- rm -f $@.new
- dvi2ps -r $< > $@.new
- mv $@.new $@
-
-.c.o:
-# ${CC} -c -pg ${CFLAGS} $*.c
-# mv $*.o profiled/$*.o
- ${CC} -c ${CFLAGS} $*.c
-
-#
-# real entries...
-#
-compile_et: compile_et.o error_table.o
- case $(SYS_NAME) in \
- *_linux* ) \
- ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib};; \
- * ) \
- ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib} -ll;; \
- esac
-
-et.tar: ${FILES}
- rm -f et.tar
- tar cfrlv et.tar ${FILES}
-
-tags: TAGS
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall: install
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-install: all ukinstall
- ${INSTALL} com_err.h ${DESTDIR}include/afs/com_err.h
- ${INSTALL} error_table.h ${DESTDIR}include/afs/error_table.h
- ${INSTALL} mit-sipb-cr.h ${DESTDIR}include/afs/mit-sipb-cr.h
- ${INSTALL} libcom_err.a ${DESTDIR}lib/afs/libcom_err.a
-
-TAGS: et_name.c error_msg.c compile_et.c error_table.c \
- lex.yy.c perror.c
- etags et_name.c error_msg.c compile_et.c \
- error_table.c perror.c
-
-libcom_err.a: $(LIBOBJS) AFS_component_version_number.o
- - rm -f libcom_err.a
- $(AR) cruv libcom_err.a $(LIBOBJS) AFS_component_version_number.o
- $(RANLIB) libcom_err.a
-
-llib-lcom_err.ln: $(LINTFILES)
- lint -Ccom_err $(LINTFLAGS) $(LINTFILES)
-
-clean:
- -rm -f *~ \#* *.bak \
- *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
- *.cp *.fn *.ky *.log *.pg *.tp *.vr \
- *.o libcom_err.a \
- com_err.o compile_et \
- et.ar TAGS y.tab.c lex.yy.c error_table.c \
- et_lex.lex.c \
- test1.h test1.c test2.h test2.c test \
- eddep makedep core\
- AFS_component_version_number.c
-
-test:
- cd test; $(MAKE)
-
-# 'make depend' code
-depend: ${CFILES} et_lex.lex.c
- rm -f eddep makedep
- ${CC} -M ${CFLAGS} ${CFILES} | \
- sed 's; ./; ;' | \
- sed -e ':loop' \
- -e 's/\.\.\/[^ /]*\/\.\./../' \
- -e 't loop' > makedep
- echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ed - Makefile < eddep
- rm eddep makedep
-
-compile_et.o: AFS_component_version_number.c
-#
-# the last line in the makefile should be...
-# DO NOT DELETE THIS LINE -- make depend depends on it.
-compile_et.o: compile_et.c
-compile_et.o: mit-sipb-cr.h
-error_table.o: error_table.c
-error_table.o: internal.h
-error_table.o: mit-sipb-cr.h
-error_table.o: error_table.h
-error_table.o: mit-sipb-cr.h
-error_table.o: et_lex.lex.c
-error_msg.o: error_msg.c
-error_msg.o: error_table.h
-error_msg.o: mit-sipb-cr.h
-error_msg.o: internal.h
-error_msg.o: mit-sipb-cr.h
-et_name.o: et_name.c
-et_name.o: error_table.h
-et_name.o: mit-sipb-cr.h
-et_name.o: internal.h
-et_name.o: mit-sipb-cr.h
-perror.o: perror.c
-perror.o: internal.h
-perror.o: mit-sipb-cr.h
-perror.o: com_err.h
-perror.o: mit-sipb-cr.h
-perror.o: mit-sipb-cr.h
-com_err.o: com_err.c
-com_err.o: error_table.h
-com_err.o: mit-sipb-cr.h
-com_err.o: internal.h
-com_err.o: mit-sipb-cr.h
+++ /dev/null
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -lcom_err
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-system: test
-
-clean:
- rm -f *.o *.a test core
-
-test: test.o test1.o test2.o
- $(CC) ${CFLAGS} -o test test.o test1.o test2.o
-test.o: test1.h test2.h
-test1.o : test1.c
-test1.c : test1.et
-test2.o : test2.c
-test2.c : test2.et
-
-kinstall:
- @echo No kernel source here.
-
-clean:
- rm -f *~ \#* *.bak \
- *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
- *.cp *.fn *.ky *.log *.pg *.tp *.vr \
- *.o libcom_err.a \
- com_err.o compile_et \
- et.ar TAGS y.tab.c lex.yy.c error_table.c \
- et_lex.lex.c \
- test1.h test1.c test2.h test2.c test \
- eddep makedep core
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-KERNELDIR=../libafs
-UKERNELDIR=../libuafs
-SHELL=/bin/sh
-COMPONENT=config
-include Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-CFLAGS=-g -I${DESTDIR}include ${XCFLAGS}
-
-noversion: install.noversion
-
-KDIRS = ${KERNELDIR}/afs ${KERNELDIR}/rx ${KERNELDIR}/afsint \
- ${DESTDIR}include/afs ${KERNELDIR}/config
-
-UKDIRS = ${UKERNELDIR}/afs ${UKERNELDIR}/rx ${UKERNELDIR}/afsint \
- ${UKERNELDIR}/config
-
-noversionMakef: $(KDIRS)
- -if [ ! -f Makefile.version ] ; \
- then \
- $(CP) Makefile.version-NOCML Makefile.version; \
- $(MAKE) -f Makefile.version AFS_component_version_number.c; \
- fi;
-
-version: ${DESTDIR}bin/mkvers Makefile.version
- $(MAKE) -f Makefile.version AFS_component_version_number.c
-
-${DESTDIR}bin/mkvers: mkvers.c
- set ${DESTDIR}bin; $(MKDIR_IF_NEEDED)
- $(CC) -o ${DESTDIR}bin/mkvers mkvers.c
-
-Makefile.version: Makefile.version-CML Makefile.version-NOCML
- $(RM) -f Makefile.version
- set -x ; \
- if [ -r SRC/../CML/state ] ; \
- then $(CP) Makefile.version-CML Makefile.version ; \
- else $(CP) Makefile.version-NOCML Makefile.version ; \
- fi
-
-all: config
-
-mc.o: mc.c
-
-config.o: config.c AFS_component_version_number.c
-
-config: config.o mc.o
- $(SPEW) $(CC) $(CFLAGS) -o config config.o mc.o
-
-param.xxx:
-
-$(KDIRS):
- set $@; $(MKDIR_IF_NEEDED)
-
-${KERNELDIR}/afs/AFS_component_version_number.c: AFS_component_version_number.c
- -$(RM) -f $@; $(CP) $? $@
-
-${KERNELDIR}/afs/param.h ${DESTDIR}include/afs/param.h :: param.${SYS_NAME}.h
- -$(RM) -f $@; $(CP) $? $@
-
-${KERNELDIR}/afs/afs_sysnames.h ${DESTDIR}include/afs/afs_sysnames.h :: afs_sysnames.h
- $(RM) -f $@; $(CP) $? $@
-
-DESTINCLS = ${DESTDIR}include/afs/afs_args.h ${DESTDIR}include/afs/venus.h ${DESTDIR}include/afs/debug.h ${DESTDIR}include/afs/afs_sysnames.h ${DESTDIR}include/afs/param.h ${DESTDIR}include/afs/stds.h ${DESTDIR}include/afs/icl.h
-
-${KERNELDIR}/afs/stds.h ${DESTDIR}include/afs/stds.h :: stds.h
- $(RM) -f $@; $(CP) $? $@
-
-${KERNELDIR}/config/Makefile.${SYS_NAME} :: Makefile.${SYS_NAME}
- $(RM) -f $@; $(CP) $? $@
-
-${KERNELDIR}/afs/icl.h ${DESTDIR}include/afs/icl.h :: icl.h
- $(RM) -f $@; $(CP) $? $@
-
-${KERNELDIR}/afs/afs_args.h ${DESTDIR}include/afs/afs_args.h :: afs_args.h
- $(RM) -f $@; $(CP) $? $@
-
-${DESTDIR}include/afs/venus.h :: venus.h
- $(RM) -f $@; $(CP) $? $@
-
-${DESTDIR}include/afs/debug.h :: debug.h
- $(RM) -f $@; $(CP) $? $@
-
-$(UKDIRS):
- set $@; $(MKDIR_IF_NEEDED)
-
-${UKERNELDIR}/afs/AFS_component_version_number.c: AFS_component_version_number.c
- -$(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/param.h :: param.${SYS_NAME}_usr.h
- -$(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/afs_sysnames.h :: afs_sysnames.h
- $(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/stds.h :: stds.h
- $(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/config/Makefile.${SYS_NAME} :: Makefile.${SYS_NAME}
- $(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/icl.h :: icl.h
- $(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/venus.h :: venus.h
- $(RM) -f $@; $(CP) $? $@
-
-${UKERNELDIR}/afs/afs_args.h :: afs_args.h
- $(RM) -f $@; $(CP) $? $@
-
-# lkversion is the target the Linux build uses to verify the build machine
-# has headers in the right place for the requested kernel builds.
-#
-# To add AFS support to a new Linux kernel rev, see comments in the file
-# ./linux-version.
-#
-lkversion:
- case ${SYS_NAME} in \
- *linux* ) \
- LINUX_SRCDIR="$(LINUX_SRCDIR)"; export LINUX_SRCDIR; \
- LINUX_VERS="$(LINUX_VERS)"; export LINUX_VERS; \
- sh ./linux-version ; \
- esac
-
-install.noversion: $(KDIRS) noversionMakef all $(DESTINCLS) venus.h
-
-system: install
-install: version install.noversion kinstall ukinstall
-
-# these are needed to compile the kernel. Config is necessary to
-# convert the MakefileProto in libafs and the kernel links provide the
-# kernel include environment. param.h is, well, param.h. The afs_sysnames.h
-# file is needed by param.h to create unique identifiers for each SYS_TYPE.
-
-# lkversion
-kinstall: config $(KDIRS) ${KERNELDIR}/afs/param.h \
- ${KERNELDIR}/afs/stds.h \
- ${KERNELDIR}/afs/afs_sysnames.h \
- ${KERNELDIR}/config/Makefile.${SYS_NAME} \
- ${KERNELDIR}/afs/afs_args.h \
- ${KERNELDIR}/afs/icl.h \
- ${KERNELDIR}/afs/AFS_component_version_number.c
-
-ukinstall webinstall: $(DESTINCLS) config $(UKDIRS) ${UKERNELDIR}/afs/param.h ${UKERNELDIR}/afs/stds.h \
- ${UKERNELDIR}/afs/afs_sysnames.h \
- ${UKERNELDIR}/config/Makefile.${SYS_NAME} \
- ${UKERNELDIR}/afs/afs_args.h \
- ${UKERNELDIR}/afs/icl.h \
- ${UKERNELDIR}/afs/venus.h \
- ${UKERNELDIR}/afs/AFS_component_version_number.c
-
-clean:
- $(RM) -f *.o config core xprt AFS_component_version_number.c
LINUX_SRCDIR = /usr/src/linux-
# Default list of Linux kernels to build. Build will run only if all
# can be built. To build a different set, specify LINUX_VERS to make.
-LINUX_VERS = 2.2.5-15 2.2.10 2.2.12 2.2.12-20 2.2.13 2.2.14
+LINUX_VERS = @LINUX_VERSION@
-#
# compilation and link editor flags
DBG=-g
OPTMZ=-O2
MV=mv
RANLIB=ranlib
RM=rm
-WASHTOOL=${DESTDIR}bin/washtool
-INSTALL=${DESTDIR}bin/install
+INSTALL=${TOP_SRCDIR}/pinstall/pinstall
#
# Other OS specific requirements
#
YACC = bison -y
LEX = flex -l
-# Used in des library.
-CRYPT_OBJ = crypt.o
MV=mv
RANLIB=ranlib
RM=rm
-WASHTOOL=${SRCDIR}bin/washtool
-INSTALL=${DESTDIR}bin/install
-#
+
# Other OS specific requirements
#
YACC = bison -y
LEX = flex -l
-# Used in des library.
-CRYPT_OBJ = crypt.o
+++ /dev/null
-# Generated automatically from Makefile.version-NOCML.in by configure.
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-PACKAGE=openafs
-VERSION=1.1.0
-
-AFS_component_version_number.o: AFS_component_version_number.c
-
-AFS_component_version_number.c:
- echo 'char cml_version_number[]="@(#) OpenAFS ${VERSION} built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c;
- echo 'char* AFSVersion = "${PACKAGE} ${VERSION}"; ' >>AFS_component_version_number.c;
-
-noversion: install
-
+++ /dev/null
-/* src/config/afsconfig.h.in. Generated automatically from configure.in by autoheader. */
-
-/* Define if on AIX 3.
- System headers sometimes define this.
- We just want to avoid a redefinition error message. */
-#ifndef _ALL_SOURCE
-#undef _ALL_SOURCE
-#endif
-
-/* Define to empty if the keyword does not work. */
-#undef const
-
-/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
-#undef HAVE_SYS_WAIT_H
-
-/* Define as __inline if that's what the C compiler calls it. */
-#undef inline
-
-/* Define if on MINIX. */
-#undef _MINIX
-
-/* Define to `int' if <sys/types.h> doesn't define. */
-#undef pid_t
-
-/* Define if the system does not provide POSIX.1 features except
- with this defined. */
-#undef _POSIX_1_SOURCE
-
-/* Define if you need to in order for stat and other things to work. */
-#undef _POSIX_SOURCE
-
-/* Define as the return type of signal handlers (int or void). */
-#undef RETSIGTYPE
-
-/* Define to `unsigned' if <sys/types.h> doesn't define. */
-#undef size_t
-
-/* Define if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Define if lex declares yytext as a char * by default, not a char[]. */
-#undef YYTEXT_POINTER
-
-/* Define if you have the connect function. */
-#undef HAVE_CONNECT
-
-/* Define if you have the getdtablesize function. */
-#undef HAVE_GETDTABLESIZE
-
-/* Define if you have the gethostbyname function. */
-#undef HAVE_GETHOSTBYNAME
-
-/* Define if you have the random function. */
-#undef HAVE_RANDOM
-
-/* Define if you have the re_comp function. */
-#undef HAVE_RE_COMP
-
-/* Define if you have the re_exec function. */
-#undef HAVE_RE_EXEC
-
-/* Define if you have the res_search function. */
-#undef HAVE_RES_SEARCH
-
-/* Define if you have the snprintf function. */
-#undef HAVE_SNPRINTF
-
-/* Define if you have the socket function. */
-#undef HAVE_SOCKET
-
-/* Define if you have the srandom function. */
-#undef HAVE_SRANDOM
-
-/* Define if you have the utimes function. */
-#undef HAVE_UTIMES
-
-/* Define if you have the <direct.h> header file. */
-#undef HAVE_DIRECT_H
-
-/* Define if you have the <dirent.h> header file. */
-#undef HAVE_DIRENT_H
-
-/* Define if you have the <fcntl.h> header file. */
-#undef HAVE_FCNTL_H
-
-/* Define if you have the <io.h> header file. */
-#undef HAVE_IO_H
-
-/* Define if you have the <malloc.h> header file. */
-#undef HAVE_MALLOC_H
-
-/* Define if you have the <mntent.h> header file. */
-#undef HAVE_MNTENT_H
-
-/* Define if you have the <ndir.h> header file. */
-#undef HAVE_NDIR_H
-
-/* Define if you have the <netdb.h> header file. */
-#undef HAVE_NETDB_H
-
-/* Define if you have the <netinet/in.h> header file. */
-#undef HAVE_NETINET_IN_H
-
-/* Define if you have the <security/pam_modules.h> header file. */
-#undef HAVE_SECURITY_PAM_MODULES_H
-
-/* Define if you have the <siad.h> header file. */
-#undef HAVE_SIAD_H
-
-/* Define if you have the <signal.h> header file. */
-#undef HAVE_SIGNAL_H
-
-/* Define if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define if you have the <sys/dir.h> header file. */
-#undef HAVE_SYS_DIR_H
-
-/* Define if you have the <sys/fcntl.h> header file. */
-#undef HAVE_SYS_FCNTL_H
-
-/* Define if you have the <sys/file.h> header file. */
-#undef HAVE_SYS_FILE_H
-
-/* Define if you have the <sys/fs_types.h> header file. */
-#undef HAVE_SYS_FS_TYPES_H
-
-/* Define if you have the <sys/mntent.h> header file. */
-#undef HAVE_SYS_MNTENT_H
-
-/* Define if you have the <sys/mnttab.h> header file. */
-#undef HAVE_SYS_MNTTAB_H
-
-/* Define if you have the <sys/mount.h> header file. */
-#undef HAVE_SYS_MOUNT_H
-
-/* Define if you have the <sys/ndir.h> header file. */
-#undef HAVE_SYS_NDIR_H
-
-/* Define if you have the <sys/param.h> header file. */
-#undef HAVE_SYS_PARAM_H
-
-/* Define if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
-
-/* Define if you have the <sys/vfs.h> header file. */
-#undef HAVE_SYS_VFS_H
-
-/* Define if you have the <termios.h> header file. */
-#undef HAVE_TERMIOS_H
-
-/* Define if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define if you have the <usersec.h> header file. */
-#undef HAVE_USERSEC_H
-
-/* Define if you have the <windows.h> header file. */
-#undef HAVE_WINDOWS_H
-
-/* Define if you have the <winsock2.h> header file. */
-#undef HAVE_WINSOCK2_H
-
-/* Name of package */
-#undef PACKAGE
-
-/* Version number of package */
-#undef VERSION
-
-/* define if target is big endian */
-#undef WORDS_BIGENDIAN
-
-/* define if sys/param.h defines the endiness */
-#undef ENDIANESS_IN_SYS_PARAM_H
-
-/* define if struct ufsvfs has vfs_dqrwlock */
-#undef HAVE_VFS_DQRWLOCK
-
-#undef PACKAGE
-#undef VERSION
-
-#define RCSID(msg) \
-static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
-
-#undef HAVE_CONNECT
-#undef HAVE_GETHOSTBYNAME
-#undef HAVE_RES_SEARCH
-#undef HAVE_SOCKET
-
-#if ENDIANESS_IN_SYS_PARAM_H
-# ifndef KERNEL
-# include <sys/types.h>
-# include <sys/param.h>
-# if BYTE_ORDER == BIG_ENDIAN
-# define WORDS_BIGENDIAN 1
-# endif
-# endif
-#endif
-
-#undef AFS_AFSDB_ENV
-#undef AFS_NAMEI_ENV
-#undef BOS_RESTRICTED_MODE
-
-#undef FAST_RESTART
-#undef BITMAP_LATER
-
-#undef INODE_SETATTR_NOT_VOID
-#undef STRUCT_INODE_HAS_I_BYTES
-#undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
-
-/* glue for RedHat kernel bug */
-#undef ENABLE_REDHAT_BUILDSYS
-
-#if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
-#include "redhat-fix.h"
-#endif
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT= dauth
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET = ${SRCDIR}bin/compile_et
-OPTMZ= -g
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = ${OPTMZ} ${XLDFLAGS}
-
-INCLS= ${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/com_err.h
-
-VERS = AFS_component_version_number.o
-OBJS = adkint.cs.o adkint.xdr.o
-
-LIBS = ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/util.a
-
-CELL= `pwd|awk -F/ '{print $$3}'`
-USNS= cellname
-
-include ../config/Makefile.version
-
-ukinstall webinstall:
- echo No $@ source here
-
-noversion: install
-
-all: dlog dpass
-
-clean:
- rm -f adkint.h adkint.cs.c adkint.ss.c adkint.xdr.c *.o dlog dpass AFS_component_version_number.c
-
-adkint.cs.o: adkint.cs.c
-adkint.xdr.o: adkint.xdr.c adkint.h
-adkint.cs.c adkint.xdr.c adkint.h: adkint.xg
- ${SRCDIR}bin/rxgen adkint.xg
-
-dlog: dlog.o $(VERS) $(OBJS) $(LIBS)
- $(CC) ${LDFLAGS} -o dlog dlog.o $(VERS) $(OBJS) ${LIBS} \
- ${XLIBS}
-
-dlog.o: dlog.c adkint.h
-
-dpass: dpass.o $(VERS) $(LIBS)
- $(CC) ${LDFLAGS} -o dpass dpass.o $(VERS) $(LIBS) ${XLIBS}
-
-# Test version of dlog just checks ASN.1 date conversion.
-dlog_test: dlog.c $(OBJS) $(LIBS)
- $(CC) $(LDFLAGS) -DDLOG_TEST -o dlog_test dlog.c $(OBJS) \
- $(LIBS) ${XLIBS}
-
-system: install
-
-${DESTDIR}bin/dlog: dlog
- ${INSTALL} $? $@
-
-${DESTDIR}bin/dpass: dpass
- ${INSTALL} $? $@
-
-
-install: all ${DESTDIR}bin/dlog ${DESTDIR}bin/dpass
+++ /dev/null
-#
-# Copyright 1987 by the Massachusetts Institute of Technology.
-#
-# For copying and distribution information,
-# please see the file <mit-cpyright.h>.
-#
-# Makefile for BSD DES library
-#
-# First define machine type, compiler, and object file suffix
-# Could be for VAX or PC-DOS
-#
-# Some of these files are cross compiled on the vax for the pc8086,
-# using the MIT LCS cross-compilation environment
-# Others are always executed on the vax(host).
-#
-# A machine, e.g. Vax, pc8086, IBM experimental workstation, is
-# described in terms of defines for its word length
-# (BITS32 or BITS16), byte ordering (LSBFIRST or MSBFIRST) and
-# operating system (BSDUNIX or CROSSMSDOS).
-#
-# Make sure these are properly defined for any new machine types.
-# target machine for run-time code (may cross-compile),
-# override as needed
-
-SHELL = /bin/sh
-include ../config/Makefile.${SYS_NAME}
-
-UKERNELDIR=../libuafs/
-SRC =.
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-UKSRCS=des.h mit-cpyright.h
-
-K_INC = ${SRCDIR}include
-DBG =
-GPROF =
-# by default do not try to hide entry points
-F_CC = -c ${GPROF} ${DBG} ${XCFLAGS}
-F_CPP = -I${K_INC} -I. -I${TOP_SRCDIR}/config
-MK_STR = " \$${CC} -I\$${SRC} \$${F_CPP} \$${F_CC}" -I${TOP_SRCDIR}/config
-LDFLAGS = ${XLDFLAGS}
-
-# dont use optimizer, since it pessimizes on uvax2,
-# somehow -pg makes it faster.
-
-TAGS = /bin/ctags
-
-DES_LIB = libdes.a
-DEP_LIBS = ${DES_LIB} ${NDES_LIB}
-LIBS = ${DEP_LIBS} ${XLIBS}
-LLIB = llib-ldes.ln
-
-SRCHOST = \
- ${SRC}/make_keyperm.c \
- ${SRC}/make_ip.c \
- ${SRC}/make_fp.c \
- ${SRC}/make_p.c \
- ${SRC}/make_s.c \
- ${SRC}/make_s_table.c \
- ${SRC}/make_p_table.c \
- ${SRC}/make_odd.c \
- ${SRC}/misc.c
-
-OBJHOST = \
- make_keyperm.o \
- make_ip.o \
- make_fp.o \
- make_e.o \
- make_p.o \
- make_s.o \
- make_s_table.o \
- make_p_table.o \
- make_odd.o \
- misc.o
-
-SRCTARG = \
- ${SRC}/key_sched.c \
- ${SRC}/des.c \
- ${SRC}/cbc_encrypt.c \
- ${SRC}/read_pssword.c \
- ${SRC}/pcbc_encrypt.c \
- ${SRC}/cksum.c \
- ${SRC}/quad_cksum.c \
- ${SRC}/new_rnd_key.c \
- ${SRC}/key_parity.c \
- ${SRC}/weak_key.c \
- ${SRC}/util.c \
- ${SRC}/strng_to_key.c \
- ${SRC}/debug_decl.c
-
-OBJTARG = \
- key_sched.o \
- des.o \
- cbc_encrypt.o \
- read_pssword.o \
- pcbc_encrypt.o \
- cksum.o \
- quad_cksum.o \
- key_parity.o \
- weak_key.o \
- new_rnd_key.o \
- util.o \
- strng_to_key.o \
- debug_decl.o
-
-CFILES = ${SRCHOST} ${SRCTARG}
-OBJECTS = ${OBJHOST} ${OBJTARG}
-
-CODE = ${CFILES} ${SRC}/Makefile
-
-# Generated files
-GFILES = \
- key_perm.h \
- p_table.h \
- s_table.h \
- odd.h \
- p.c \
- s.c \
- fp.c \
- ip.c
-
-# Programs to create generated files
-GPROGS = \
- make_keyperm \
- make_p_table \
- make_s_table \
- make_odd \
- make_p \
- make_s \
- make_fp \
- make_ip
-
-XGPROGS = \
- misc \
- make_e
-
-# Library component lists.
-
-TARGOBJS = \
- des.o \
- cbc_encrypt.o \
- pcbc_encrypt.o \
- cksum.o \
- new_rnd_key.o \
- key_sched.o \
- debug_decl.o \
- quad_cksum.o \
- key_parity.o \
- weak_key.o \
- read_pssword.o \
- strng_to_key.o \
- misco.o \
- ${CRYPT_OBJ} \
- util.o
-
-COMPONENT=des
-include ../config/Makefile.version
-
-# This is required to get compiler flags, but not use CFLAGS.
-AFS_component_version_number.o: AFS_component_version_number.c
- $(CC) ${XCFLAGS} -c AFS_component_version_number.c
-
-noversion: install
-
-all: ${GFILES} ${CFILES} ${DEP_LIBS}
-
-gprogs: ${GPROGS}
-
-test:
- cd test; $(MAKE)
-
-system: install
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall: all ${UKSRCS}
- set ${UKERNELDIR}des; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}des
- ${INSTALL} libdes.a ${UKERNELDIR}des/libdes.a
-
-${DESTDIR}lib/libdes.a: libdes.a
- ${INSTALL} $? $@
-
-install install.noversion: all ukinstall ${DESTDIR}lib/libdes.a
- ${INSTALL} des.h des_conf.h mit-cpyright.h ${DESTDIR}include
- ${INSTALL} odd.h ${DESTDIR}include/des_odd.h
-
-clean:
- rm -f ${OBJECTS} ${DEP_LIBS} ${PROGS} ${GPROGS} ${GFILES} AFS_component_version_number.c misco.c
- rm -f *.s *.o *.b core *~ *.com *.ld
- rm -f tags TAGS ${LLIB}
-
-tags: ${CFILES}
- rm -f tags; ${TAGS} ${CFILES}
-
-print: ${CODE}
- lpr -p ${CODE}
-
-src: ${CODE}
-
-${CODE}:
- (cd ${SRC}; co -q $@)
-
-lint: ${LLIB}
-
-${LLIB}: ${CFILES}
- lint -I${K_INC} ${CFILES}
-
-${DES_LIB}: ${TARGOBJS} ${COMMONOBJS} AFS_component_version_number.o
- rm -f ${DES_LIB}
- ar r ${DES_LIB} ${TARGOBJS} ${COMMONOBJS} AFS_component_version_number.o
- $(RANLIB) ${DES_LIB}
-
-# host system stuff
-make_ip: make_ip.o misc.o
- ${CC} make_ip.o misc.o ${LDFLAGS} -o make_ip
-make_fp: make_fp.o misc.o
- ${CC} make_fp.o misc.o ${LDFLAGS} -o make_fp
-make_odd: make_odd.o misc.o
- ${CC} ${LDFLAGS} make_odd.o -o make_odd misc.o
-make_s_table: make_s_table.o misc.o
- ${CC} ${LDFLAGS} make_s_table.o misc.o -o make_s_table
-make_p_table: make_p_table.o misc.o
- ${CC} ${LDFLAGS} make_p_table.o misc.o -o make_p_table
-make_keyperm: make_keyperm.o misc.o
- ${CC} make_keyperm.o misc.o ${LDFLAGS} -o make_keyperm
-make_e: make_e.o misc.o
- ${CC} make_e.o misc.o ${LDFLAGS} -o make_e
-make_p: make_p.o misc.o
- ${CC} make_p.o misc.o ${LDFLAGS} -o make_p
-make_s: make_s.o misc.o
- ${CC} make_s.o misc.o ${LDFLAGS} -o make_s
-
-odd.h: make_odd
- -./make_odd odd.h
-s_table.h: make_s_table
- -./make_s_table s_table.h
-p_table.h: make_p_table
- -./make_p_table p_table.h
-key_perm.h: make_keyperm
- -./make_keyperm key_perm.h
-ip.c: make_ip
- -./make_ip ip.c
-p.c: make_p
- -./make_p p.c
-s.c: make_s
- -./make_s s.c
-fp.c: make_fp
- -./make_fp fp.c
-
-depend: ${CFILES} AFS_component_version_number.o
- -${CC} -M ${F_CPP} ${CFILES} | \
- sed -e ':loop' \
- -e 't loop' | \
- awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
- else { if (length(rec $$2) > 70) { print rec; rec = $$0; } \
- else rec = rec " " $$2 } } \
- END { print rec } ' > makedep
- for file in ${OBJECTS} ; do \
- echo "$$file:" >> makedep; \
- echo ${MK_STR} "\$${SRC}/`basename $$file .o`.c" >> makedep; \
- done
- echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ex - Makefile < eddep
- rm eddep makedep
- echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
- echo -n '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
- echo ' (see make depend above)' >> Makefile
- make depend2 SRCDIR=${SRCDIR}
-
-depend2: ${CFILES} ${GFILES}
- ${CC} -M ${F_CPP} ${CFILES} | \
- sed -e ':loop' \
- -e 't loop' | \
- awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
- else { if (length(rec $$2) > 70) { print rec; rec = $$0; } \
- else rec = rec " " $$2 } } \
- END { print rec } ' > makedep
- for file in ${OBJECTS} ; do \
- echo "$$file:" >> makedep; \
- echo ${MK_STR} "\$${SRC}/`basename $$file .o`.c" >> makedep; \
- done
- echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ex - Makefile < eddep
- rm eddep makedep
- echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
- echo -n '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
- echo ' (see make depend above)' >> Makefile
-
-misc.o make_e.o: AFS_component_version_number.c
-# DO NOT DELETE THIS LINE
-
-make_keyperm.o: make_keyperm.c
-make_keyperm.o:
-make_ip.o: make_ip.c
-make_ip.o: tables.h
-make_fp.o: make_fp.c
-make_fp.o: tables.h
-make_p.o: make_p.c
-make_p.o: conf.h tables.h
-make_s.o: make_s.c ./s_table.h
-make_s_table.o: make_s_table.c
-make_s_table.o: tables.h
-make_p_table.o: make_p_table.c
-make_p_table.o: conf.h
-make_p_table.o: tables.h
-make_odd.o: make_odd.c
-misc.o: misc.c des_internal.h
-misc.o: conf.h
-key_sched.o: key_sched.c
-key_sched.o: conf.h
-key_sched.o: des.h des_internal.h
-key_sched.o: mit-cpyright.h
-key_sched.o: des_conf.h ./key_perm.h ./odd.h
-key_test.o: key_test.c
-key_test.o: des.h
-key_test.o: mit-cpyright.h
-key_test.o: des_conf.h
-testit.o: testit.c
-testit.o: des.h
-testit.o: mit-cpyright.h
-testit.o: des_conf.h
-des.o: des.c des_internal.h
-des.o: des.h
-des.o: mit-cpyright.h
-des.o: des_conf.h ./s_table.h ./p_table.h ./ip.c
-des.o: ./p.c ./fp.c
-cbc_encrypt.o: cbc_encrypt.c
-cbc_encrypt.o: des.h
-cbc_encrypt.o: mit-cpyright.h
-cbc_encrypt.o: des_conf.h
-verify.o: verify.c
-verify.o: des.h
-verify.o: mit-cpyright.h
-verify.o: des_conf.h
-read_pssword.o: read_pssword.c
-read_pssword.o: des.h
-read_pssword.o: mit-cpyright.h
-read_pssword.o: des_conf.h
-pcbc_encrypt.o: pcbc_encrypt.c
-pcbc_encrypt.o: des.h des_internal.h
-pcbc_encrypt.o: mit-cpyright.h
-pcbc_encrypt.o: des_conf.h
-cksum.o: des.h
-cksum.o: mit-cpyright.h
-cksum.o: des_conf.h
-quad_cksum.o: quad_cksum.c
-quad_cksum.o: des.h
-quad_cksum.o: mit-cpyright.h
-quad_cksum.o: des_conf.h
-#random_key.o: random_key.c
-#random_key.o: des.h
-#random_key.o: mit-cpyright.h
-#random_key.o: des_conf.h
-key_parity.o: key_parity.c des.h odd.h
-weak_key.o: weak_key.c des.h des_internal.h
-new_rnd_key.o: des.h des_internal.h
-util.o: util.c
-util.o: des.h
-util.o: mit-cpyright.h
-util.o: des_conf.h
-strng_to_key.o: strng_to_key.c
-strng_to_key.o: des.h
-strng_to_key.o: mit-cpyright.h
-strng_to_key.o: des_conf.h ./odd.h
-debug_decl.o: debug_decl.c
-make_e.o: make_e.c
-make_keyperm.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_keyperm.c
-make_ip.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_ip.c
-make_fp.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_fp.c
-make_p.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_p.c
-make_s.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_s.c
-make_s_table.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_s_table.c
-make_p_table.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_p_table.c
-make_odd.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_odd.c
-misc.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/misc.c
-misco.c: misc.c
- -ln -s misc.c misco.c
-misco.o: misco.c
- ${CC} -I${SRC} ${F_CPP} ${F_CC} -o misco.o misco.c -DDONT_INCL_MAIN
-key_sched.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/key_sched.c
-key_test.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/key_test.c
-testit.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/testit.c
-crypt.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/crypt.c
-des.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/des.c
-cbc_encrypt.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/cbc_encrypt.c
-verify.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/verify.c
-read_pssword.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/read_pssword.c
-pcbc_encrypt.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/pcbc_encrypt.c
-cksum.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/cksum.c
-quad_cksum.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/quad_cksum.c
-#random_key.o:
-# ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/random_key.c
-key_parity.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/key_parity.c
-weak_key.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/weak_key.c
-new_rnd_key.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/new_rnd_key.c
-util.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/util.c
-strng_to_key.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/strng_to_key.c
-debug_decl.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/debug_decl.c
-make_e.o:
- ${CC} -I${SRC} ${F_CPP} ${F_CC} ${SRC}/make_e.c
-# DEPENDENCIES MUST END AT END OF FILE
-# IF YOU PUT STUFF HERE IT WILL GO AWAY (see make depend above)
+++ /dev/null
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-CC = cc
-# Test programs
-PROGS = \
- key_test \
- testit \
- verify
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -ldes
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-all system test: $(PROGS)
-
-clean:
- rm -f *.o *.a testit verify key_test core
-
-kinstall:
- @echo No kernel source here.
-
-testit: testit.o
- ${CC} ${CFLAGS} testit.o -o testit
-verify: verify.o libdes.a
- ${CC} ${CFLAGS} verify.o -o verify
-key_test: key_test.o libdes.a
- ${CC} ${CFLAGS} key_test.o -o key_test
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Install the des libraries and header files from the
-# PARENT link instead of building them.
-#
-
-SHELL = /bin/sh
-include ../config/Makefile.${SYS_NAME}
-
-RM = /bin/rm
-UKERNELDIR=../libuafs/
-SRC =.
-DESPAR =../../../DESLIB/dest/
-DESINC =${DESPAR}include/
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-all:
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall: ${DESINC}des.h ${DESINC}mit-cpyright.h
- set ${UKERNELDIR}des; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${DESINC}des.h ${UKERNELDIR}des/des.h
- ${INSTALL} ${DESINC}mit-cpyright.h ${UKERNELDIR}des/mit-cpyright.h
- ${INSTALL} ${DESPAR}lib/libdes.a ${UKERNELDIR}des/libdes.a
-
-install install.noversion noversion system: ukinstall
- echo "Installing des stubs from ${DESPAR}:" `cd ${DESPAR};/bin/pwd`
- ${RM} -f ${DESTDIR}lib/libdes.a
- ${INSTALL} ${DESPAR}lib/libdes.a ${DESTDIR}lib/libdes.a
- ${INSTALL} ${DESINC}des.h ${DESINC}des_conf.h ${DESINC}mit-cpyright.h ${DESTDIR}include
- ${INSTALL} ${DESINC}des_odd.h ${DESTDIR}include/des_odd.h
-
-clean:
-
-lint:
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=dir
-include ../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include ${XINCLS}
-CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS}
-
-OBJS=buffer.o dir.o salvage.o
-include ../config/Makefile.version
-
-system noversion: install
-
-cmdall: all test
-
-all: libdir.a
-
-libdir.a: ${OBJS} AFS_component_version_number.o
- rm -f libdir.a
- ar rv libdir.a $(OBJS) AFS_component_version_number.o
- $(RANLIB) libdir.a
-
-kinstall:
- ${INSTALL} dir.h ${KERNELDIR}afs
- ${INSTALL} dir.c ${KERNELDIR}afs/afs_dir.c
-
-ukinstall webinstall:
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} dir.h ${UKERNELDIR}afs
- ${INSTALL} dir.c ${UKERNELDIR}afs/afs_dir.c
-
-install: all kinstall ukinstall
- ${INSTALL} libdir.a ${DESTDIR}lib/afs
- ${INSTALL} dir.h ${DESTDIR}include/afs
-
-test:
- (cd test; $(MAKE) )
-
-buffer.o: buffer.c
-
-dir.o: dir.c dir.h
-
-salvage.o: salvage.c dir.h
-
-#doc:
-# ${INSTALL} -m 644 dir.vdoc ${DESTDIR}doc/vdoc
-
-clean:
- rm -f *.o *.a core AFS_component_version_number.c
-
-beancount:
- wc -l *.c *.h
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=dtest
-include ../../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-INSTALL = ${SRCDIR}bin/install
-
-INCDIRS= -I${DESTDIR}include ${XINCLS}
-LIBS = ${SRCDIR}lib/afs/libdir.a ${SRCDIR}lib/afs/util.a
-CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS}
-
-OBJS=test-salvage.o physio.o dtest.o
-
-install: dtest
-
-clean:
- rm -f *.o *.a test dtest core
-
-dtest: dtest.o
- $(CC) $(LDFLAGS) -o dtest dtest.o $(LIBS)
-
-dtest.o: dtest.c
- $(CC) $(CFLAGS) -c dtest.c
-
-#test-salvage: test-salvage.o physio.o
-# $(CC) $(LDFLAGS) -o test-salvage test-salvage.o physio.o $(LIBS)
-#
-#test-salvage.o: test-salvage.c physio.c
-# $(CC) $(CFLAGS) -c test-salvage.c
-#
-#physio.o: physio.c
-# $(CC) $(CFLAGS) -c physio.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# $Locker: $
-#
-# Makefile for EXPORT kernel extension, and friends
-#
-
-COMPONENT=export
-include ../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
- DEFS =
- INCS = -I${TOP_SRCDIR}/config -I${SRCDIR}include
- CFLAGS = ${OPTMZ} ${DEFS} ${INCS}
- EXPORTS = -bexport:export.exp
- IMPORTS = /lib/kernex.exp /lib/syscalls.exp extras.exp
- KOBJ = export.o symtab.o
-
-include ../config/Makefile.version
-
-all: export.ext export.ext.nonfs cfgexport cfgafs
-
-noversion system: install
-
-install: all kinstall ukinstall
- ${INSTALL} export.ext ${DESTDIR}root.client/usr/vice/etc/dkload
- ${INSTALL} export.ext.nonfs ${DESTDIR}root.client/usr/vice/etc/dkload
- ${INSTALL} export.exp ${DESTDIR}lib/afs/export.exp
- ${INSTALL} extras.exp ${DESTDIR}lib/afs/extras.exp
- ${INSTALL} cfgexport ${DESTDIR}root.client/usr/vice/etc/dkload/cfgexport
- ${INSTALL} cfgafs ${DESTDIR}root.client/usr/vice/etc/dkload/cfgafs
-
-kinstall:
- ${INSTALL} export.h ${DESTDIR}include
- ${INSTALL} export.h ../libafs
- ${INSTALL} export.exp ${DESTDIR}lib
- ${INSTALL} export.exp ../libafs
-
-ukinstall webinstall:
- ${INSTALL} export.h ${UKERNELDIR}
- ${INSTALL} export.exp ${UKERNELDIR}
-
-export.ext: ${KOBJ}
- ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys
-
-export.ext.nonfs: export.nonfs.o symtab.o
- ${LD} -o export.ext.nonfs -eexport ${IMPORTS} export.nonfs.o symtab.o ${EXPORTS} -lcsys
-
-export.nonfs.o:
- ${CC} ${INCS} -DAFS_NONFSTRANS -c export.c
- -mv export.o export.nonfs.o
-
-cfgexport: cfgexport.o
- ${CC} ${INCS} -O -o cfgexport cfgexport.o
-
-cfgafs: cfgafs.o
- ${CC} ${INCS} -O -o cfgafs cfgafs.o
-
-cfgexport.o: cfgexport.c AFS_component_version_number.c
-cfgafs.o: cfgafs.c AFS_component_version_number.c
-
-clean:
- rm -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-
-SHELL = /bin/sh
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS = -g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = -g ${XLDFLAGS}
-INCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/rx/rxkad.h \
- ${SRCDIR}include/afs/com_err.h \
- ${SRCDIR}include/afs/auth.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/cmd.h \
- ${SRCDIR}include/afs/pterror.h \
- ${SRCDIR}include/afs/kautils.h \
- ${SRCDIR}include/afs/bnode.h \
- ${SRCDIR}include/afs/vlserver.h
-
-rxkadlib=${SRCDIR}lib/librxkad.a
-authlib=${SRCDIR}lib/afs/libauth.a
-cmdlib=${SRCDIR}lib/afs/libcmd.a
-vllib=${SRCDIR}lib/afs/libvldb.a
-boslib=${SRCDIR}lib/afs/libbos.a
-volserlib=${SRCDIR}lib/afs/libvolser.a
-utilib=${SRCDIR}lib/afs/util.a
-
-LIBS=${SRCDIR}lib/libubik.a ${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a ${authlib} ${SRCDIR}lib/afs/libsys.a ${deslib} ${rxkadlib} ${cmdlib} ${vllib} ${boslib} ${SRCDIR}lib/afs/libcom_err.a ${volserlib} ${utilib} ${SRCDIR}lib/afs/libkauth.a ${SRCDIR}lib/afs/libprot.a ${SRCDIR}lib/libdes.a ${XLIBS}
-
-COMPONENT=finale
-include ../config/Makefile.version
-
-all: translate_et
-
-clean:
- rm -f *.o translate_et core AFS_component_version_number.c
-
-translate_et: translate_et.o ${INCLS}
- ${CC} ${LDFLAGS} -o translate_et translate_et.o ${LIBS}
-
-translate_et.o: AFS_component_version_number.c
-
-test: translate_et
- echo -n > /tmp/translate_et.output
- -./translate_et >> /tmp/translate_et.output 2>&1
- ./translate_et 55 >> /tmp/translate_et.output
- ./translate_et 110 >> /tmp/translate_et.output
- ./translate_et 255 >> /tmp/translate_et.output
- ./translate_et 256 >> /tmp/translate_et.output
- ./translate_et -1 -451 >> /tmp/translate_et.output
- ./translate_et 1613147 >> /tmp/translate_et.output
- ./translate_et 19270407 >> /tmp/translate_et.output
- ./translate_et 180511 >> /tmp/translate_et.output
- diff test.output /tmp/translate_et.output
- rm /tmp/translate_et.output
-
-system: install
-
-noversion install.noversion install: all
- ${INSTALL} translate_et ${DESTDIR}bin/translate_et
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-COMPONENT=fsint
-include ../config/Makefile.${SYS_NAME}
-SHELL = /bin/sh
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-OBJS=afsaux.o afscbint.cs.o afscbint.ss.o afscbint.xdr.o afsint.cs.o afsint.ss.o afsint.xdr.o
-CFLAGS=${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-KDSRCS=Kcallback.ss.c Kcallback.h Kvice.cs.c Kvice.h Kvice.xdr.c afscbint.h \
-afsint.h
-KSRCS=${KDSRCS} afsaux.c
-UKSRCS=${KSRCS}
-UTILS=$(SRCDIR)/bin/rxgen
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: libafsint.a $(KSRCS)
-
-libafsint.a: ${OBJS} AFS_component_version_number.o
- -rm -f $@
- $(AR) rv $@ ${OBJS} AFS_component_version_number.o
- $(RANLIB) $@
-
-afsaux.o: afsaux.c afsint.h
-
-Kcallback.cs.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -C -o Kcallback.cs.c afscbint.xg
-
-Kcallback.ss.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -S -o Kcallback.ss.c afscbint.xg
-
-Kcallback.xdr.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -y -c -o Kcallback.xdr.c afscbint.xg
-
-Kvice.cs.c: common.xg afsint.xg Kvice.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -C -o Kvice.cs.c afsint.xg
-
-Kvice.ss.c: common.xg afsint.xg Kvice.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -S -o Kvice.ss.c afsint.xg
-
-Kvice.xdr.c: common.xg afsint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -c -o Kvice.xdr.c afsint.xg
-
-Kvice.h: common.xg afsint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -h -o Kvice.h afsint.xg
-
-Kcallback.h: common.xg afscbint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -k -h -o Kcallback.h afscbint.xg
-
-afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -C -o afscbint.cs.c afscbint.xg
-
-afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -S -o afscbint.ss.c afscbint.xg
-
-afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -y -c -o afscbint.xdr.c afscbint.xg
-
-afsint.cs.c: common.xg afsint.xg afsint.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -C -o afsint.cs.c afsint.xg
-
-afsint.ss.c: common.xg afsint.xg afsint.h $(UTILS)
- ${SRCDIR}bin/rxgen -x -S -o afsint.ss.c afsint.xg
-
-afsint.xdr.c: common.xg afsint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -c -o afsint.xdr.c afsint.xg
-
-afsint.h: common.xg afsint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -h -o afsint.h afsint.xg
-
-afscbint.h: common.xg afscbint.xg $(UTILS)
- ${SRCDIR}bin/rxgen -x -h -o afscbint.h afscbint.xg
-
-system: install
-
-kinstall: ${KSRCS}
- set ${KERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} $(KSRCS) ${KERNELDIR}afsint
- ${INSTALL} $(SRCDIR)include/afs/rxgen_consts.h ${KERNELDIR}afsint
- -${INSTALL} ${KERNELDIR}rx/rx.h ${KERNELDIR}afsint/rx.h
- ${INSTALL} afscbint.h ${KERNELDIR}afs
-
-ukinstall webinstall: ${UKSRCS}
- set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} $(UKSRCS) ${UKERNELDIR}afsint
- ${INSTALL} $(SRCDIR)include/afs/rxgen_consts.h ${UKERNELDIR}afsint
- -${INSTALL} ${UKERNELDIR}rx/rx.h ${UKERNELDIR}afsint/rx.h
- ${INSTALL} afscbint.h ${UKERNELDIR}afs
-
-install: all kinstall ukinstall
- ${INSTALL} libafsint.a ${DESTDIR}lib/afs
- ${INSTALL} afsint.h ${DESTDIR}include/afs
- ${INSTALL} afscbint.h ${DESTDIR}include/afs
-
-clean:
- rm -f *.o *.cs.c *.ss.c *.er.c afsint.h afsint.xdr.c libafsint.a $(KDSRCS) core AFS_component_version_number.c afscbint.xdr.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for fsprobe and its test program, all part of the AFS
-# navigation and monitoring tool (gator).
-#
-SHELL = /bin/sh
-COMPONENT=fsprobe
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS=-g -I. \
- -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include \
- -I${SRCDIR}include/afs \
- -I${SRCDIR} \
- -I/usr/include ${XCFLAGS}
-
-RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h
-
-INCLS=fsprobe.h ${RPCINCLS}
-
-LIBS= ${SRCDIR}lib/afs/libvolser.a ${SRCDIR}lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
- ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/librxkad.a ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libaudit.a \
- ${SRCDIR}lib/afs/libafsint.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/util.a
-
-OBJS=fsprobe.o \
- fsprobe_callback.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: libfsprobe.a fsprobe_test
-
-libfsprobe.a: ${OBJS} AFS_component_version_number.o
- -rm -f libfsprobe.a
- ${AR} rv libfsprobe.a ${OBJS} AFS_component_version_number.o
- ${RANLIB} libfsprobe.a
-
-fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
-
-fsprobe_callback.o: fsprobe_callback.c ${INCLS}
-
-fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
- ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
- ${LIBS} ${XLIBS}
-
-#
-# Misc others
-#
-system: install
-
-install: all
- ${INSTALL} fsprobe.h ${DESTDIR}include/afs
- ${INSTALL} libfsprobe.a ${DESTDIR}lib/afs
-
-clean:
- rm -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c
+++ /dev/null
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley. The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.8 (Berkeley) 9/22/88
-
-
-COMPONENT=ftpd43+
-include ../config/Makefile.version
-include ../config/Makefile.${SYS_NAME}
-
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a \
- ${LIBDIR}afs/libaudit.a
-
-LIBS = ${AFSLIBS}
-CFLAGS= ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
-LIBC= /lib/libc.a
-SRCS= ftpd.c ftpcmd.c getusershell.c glob.c logwtmp.c popen.c vers.c
-OBJS= ftpd.o ftpcmd.o getusershell.o glob.o logwtmp.o popen.o vers.o
-MAN= ftpd.8
-
-
-noversion: install
-
-all: ftpd
-
-system: install
-
-ftpd: ${OBJS} ${LIBS}
- case ${SYS_NAME} in \
- sun4c_53 | sun4m_53 | sun4_53 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5? | sunx86_54) \
- ${CC} -o $@ ${OBJS} ${LIBS} ${XLIBS} -lsocket -lnsl -lauth -ldl ;; \
- rs_aix*) \
- ${CC} -o $@ ${OBJS} ${LIBS} ${XLIBS} -ls ;; \
- * ) ${CC} -o $@ ${OBJS} ${LIBS} ${XLIBS} ;; \
- esac
-
-ftpd.o: ftpd.c AFS_component_version_number.c
-
-vers.o: ftpd.c ftpcmd.y
-# sh newvers.sh
- ${CC} ${CFLAGS} -c vers.c
-
-clean:
- rm -f ${OBJS} ftpd core ftpcmd.c AFS_component_version_number.c
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN} all
- ${INSTALL} -s -m 755 ftpd ${DESTDIR}/etc/ftpd
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for gtx, a display-independent, object-oriented window toolkit.
-
-
-SHELL=/bin/sh
-COMPONENT=gtx
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET=$(SRCDIR)bin/compile_et
-CFLAGS= ${DBUG} -I. -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include -I${SRCDIR}include/afs ${XCFLAGS}
-LDFLAGS = ${XLDFLAGS}
-#RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h bosint.h
-RPCINCLS=
-INCLS=gtxobjects.h \
- gtxwindows.h \
- gtxcurseswin.h \
- gtxinput.h \
- gtxdumbwin.h \
- gtxX11win.h \
- gtxobjects.h \
- gtxkeymap.h \
- gtxlightobj.h \
- gtxtextobj.h \
- gtxframe.h \
- gtxobjdict.h \
- ${RPCINCLS} \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/cmd.h
-
-LIBS= \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/util.a
-
-EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a ${XLIBS}
-
-LINT_LIBS = /usr/lib/lint/llib-lcurses.ln
-
-KEYMAP_SRCS=keymap.c input.c frame.c
-
-KEYMAP_OBJS=keymap.o input.o frame.o
-
-WINDOW_SRCS=curseswindows.c \
- dumbwindows.c \
- X11windows.c \
- windows.c
-
-WINDOW_OBJS=curseswindows.o \
- dumbwindows.o \
- X11windows.o \
- windows.o
-
-OBJECT_SRCS=objects.c \
- lightobject.c \
- textobject.c
-
-OBJECT_OBJS=objects.o \
- lightobject.o \
- textobject.o
-
-DICT_SRCS=objdict.c
-DICT_OBJS=objdict.o
-
-CB_SRCS=textcb.c
-CB_OBJS=textcb.o
-
-#ERROBJS=err.o
-ERRSRCS=
-ERROJBS=
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: libgtx.a gtxtest
-
-tests: object_test screen_test curses_test cb_test gtxtest
-
-# All objects in the library
-LIBSRCS = ${KEYMAP_SRCS} ${WINDOW_SRCS} ${OBJECT_SRCS} ${DICT_SRCS} \
- ${ERRSRCS} ${CB_SRCS}
-LIBOBJS = $(KEYMAP_OBJS) ${WINDOW_OBJS} ${OBJECT_OBJS} ${DICT_OBJS} \
- ${ERROBJS} ${CB_OBJS}
-
-${LIBSRCS}: ${INCLS}
-$(LIBOBJS): ${INCLS}
-
-err.c: err.et
- rm -f err.h err.c; $(COMPILE_ET) err -h err
-
-keymap.o: keymap.c ${INCLS}
-
-frame.o: frame.c $(INCLS)
-
-input.o: input.c ${INCLS}
-
-curseswindows.o: curseswindows.c ${INCLS}
-
-dumbwindows.o: dumbwindows.c ${INCLS}
-
-X11windows.o: X11windows.c ${INCLS}
-
-windows.o: windows.c ${INCLS}
-
-lightobject.o: lightobject.c ${INCLS}
-
-textobject.o: textobject.c ${INCLS}
-
-textcb.o: textcb.c ${INCLS}
-
-#
-# Test programs.
-#
-curses_test.o: curses_test.c ${INCLS} AFS_component_version_number.o
-
-curses_test: curses_test.o $(LIBS)
- ${CC} ${CFLAGS} -o curses_test curses_test.o $(LIBS) ${EXTRA_LIBS}
-
-curses_test.lint: curses_test.c $(LINT_LIBS)
- lint ${CFLAGS} curses_test.c ${LINT_LIBS}
-
-screen_test.o: screen_test.c ${INCLS} AFS_component_version_number.o
-
-screen_test: screen_test.o ${WINDOW_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o screen_test screen_test.o ${WINDOW_OBJS} ${LIBS} ${EXTRA_LIBS}
-
-screen_test.lint: screen_test.o ${WINDOW_SRCS} ${LINT_LIBS}
- lint ${CFLAGS} screen_test.c ${WINDOW_SRCS} ${LINT_LIBS}
-
-cb_test.o: cb_test.c ${INCLS} AFS_component_version_number.o
-
-cb_test: cb_test.o ${CB_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o cb_test cb_test.o ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
-
-cb_test.lint: cb_test.c ${CB_SRCS} ${LINT_LIBS}
- lint ${CFLAGS} cb_test.c ${CB_SRCS} ${LINT_LIBS}
-
-gtxtest.o: gtxtest.c ${INCLS} AFS_component_version_number.o
-
-gtxtest: gtxtest.o libgtx.a ${LIBS}
- ${CC} ${LDFLAGS} -o gtxtest gtxtest.o libgtx.a ${LIBS} ${EXTRA_LIBS}
-
-gtxtest.lint: gtxtest.c llib-lgtx.ln ${LINT_LIBS}
- lint $(CFLAGS) gtxtest.c llib-lgtx.ln ${LINT_LIBS}
-
-object_test.o: object_test.c ${INCLS} AFS_component_version_number.o
-
-object_test: object_test.o ${WINDOW_OBJS} ${DICT_OBJS} ${OBJECT_OBJS} ${CB_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o object_test object_test.o ${WINDOW_OBJS} ${DICT_OBJS} ${OBJECT_OBJS} ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
-
-object_test.lint: object_test.c ${WINDOW_SRCS} ${DICT_SRCS} ${OBJECT_SRCS} ${CB_SRCS} ${LINT_LIBS}
- lint ${CFLAGS} object_test.c ${WINDOW_SRCS} ${DICT_SRCS} ${OBJECT_SRCS} ${CB_SRCS} ${LINT_LIBS}
-
-#
-# Misc others
-#
-system: install
-
-libgtx.a: ${LIBOBJS} AFS_component_version_number.o
- -rm -f $@
- ar rv $@ ${LIBOBJS} AFS_component_version_number.o
- ${RANLIB} $@
-
-llib-lgtx.ln: ${LIBSRCS}
- lint -Cgtx ${CFLAGS} ${LIBSRCS}
-
-lint: llib-lgtx.ln \
- curses_test.lint \
- screen_test.lint \
- cb_test.lint \
- gtxtest.lint \
- object_test.lint
-
-install: all
- ${INSTALL} gtx*.h ${DESTDIR}include/afs
- ${INSTALL} libgtx.a ${DESTDIR}lib/afs
-
-clean:
- rm -f *.o *.a *.ln object_test screen_test curses_test err.c core cb_test gtxtest AFS_component_version_number.c
+++ /dev/null
-SHELL=/bin/sh
-COMPONENT=inetd
-include ../config/Makefile.${SYS_NAME}
-
-INCLUDES = -I${TOP_SRCDIR}/config -I${DESTDIR}include
-DEFINES = ${INCLUDES}
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a\
- ${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
- ${LIBDIR}librx.a \
- ${LIBDIR}afs/libsys.a \
- ${LIBDIR}liblwp.a ${DESTDIR}lib/librxkad.a\
- ${DESTDIR}lib/libdes.a ${LIBDIR}afs/libcmd.a \
- ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-LIBRES =
-LIBS = ${AFSLIBS} ${LIBRES} ${XLIBS}
-OBJS = inetd.o setenv.o getenv.o
-CFLAGS = ${DEFINES} ${DBUG} ${XCFLAGS}
-
-include ../config/Makefile.version
-
-noversion: install
-
-# ta-rauth.o is used by rlogin, rsh, rcp, rlogind
-all : inetd ta-rauth.o
-
-system: install
-
-inetd: ${OBJS}
- set -x; \
- case "${SYS_NAME}" in \
- alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_dux?? ) \
- ${CC} -o $@ ${DEFINES} ${OBJS} ${LIBS} -lutil ;; \
- sgi_6* ) \
- ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ;; \
- *) \
- ${CC} -o $@ ${DEFINES} ${OBJS} ${LIBS} ;; \
- esac
-
-inetd.o: inetd.c AFS_component_version_number.c
-ta-rauth.o: ta-rauth.c
-
-clean:
- rm -f inetd *.o *.BAK *~ core AFS_component_version_number.c
-
-install: all
- ${INSTALL} -s -m 755 inetd ${DESTDIR}etc/inetd
- set -x; \
- case "${SYS_NAME}" in \
- sun4* ) \
- ${INSTALL} -m 644 -f inetd.conf.solaris ${DESTDIR}etc/inetd.conf ;; \
- sgi_* ) \
- ${INSTALL} -m 644 -f inetd.conf.sgi ${DESTDIR}etc/inetd.conf ;; \
- alpha_dux?? ) \
- ${INSTALL} -m 644 -f inetd.conf.dux40 ${DESTDIR}etc/inetd.conf ;; \
- * ) \
- ${INSTALL} -m 644 inetd.conf ${DESTDIR}etc/inetd.conf ;; \
- esac
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-
-SHELL = /bin/sh
-COMPONENT=kauth
-include ../config/Makefile.${SYS_NAME}
-
-UKERNELDIR = ../libuafs/
-COMPILE_ET = ${SRCDIR}bin/compile_et
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = ${OPTMZ} ${XLDFLAGS}
-INCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/rx/rxkad.h \
- ${SRCDIR}include/afs/com_err.h \
- kaserver.h kauth.h kautils.h
-deslib=${SRCDIR}lib/libdes.a
-rxkadlib=${SRCDIR}lib/librxkad.a
-authlib=${SRCDIR}lib/afs/libauth.a
-cmdlib=${SRCDIR}lib/afs/libcmd.a
-utilib=${SRCDIR}lib/afs/util.a
-auditlib=${SRCDIR}lib/afs/libaudit.a
-
-LIBS = ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libprot.a \
- ${authlib} \
- ${rxkadlib} \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a \
- ${deslib} \
- ${cmdlib} \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${utilib} \
- $(DBM)
-
-UKSRCS=authclient.c user.c kautils.h kaserver.h kaaux.c token.c \
- kalocalcell.c client.c kaerrors.c
-
-KLIBS = ${SRCDIR}lib/libubik.a ${SRCDIR}lib/afs/libprot.a \
- ${SRCDIR}lib/afs/libauth.krb.a ${rxkadlib} ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a ${deslib} ${cmdlib} \
- ${SRCDIR}lib/afs/libcom_err.a ${utilib}
-
-OBJS=kauth.xdr.o kauth.cs.o kaaux.o client.o authclient.o token.o kautils.o kalocalcell.o kaerrors.o user.o krb_tf.o
-KOBJS=kauth.xdr.o kauth.cs.o kaaux.o client.o authclient.o token.o kautils.o kalocalcell.o kaerrors.o user.krb.o krb_tf.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: knfs kaserver kas klog klog.krb kpasswd klogin klogin.krb rebuild kdb kpwvalid
-
-test tests: install
- cd test; $(MAKE)
-
-clean:
- rm -f *.o kaserver kas klog multiklog kpasswd klogin rebuild kauth.cs.c kauth.ss.c kauth.xdr.c kauth.h kautils.h kaerrors.c *.a core kpwvalid AFS_component_version_number.c klog.krb knfs klogin.krb kdb Kkauth.xdr.c Kkauth.h Kkauth.cs.c
-
-kaserver: kautils.o kalocalcell.o kadatabase.o kaprocs.o kalog.o kauth.ss.o kauth.xdr.o kaserver.o kaaux.o krb_udp.o kaauxdb.o $(LIBS) ${auditlib}
- ${CC} ${LDFLAGS} -o kaserver kaserver.o kautils.o kalocalcell.o kadatabase.o krb_udp.o kaprocs.o kalog.o kauth.ss.o kauth.xdr.o kaaux.o kaauxdb.o $(LIBS) ${XLIBS} ${auditlib}
-
-kaserver.o: kaserver.c ${INCLS} AFS_component_version_number.o
-
-kautils.o: kautils.c ${INCLS}
-
-kalocalcell.o: kalocalcell.c ${INCLS}
-
-kadatabase.o: kadatabase.c ${INCLS}
- ${CC} ${CFLAGS} -c kadatabase.c
-
-kaprocs.o: kaprocs.c ${INCLS} kaport.h
- ${CC} ${CFLAGS} -c kaprocs.c
-
-authclient.o: authclient.c ${INCLS}
-
-
-#authserver.o: authserver.c ${INCLS}
-
-kaerrors.o: kaerrors.c
-
-kaerrors.c kautils.h: kaerrors.et kautils.p.h
- rm -f kautils.h kaerrors.c; ${COMPILE_ET} kaerrors -h kautils
-
-kauth.ss.o: kauth.ss.c
-kauth.cs.o: kauth.cs.c
-kauth.xdr.o: kauth.xdr.c kauth.h
-
-kauth.ss.c kauth.cs.c kauth.xdr.c kauth.h: kauth.rg
- ${SRCDIR}bin/rxgen -x kauth.rg
-
-Kkauth.cs.c: kauth.rg Kkauth.h
- ${SRCDIR}bin/rxgen -x -k -C -o Kkauth.cs.c kauth.rg
-
-Kkauth.xdr.c: kauth.rg
- ${SRCDIR}bin/rxgen -x -k -c -o Kkauth.xdr.c kauth.rg
-
-Kkauth.h: kauth.rg
- ${SRCDIR}bin/rxgen -x -k -h -o Kkauth.h kauth.rg
-
-libkauth.a: $(OBJS) AFS_component_version_number.o
- -rm -f libkauth.a
- ar rv libkauth.a $(OBJS) AFS_component_version_number.o
- $(RANLIB) libkauth.a
-
-
-libkauth.krb.a: $(KOBJS) AFS_component_version_number.o
- -rm -f libkauth.krb.a
- ar rv libkauth.krb.a $(KOBJS) AFS_component_version_number.o
- $(RANLIB) libkauth.krb.a
-
-
-read_passwd.o: read_passwd.c
- echo These changes to read_password.c need to be mailed to the Kerberos people; ${CC} ${CFLAGS} -c read_passwd.c
-
-token.o: token.c ${INCLS}
-
-client.o: client.c ${INCLS} AFS_component_version_number.o
-
-kas.o: kas.c ${INCLS} AFS_component_version_number.o
-
-admin_tools.o: admin_tools.c ${INCLS} kaport.h
-
-kkids.o: kkids.c ${INCLS}
-
-krb_tf.o: krb_tf.c ${INCLS}
-
-kas: kauth.h kautils.h admin_tools.o libkauth.a $(LIBS) kas.o kkids.o
- ${CC} ${LDFLAGS} -o kas kas.o admin_tools.o kkids.o libkauth.a \
- ${LIBS} ${XLIBS}
-
-klog: AFS_component_version_number.o kauth.h kautils.h libkauth.a $(LIBS) \
- klog.o
- ${CC} ${LDFLAGS} -o klog klog.o libkauth.a ${LIBS} ${XLIBS}
-
-klog.o: klog.c kauth.h kautils.h AFS_component_version_number.o
-
-klog.krb: kauth.h kautils.h libkauth.krb.a $(KLIBS) klog.o
- ${CC} ${LDFLAGS} -o klog.krb klog.o libkauth.krb.a ${KLIBS} ${XLIBS}
-
-knfs: kauth.h kautils.h libkauth.a $(LIBS) knfs.o
- ${CC} ${LDFLAGS} -o knfs knfs.o libkauth.a ${LIBS} ${XLIBS}
-knfs.o: knfs.c AFS_component_version_number.o
-
-klogin.o: klogin.c ${INCLS} AFS_component_version_number.o
- ${CC} ${CFLAGS} -c klogin.c -DKAUTH
-
-klogin: libkauth.a $(LIBS) klogin.o
- ${CC} ${LDFLAGS} -o klogin klogin.o libkauth.a ${LIBS} ${XLIBS}
-
-klogin.krb: libkauth.a $(KLIBS) klogin.o
- ${CC} ${LDFLAGS} -o klogin.krb klogin.o libkauth.krb.a ${KLIBS} ${XLIBS}
-
-kpasswd.o: kauth.h kautils.h ${INCLS} kpasswd.c AFS_component_version_number.o
- ${CC} ${CFLAGS} -c kpasswd.c
-
-kpasswd: kauth.h kautils.h libkauth.a $(LIBS) kpasswd.o kkids.o
- ${CC} ${LDFLAGS} -o kpasswd kpasswd.o kkids.o libkauth.a \
- ${LIBS} ${XLIBS}
-
-kpwvalid.o: kpwvalid.c AFS_component_version_number.o
- ${CC} ${CFLAGS} -c kpwvalid.c
-
-kpwvalid: kpwvalid.o $(LIBS)
- ${CC} ${LDFLAGS} -o kpwvalid kpwvalid.o ${LIBS} ${XLIBS}
-
-user.krb.o: user.c ${INCLS} ${SRCDIR}include/afs/vice.h
- ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c user.c -o user.krb.o
-
-user.o: user.c ${INCLS} ${SRCDIR}include/afs/vice.h
- ${CC} ${CFLAGS} -c user.c
-
-kdb: kdb.o ${INCLS}
- ${CC} ${LDFLAGS} -o kdb kdb.o libkauth.a ${LIBS} ${XLIBS}
-kdb.o: kdb.c AFS_component_version_number.o
-
-krb_udp.o: krb_udp.c kaserver.h kautils.h kauth.h prot.h \
- ${SRCDIR}include/lwp.h AFS_component_version_number.o
-
-krb_udp: krb_udp.o libkauth.a
- ${CC} ${LDFLAGS} -o krb_udp krb_udp.o libkauth.a ${SRCDIR}lib/liblwp.a ${deslib} ${rxkadlib} ${SRCDIR}lib/afs/libcom_err.a ${utilib} ${auditlib}
-
-rebuild.o: rebuild.c $(INCLS) AFS_component_version_number.o
-
-rebuild: rebuild.o kautils.o ${SRCDIR}lib/afs/libcom_err.a ${utilib} $(deslib)
- ${CC} ${LDFLAGS} -o rebuild rebuild.o kautils.o \
- ${SRCDIR}lib/afs/libcom_err.a ${utilib} $(deslib) ${XLIBS} ${cmdlib}
- ${INSTALL} -f rebuild ${DESTDIR}etc/kadb_check
-
-system: install
-
-${DESTDIR}root.server/usr/afs/bin/kaserver: kaserver
- ${INSTALL} -s $? $@
-
-${DESTDIR}etc/kas ${DESTDIR}root.server/usr/afs/bin/kas: kas
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/kpwvalid ${DESTDIR}etc/kpwvalid \
-${DESTDIR}root.server/usr/afs/bin/kpwvalid: kpwvalid
- ${INSTALL} $? $@
-
-${DESTDIR}bin/klog ${DESTDIR}root.server/usr/afs/bin/klog: klog
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/klog.krb ${DESTDIR}root.server/usr/afs/bin/klog.krb: klog.krb
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/knfs: knfs
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/kpasswd: kpasswd
- ${INSTALL} -s $? $@
-
-${DESTDIR}lib/afs/libkauth.a: libkauth.a
- ${INSTALL} $? $@
-
-${DESTDIR}lib/afs/libkauth.krb.a: libkauth.krb.a
- ${INSTALL} $? $@
-
-${DESTDIR}etc/kdb: kdb
- ${INSTALL} -s $? $@
-
-ukinstall webinstall: ${UKSRCS} Kkauth.h Kkauth.xdr.c Kkauth.cs.c kauth.h
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} Kkauth.h ${UKERNELDIR}afsint/kauth.h
- ${INSTALL} Kkauth.xdr.c ${UKERNELDIR}afsint/kauth.xdr.c
- ${INSTALL} Kkauth.cs.c ${UKERNELDIR}afsint/kauth.cs.c
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-
-install: all ukinstall ${DESTDIR}root.server/usr/afs/bin/kaserver \
- ${DESTDIR}etc/kas ${DESTDIR}etc/kpwvalid \
- ${DESTDIR}root.server/usr/afs/bin/kas \
- ${DESTDIR}root.server/usr/afs/bin/kpwvalid \
- ${DESTDIR}bin/klog ${DESTDIR}bin/klog.krb \
- ${DESTDIR}root.server/usr/afs/bin/klog \
- ${DESTDIR}root.server/usr/afs/bin/klog.krb \
- ${DESTDIR}bin/knfs ${DESTDIR}bin/kpasswd \
- ${DESTDIR}bin/kpwvalid ${DESTDIR}lib/afs/libkauth.a \
- ${DESTDIR}lib/afs/libkauth.krb.a ${DESTDIR}etc/kdb
- ${INSTALL} kautils.h kauth.h kaport.h ${DESTDIR}include/afs
-
-
-
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-LIBS= -llwp -ldes -lrxkad -lauth -lcmd -lubik -lprot -lsys -lrx -lcom_err -lkauth
-
-utilib=${SRCDIR}lib/afs/util.a
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-system: all
-
-# the only tests _known_ to work are multiklog and the tcl scripts.
-
-all test tests: multiklog
-
-clean:
- rm -f *.o core
-
-multiklog: multiklog.o
- cc -o multiklog ${CFLAGS} multiklog.o ${utilib}
-
-test_date: ../kautils.o test_date.o ${utilib}
- cc -o test_date ${CFLAGS} test_date.o ../kautils.o ${utilib}
-
-test_badtix: test_badtix.o
- cc -o test_badtix ${CFLAGS} test_badtix.o
-
-decode_ticket: decode_ticket.o
- cc -o decode_ticket ${CFLAGS} decode_ticket.o
-
-test_interim_ktc: test_interim_ktc.o
- cc -o test_interim_ktc ${CFLAGS} test_interim_ktc.o
-
-test_rxkad_free: test_rxkad_free.o
- cc -o test_rxkad_free ${CFLAGS} test_rxkad_free.o
-
-test_getticket: test_getticket.o
- cc -o test_getticket ${CFLAGS} test_getticket.o
-
-background: background.c
- cc -o background background.c
-
-# test_interim_ktc depends on normally running ka & pr servers. Also on
-# the current user having write access to the working directory. Also
-# on the user "tester" being defined with ViceId=1031. The password
-# must be specified on the make line the others can be overridden by
-# specifying a value for TESTERVALUES. To test remote authentication, a
-# test account in another cell must be available. The default is the
-# cell "cellname" and the user tester with Vice Id 510, and the
-# same password as in the local cell. These can be over-ridden by
-# specifying a difference value for REMOTETESTER. An empty value for
-# REMOTETESTER will disable testing of remote authentication.
-
-TESTERNAME=xxx
-TESTERPASSWORD=xxx
-#TESTERVALUES=-tester tester -testId 1031
-TESTERVALUES=
-REMOTEPASSWORD=${TESTERPASSWORD}
-REMOTETESTER=-remoteTester $(TESTERNAME) -remoteTestPassword ${REMOTEPASSWORD} -remoteTestId 510 -remoteCell cellname
-
-# test_kaserver starts a server in the background and tests it.
-
-# test_rxkad_free checks for rxkad object/connection usage and checks for
-# core leaks. Normally it makes 100 calls to the kaserver, doing a GetEntry
-# call. This requests an admin ticket 100 times and creates a ubik
-# connection 100 times. With the -doauth switch specified it calls
-# ka_UserAuthenticate instead, which uses rxnull connections, but also
-# exercises the ptserver code, particularly, pr_Initialize, 100 times.
-
-runtest: background multiklog test_badtix test_interim_ktc test_rxkad_free
- test_interim_ktc ${TESTERVALUES} -testPassword ${TESTERPASSWORD} ${REMOTETESTER}
- test_kaserver
- test_rxkad_free -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
- test_rxkad_free -doauth -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=libacl
-include ../config/Makefile.${SYS_NAME}
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include -I.. \
- -I${BACKDIR}include -I${DESTDIR}include/afs
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-
-CFLAGS = ${OPTMZ} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-LIBOBJS=aclprocs.o netprocs.o
-
-include ../config/Makefile.version
-
-all: libacl.a
-
-libacl.a: $(LIBOBJS) AFS_component_version_number.o
- rm -f libacl.a
- ar rv libacl.a $(LIBOBJS) AFS_component_version_number.o
- $(RANLIB) libacl.a
-
-aclprocs.o: aclprocs.c acl.h
-
-netprocs.o: netprocs.c acl.h
-
-clean:
- rm -f acltest *.o libacl.a core AFS_component_version_number.c
-
-system: install
-
-kinstall:
- ${INSTALL} prs_fs.h ${KERNELDIR}afs/prs_fs.h
-
-ukinstall webinstall:
- ${INSTALL} prs_fs.h ${UKERNELDIR}afs/prs_fs.h
-
-install: libacl.a kinstall ukinstall
- ${INSTALL} libacl.a ${DESTDIR}lib/afs/libacl.a
- ${INSTALL} acl.h ${DESTDIR}include/afs/acl.h
- ${INSTALL} prs_fs.h ${DESTDIR}include/afs/prs_fs.h
-
-test:
- cd test; $(MAKE)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -lacl -lprot -lubik -lrx -llwp -lauth -lrxkad -lsys ${XLIBS}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-system: acltest
-
-clean:
- rm -f *.o *.a acltest core
-
-acltest: acltest.o
- $(CC) -o acltest acltest.o $(CFLAGS)
-
-acltest.o: acltest.c
-
-kinstall:
- @echo No kernel source here.
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../config/Makefile.${SYS_NAME}
-
-system install:
- ${INSTALL} afs_Admin.h ${DESTDIR}include/afs
-
-clean:
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-COMPILE_ET = ${SRCDIR}bin/compile_et
-RXKAD = ../../rxkad
-AUTH = ../../auth
-BOZO = ../../bozo
-CMD = ../../cmd
-KAUTH = ../../kauth
-PTSERVER = ../../ptserver
-UBIK = ../../ubik
-VLSERVER = ../../vlserver
-VOLSER = ../../volser
-
-afs_AdminBosErrors.c ${DESTDIR}/include/afs/afs_AdminBosErrors.h: afs_AdminBosErrors.et
- ${INSTALL} afs_AdminErrors.h ${DESTDIR}include/afs
- rm -f afs_AdminBosErrors.c afs_AdminBosErrors.h
- ${COMPILE_ET} afs_AdminBosErrors.et -h afs_AdminBosErrors
- cp afs_AdminBosErrors.h ${DESTDIR}/include/afs/afs_AdminBosErrors.h
-
-afs_AdminCfgErrors.c ${DESTDIR}/include/afs/afs_AdminCfgErrors.h: afs_AdminCfgErrors.et
- rm -f afs_AdminCfgErrors.c afs_AdminCfgErrors.h
- ${COMPILE_ET} afs_AdminCfgErrors.et -h afs_AdminCfgErrors
- cp afs_AdminCfgErrors.h ${DESTDIR}/include/afs/afs_AdminCfgErrors.h
-
-afs_AdminClientErrors.c ${DESTDIR}/include/afs/afs_AdminClientErrors.h: afs_AdminClientErrors.et
- rm -f afs_AdminClientErrors.c afs_AdminClientErrors.h
- ${COMPILE_ET} afs_AdminClientErrors.et -h afs_AdminClientErrors
- cp afs_AdminClientErrors.h ${DESTDIR}/include/afs/afs_AdminClientErrors.h
-
-afs_AdminMiscErrors.c ${DESTDIR}/include/afs/afs_AdminMiscErrors.h: afs_AdminMiscErrors.et
- rm -f afs_AdminMiscErrors.c afs_AdminMiscErrors.h
- ${COMPILE_ET} afs_AdminMiscErrors.et -h afs_AdminMiscErrors
- cp afs_AdminMiscErrors.h ${DESTDIR}/include/afs/afs_AdminMiscErrors.h
-
-afs_AdminCommonErrors.c ${DESTDIR}/include/afs/afs_AdminCommonErrors.h: afs_AdminCommonErrors.et
- rm -f afs_AdminCommonErrors.c afs_AdminCommonErrors.h
- ${COMPILE_ET} afs_AdminCommonErrors.et -h afs_AdminCommonErrors
- cp afs_AdminCommonErrors.h ${DESTDIR}/include/afs/afs_AdminCommonErrors.h
-
-afs_AdminKasErrors.c ${DESTDIR}/include/afs/afs_AdminKasErrors.h: afs_AdminKasErrors.et
- rm -f afs_AdminKasErrors.c afs_AdminKasErrors.h
- ${COMPILE_ET} afs_AdminKasErrors.et -h afs_AdminKasErrors
- cp afs_AdminKasErrors.h ${DESTDIR}/include/afs/afs_AdminKasErrors.h
-
-afs_AdminPtsErrors.c ${DESTDIR}/include/afs/afs_AdminPtsErrors.h: afs_AdminPtsErrors.et
- rm -f afs_AdminPtsErrors.c afs_AdminPtsErrors.h
- ${COMPILE_ET} afs_AdminPtsErrors.et -h afs_AdminPtsErrors
- cp afs_AdminPtsErrors.h ${DESTDIR}/include/afs/afs_AdminPtsErrors.h
-
-afs_AdminUtilErrors.c ${DESTDIR}/include/afs/afs_AdminUtilErrors.h: afs_AdminUtilErrors.et
- rm -f afs_AdminUtilErrors.c afs_AdminUtilErrors.h
- ${COMPILE_ET} afs_AdminUtilErrors.et -h afs_AdminUtilErrors
- cp afs_AdminUtilErrors.h ${DESTDIR}/include/afs/afs_AdminUtilErrors.h
-
-afs_AdminVosErrors.c ${DESTDIR}/include/afs/afs_AdminVosErrors.h: afs_AdminVosErrors.et
- rm -f afs_AdminVosErrors.c afs_AdminVosErrors.h
- ${COMPILE_ET} afs_AdminVosErrors.et -h afs_AdminVosErrors
- cp afs_AdminVosErrors.h ${DESTDIR}/include/afs/afs_AdminVosErrors.h
-
-ERROROBJS = \
- rxkad_errs.o \
- boserr.o \
- kaerrors.o \
- ktc_errors.o \
- cmd_errors.o \
- pterror.o \
- uerrors.o \
- vl_errors.o \
- acfg_errors.o \
- volerr.o
-
-ADMINOBJS = \
- afs_AdminBosErrors.o \
- afs_AdminCfgErrors.o \
- afs_AdminClientErrors.o \
- afs_AdminCommonErrors.o \
- afs_AdminKasErrors.o \
- afs_AdminMiscErrors.o \
- afs_AdminPtsErrors.o \
- afs_AdminUtilErrors.o \
- afs_AdminVosErrors.o \
- afs_utilAdmin.o
-
-LIBOBJS = ${ADMINOBJS} ${ERROROBJS}
-
-LIBADMINUTIL = ${DESTDIR}/lib/afs/libafsadminutil.a
-
-system install: ${LIBADMINUTIL}
-
-${LIBADMINUTIL}: libafsadminutil.a
- ${INSTALL} afs_utilAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libafsadminutil.a ${LIBADMINUTIL}
-
-libafsadminutil.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_utilAdmin.o: afs_utilAdmin.h
-
-ktc_errors.o: ${AUTH}/ktc_errors.c
- ${CCRULE}
-
-acfg_errors.o: ${AUTH}/acfg_errors.c
- ${CCRULE}
-
-boserr.o: ${BOZO}/boserr.c
- ${CCRULE}
-
-cmd_errors.o: ${CMD}/cmd_errors.c
- ${CCRULE}
-
-kaerrors.o: ${KAUTH}/kaerrors.c
- ${CCRULE}
-
-pterror.o: ${PTSERVER}/pterror.c
- ${CCRULE}
-
-rxkad_errs.o: ${RXKAD}/rxkad_errs.c
- ${CCRULE}
-
-uerrors.o: ${UBIK}/uerrors.c
- ${CCRULE}
-
-vl_errors.o: ${VLSERVER}/vl_errors.c
- ${CCRULE}
-
-volerr.o: ${VOLSER}/volerr.c
- ${CCRULE}
-
-clean:
- rm -f *.o libafsadminutil*
- rm -f afs_AdminBosErrors.c afs_AdminBosErrors.h
- rm -f afs_AdminCfgErrors.c afs_AdminCfgErrors.h
- rm -f afs_AdminClientErrors.c afs_AdminClientErrors.h
- rm -f afs_AdminCommonErrors.c afs_AdminCommonErrors.h
- rm -f afs_AdminKasErrors.c afs_AdminKasErrors.h
- rm -f afs_AdminMiscErrors.c afs_AdminMiscErrors.h
- rm -f afs_AdminPtsErrors.c afs_AdminPtsErrors.h
- rm -f afs_AdminUtilErrors.c afs_AdminUtilErrors.h
- rm -f afs_AdminVosErrors.c afs_AdminVosErrors.h
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-BOZO = ../../bozo/
-
-ADMINOBJS = afs_bosAdmin.o
-
-BOZOOBJS = bosint.xdr.o bosint.cs.o
-
-LIBOBJS = ${ADMINOBJS} ${BOZOOBJS}
-
-LIBBOSADMIN = ${DESTDIR}/lib/afs/libbosadmin.a
-
-system install: ${LIBBOSADMIN}
-
-${LIBBOSADMIN}: libbosadmin.a
- ${INSTALL} afs_bosAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libbosadmin.a ${LIBBOSADMIN}
-
-libbosadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_bosAdmin.o: afs_bosAdmin.h
-
-bosint.xdr.o: ${BOZO}/bosint.xdr.c
- ${CCRULE}
-
-bosint.cs.o: ${BOZO}/bosint.cs.c
- ${CCRULE}
-
-clean:
- rm -f *.o libbosadmin*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-UBIKOBJS=\
- ubik_int.cs.o \
- ubik_int.xdr.o
-
-CFGOBJS=\
- cfgclient.o \
- cfgdb.o \
- cfghost.o \
- cfgservers.o \
- cfginternal.o
-
-LIBOBJS =\
- ${UBIKOBJS} \
- ${CFGOBJS}
-
-
-LIBCFGADMIN = ${DESTDIR}/lib/afs/libcfgadmin.a
-
-system install: ${LIBCFGADMIN}
-
-${LIBCFGADMIN}: libcfgadmin.a
- ${INSTALL} afs_cfgAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libcfgadmin.a ${LIBCFGADMIN}
-
-libcfgadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-UBIKDIR=../../ubik
-
-ubik_int.cs.o: ${UBIKDIR}/ubik_int.cs.c
- ${CCRULE}
-
-ubik_int.xdr.o: ${UBIKDIR}/ubik_int.xdr.c
- ${CCRULE}
-
-${CFGOBJS}: afs_cfgAdmin.h
-
-clean:
- rm -f *.o libcfgadmin*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -DAFS_PTHREAD_ENV -I${SRCDIR}include ${MT_CFLAGS}
-
-
-########################################################################
-# build tests
-
-CFGTESTLIBS =\
- $(DESTDIR)/lib/afs/libafsadminutil.a \
- $(DESTDIR)/lib/afs/libclientadmin.a \
- $(DESTDIR)/lib/afs/libcfgadmin.a \
- $(DESTDIR)/lib/afs/libbosadmin.a \
- $(DESTDIR)/lib/afs/libvosadmin.a \
- $(DESTDIR)/lib/afs/libkasadmin.a \
- $(DESTDIR)/lib/afs/libptsadmin.a \
- $(DESTDIR)/lib/libafsauthent.a \
- $(DESTDIR)/lib/libafsrpc.a \
- $(DESTDIR)/lib/afs/libcmd.a # static library
-
-cfgtest: cfgtest.o $(CFGTESTLIBS)
- $(CC) $(CFLAGS) -o cfgtest cfgtest.o -LDEST/lib/afs $(CFGTESTLIBS) $(XLIBS)
-
-#######################################################################
-test tests: cfgtest
-
-clean:
- $(RM) -f *.o cfgtest core
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-
-ADMINOBJS = afs_clientAdmin.o
-
-LIBOBJS = ${ADMINOBJS}
-
-LIBCLIENTADMIN = ${DESTDIR}/lib/afs/libclientadmin.a
-
-system install: ${LIBCLIENTADMIN}
-
-${LIBCLIENTADMIN}: libclientadmin.a
- ${INSTALL} afs_clientAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libclientadmin.a ${LIBCLIENTADMIN}
-
-libclientadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_clientAdmin.o: afs_clientAdmin.h
-
-clean:
- rm -f *.o libclientadmin*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-KAUTH= ../../kauth/
-
-ADMINOBJS = afs_kasAdmin.o
-
-KAUTHOBJS = \
- kauth.cs.o \
- kauth.xdr.o \
- kaaux.o
-
-LIBOBJS = ${ADMINOBJS} ${KAUTHOBJS}
-
-LIBKASADMIN = ${DESTDIR}/lib/afs/libkasadmin.a
-
-system install: ${LIBKASADMIN}
-
-${LIBKASADMIN}: libkasadmin.a
- ${INSTALL} afs_kasAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libkasadmin.a ${LIBKASADMIN}
-
-libkasadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_kasAdmin.o: afs_kasAdmin.h
-
-kauth.cs.o: ${KAUTH}/kauth.cs.c
- ${CCRULE};
-
-kauth.xdr.o: ${KAUTH}/kauth.xdr.c
- ${CCRULE};
-
-kaaux.o: ${KAUTH}/kaaux.c
- ${CCRULE};
-
-clean:
- rm -f *.o libkasadmin*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-PTSERVER = ../../ptserver/
-
-ADMINOBJS = \
- afs_ptsAdmin.o
-
-PTSERVEROBJS = \
- ptint.xdr.o \
- ptint.cs.o
-
-LIBOBJS = ${ADMINOBJS} ${PTSERVEROBJS}
-
-LIBPTSADMIN = ${DESTDIR}/lib/afs/libptsadmin.a
-
-system install: ${LIBPTSADMIN}
-
-${LIBPTSADMIN}: libptsadmin.a
- ${INSTALL} afs_ptsAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libptsadmin.a ${LIBPTSADMIN}
-
-libptsadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_ptsAdmin.o: afs_ptsAdmin.h
-
-ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
- ${CCRULE};
-
-ptint.cs.o: ${PTSERVER}/ptint.cs.c
- ${CCRULE};
-
-clean:
- rm -f *.o libptsadmin*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-
-
-########################################################################
-# build tests
-
-SAMPLEPROGS=\
- cm_client_config \
- cm_list_cells \
- cm_local_cell \
- cm_server_prefs \
- rxdebug_basic_stats \
- rxdebug_conns \
- rxdebug_peers \
- rxdebug_rx_stats \
- rxdebug_supported_stats \
- rxdebug_version \
- rxstat_clear_peer \
- rxstat_clear_process \
- rxstat_disable_peer \
- rxstat_disable_process \
- rxstat_enable_peer \
- rxstat_enable_process \
- rxstat_get_peer \
- rxstat_get_process \
- rxstat_get_version \
- rxstat_query_peer \
- rxstat_query_process
-
-SAMPLELIBS =\
- ${DESTDIR}/lib/afs/libafsadminutil.a \
- ${DESTDIR}/lib/afs/libclientadmin.a \
- ${DESTDIR}/lib/afs/libvosadmin.a \
- ${DESTDIR}/lib/afs/libbosadmin.a \
- ${DESTDIR}/lib/libafsauthent.a \
- ${DESTDIR}/lib/libafsrpc.a
-
-cm_client_config: cm_client_config.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-cm_list_cells: cm_list_cells.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-cm_local_cell: cm_local_cell.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-cm_server_prefs: cm_server_prefs.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_basic_stats: rxdebug_basic_stats.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_conns: rxdebug_conns.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_peers: rxdebug_peers.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_rx_stats: rxdebug_rx_stats.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_supported_stats: rxdebug_supported_stats.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxdebug_version: rxdebug_version.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_clear_peer: rxstat_clear_peer.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_clear_process: rxstat_clear_process.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_disable_peer: rxstat_disable_peer.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_disable_process: rxstat_disable_process.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_enable_peer: rxstat_enable_peer.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_enable_process: rxstat_enable_process.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_get_peer: rxstat_get_peer.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_get_process: rxstat_get_process.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_get_version: rxstat_get_version.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_query_peer: rxstat_query_peer.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-rxstat_query_process: rxstat_query_process.o $(SAMPLELIBS)
- $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
-
-#######################################################################
-install test tests: $(SAMPLEPROGS)
-
-clean:
- $(RM) -f *.o $(SAMPLEPROGS) core
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-
-
-########################################################################
-# build tests
-
-AFSCPLIBS =\
- $(DESTDIR)/lib/afs/libafsadminutil.a \
- $(DESTDIR)/lib/afs/libclientadmin.a \
- $(DESTDIR)/lib/afs/libbosadmin.a \
- $(DESTDIR)/lib/afs/libvosadmin.a \
- $(DESTDIR)/lib/afs/libkasadmin.a \
- $(DESTDIR)/lib/afs/libptsadmin.a \
- $(DESTDIR)/lib/libafsauthent.a \
- $(DESTDIR)/lib/libafsrpc.a \
- $(DESTDIR)/lib/afs/libcmd.a # static library
-
-AFSCPOBJS =\
- bos.o \
- client.o \
- kas.o \
- pts.o \
- util.o \
- vos.o
-
-afscp: afscp.o $(AFSCPOBJS) $(AFSCPLIBS)
- $(CC) $(CFLAGS) -o afscp afscp.o $(AFSCPOBJS) \
- -LDEST/lib/afs $(AFSCPLIBS) ${MTLIBS} $(XLIBS)
-
-#######################################################################
-install test tests: afscp
-
-clean:
- $(RM) -f *.o afscp core
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-VLSERVER = ../../vlserver/
-VOLSER = ../../volser/
-FSINT = ../../fsint/
-
-ADMINOBJS =\
- afs_vosAdmin.o \
- vosutils.o \
- vsprocs.o \
- lockprocs.o
-
-VLSERVEROBJS =\
- vldbint.cs.o \
- vldbint.xdr.o
-
-VOLSEROBJS =\
- volint.cs.o \
- volint.xdr.o
-
-FSINTOBJS =\
- afsint.xdr.o \
- afscbint.xdr.o
-
-LIBOBJS = ${ADMINOBJS} ${VLSERVEROBJS} ${VOLSEROBJS} ${FSINTOBJS}
-
-LIBVOSADMIN = ${DESTDIR}/lib/afs/libvosadmin.a
-
-system install: ${LIBVOSADMIN}
-
-${LIBVOSADMIN}: libvosadmin.a
- ${INSTALL} afs_vosAdmin.h ${DESTDIR}include/afs
- ${INSTALL} libvosadmin.a ${LIBVOSADMIN}
-
-libvosadmin.a: ${LIBOBJS}
- -rm -f $@
- ar rv $@ ${LIBOBJS}
- ${RANLIB} $@
-
-afs_vosAdmin.o: afs_vosAdmin.h
-
-vldbint.cs.o: ${VLSERVER}/vldbint.cs.c
- ${CCRULE};
-
-vldbint.xdr.o: ${VLSERVER}/vldbint.xdr.c
- ${CCRULE};
-
-volint.xdr.o: ${VOLSER}/volint.xdr.c
- ${CCRULE};
-
-volint.cs.o: ${VOLSER}/volint.cs.c
- ${CCRULE};
-
-afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
- ${CCRULE};
-
-afsint.xdr.o: ${FSINT}/afsint.xdr.c
- ${CCRULE};
-
-clean:
- rm -f *.o libvosadmin*
# Common elements for Makefiles for all system types.
#
SHELL=/bin/sh
-DESTDIR = DEST/
-SRCDIR = DEST/
INCLUDE= -I. -I/usr/include -I${TOP_SRCDIR}/config
-Aobj=COMMON
-Dobj=DYNEL
-Cobj=CLIENT
-Sobj=SERVER
-Nobj=COMMON_NONFS
-Xobj=COMMON_NFS11
-NDobj=DYNEL_NONFS
AFS =../afs
-ADIR =../dir
RX =../rx
AFSINT =../afsint
-DKLOAD =../dkload
-
# Build rules - CC and CFLAGS are defined in system specific MakefileProtos.
.c.i:
CRULE3= $(CC) $(OPTF2) $(CFLAGS) -c $?
CRULE4= $(CC) $(DBG) $(CFLAGS) -c $?
-system: install
+system: all
kinstall: install
-install: all
+install: all $(INSTDIRS)
+dest: all $(DESTDIRS)
all: setup $(COMPDIRS)
-single_compdir:
+single_compdir single_instdir single_destdir:
cd $(KOBJ) ; \
- echo $(MAKE) DESTDIR=${DESTDIR} libafs; \
- $(MAKE) DESTDIR=${DESTDIR} libafs;
+ echo $(MAKE) DESTDIR=${DESTDIR} $@_libafs; \
+ $(MAKE) DESTDIR=${DESTDIR} $@_libafs;
+
+single_compdir_libafs: libafs
+single_instdir_libafs: install_libafs
+single_destdir_libafs: dest_libafs
AFSAOBJS = \
afs_atomlist.o \
rxkad_client.o \
rxkad_common.o \
xdr_afsuuid.o \
- xdr_int64.o \
afs_uuid.o $(AFS_OS_OBJS)
# These next two allow nfs and nonfs builds to occur in the same directory.
$(CRULE2);
xdr_afsuuid.o: $(RX)/xdr_afsuuid.c
$(CRULE2);
-xdr_int64.o: $(RX)/xdr_int64.c
- $(CRULE2);
# these files are not to be optimized - subject to change.
afs_cbqueue.o: $(AFS)/afs_cbqueue.c
clean:
- -rm -rf STATIC* MODLOAD*
- -rm -rf h net netinet rpc ufs machine inet nfs sys afs afsint asm asm-generic config rx
+ -$(RM) -rf STATIC* MODLOAD*
+ -$(RM) -rf h net netinet rpc ufs machine inet nfs sys afs afsint asm asm-generic config rx linux
# MakefileProto for Linux i386 systems
#
-
-DESTDIR=DEST/
-include ../config/Makefile.${SYS_NAME}
+DEST=@DEST@
+TOP_INCDIR=@TOP_INCDIR@
+TOP_LIBDIR=@TOP_LIBDIR@
+TOP_SRCDIR=@TOP_SRCDIR@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
+libexecdir=@libexecdir@
+libdir=@libdir@
+includedir=@includedir@
+mandir=@mandir@
+afssrvbindir=@afssrvbindir@
+afssrvsbindir=@afssrvsbindir@
+afssrvlibexecdir=@afssrvlibexecdir@
+afskerneldir=@afskerneldir@
+SYS_NAME=@AFS_SYSNAME@
+
+include config/Makefile.${SYS_NAME}
# OS specific object files:
AFS_OS_OBJS = \
osi_vm.o \
osi_vnodeops.o \
xdr.o \
- xdr_array.o
+ xdr_array.o \
+ xdr_int64.o
AFS_OS_NFSOBJS =
-fno-strict-aliasing -fsigned-char -msoft-float -pipe \
-fno-builtin -ffixed-r2
DEFINES = -D__KERNEL__ -D__powerpc__ -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF}
+<ia64_linux24>
+CCFLAGS = -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
+ -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32 -mb-step
+DEFINES = -D__KERNEL__ -DKERNEL -D_KERNEL ${SMP_DEF} -DMODULE
<all>
INCLUDES = -I. -I../ -I${TOP_SRCDIR}/config
# COMPDIRS is called in Makefile.common to do the actual builds.
COMPDIRS=linux_compdirs
+INSTDIRS=linux_instdirs
+DESTDIRS=linux_destdirs
include Makefile.common
LOCAL_SMP_DEF=
setup:
- -rm -f h net netinet sys rpc
+ -$(RM) -f h net netinet sys rpc
-ln -s rx rpc
for m in ${MPS} ; do \
KDIR=$(KOBJ)-${LINUX_VERS}${LINUX_MODULE_NAME}-$$m; \
mkdir -p $${KDIR}; \
ln -fs ../Makefile $${KDIR}/Makefile ; \
ln -fs ../Makefile.common $${KDIR}/Makefile.common; \
+ ln -fs ../config $${KDIR}/config; \
done
# Compile SP and MP clients as requested
-${COMPDIRS}:
- rm -f h
+${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
+ $(RM) -f h
ln -s ${LINUX_KERNEL_PATH}/include/linux h
- rm -f linux
+ $(RM) -f linux
ln -s ${LINUX_KERNEL_PATH}/include/linux linux
- rm -f net
+ $(RM) -f net
ln -s ${LINUX_KERNEL_PATH}/include/linux net
- rm -f netinet
+ $(RM) -f netinet
ln -s ${LINUX_KERNEL_PATH}/include/linux netinet
- rm -f sys
+ $(RM) -f sys
ln -s ${LINUX_KERNEL_PATH}/include/linux sys
- rm -f asm-generic
+ $(RM) -f asm-generic
ln -s ${LINUX_KERNEL_PATH}/include/asm-generic asm-generic
- rm -f asm
+ $(RM) -f asm
<alpha_linux_22 alpha_linux_24>
ln -s ${LINUX_KERNEL_PATH}/include/asm-alpha asm
<i386_linux22 i386_linux24>
ln -s ${LINUX_KERNEL_PATH}/include/asm-sparc asm
<sparc64_linux22 sparc64_linux24>
ln -s ${LINUX_KERNEL_PATH}/include/asm-sparc64 asm
+<ia64_linux24>
+ ln -s ${LINUX_KERNEL_PATH}/include/asm-ia64 asm
<all>
for m in ${MPS} ; do \
KDIR=${KOBJ}-${LINUX_VERS}${LINUX_MODULE_NAME}-$$m ; \
TARG=libafs ; \
fi ; \
cd $${KDIR} ; \
- $(MAKE) DESTDIR=${DESTDIR} SMP_DEF="$${SMP_DEF}" $${TARG} CLIENT=${LINUX_VERS}${LINUX_MODULE_NAME} || exit $$?; \
+ $(MAKE) SMP_DEF="$${SMP_DEF}" $@_$${TARG} CLIENT=${LINUX_VERS}${LINUX_MODULE_NAME} || exit $$?; \
cd ../ ; \
done
+linux_compdirs_libafs: libafs
+linux_compdirs_libafs.mp: libafs.mp
+linux_instdirs_libafs: install_libafs
+linux_instdirs_libafs.mp: install_libafs.mp
+linux_destdirs_libafs: dest_libafs
+linux_destdirs_libafs.mp: dest_libafs.mp
+
# Below this line are targets when in the COMMON directory:
# For Linux there is no kernel NFS server.
LIBAFS = libafs-${CLIENT}.o
LIBAFS_MP = libafs-${CLIENT}.mp.o
-DEST_LIBAFS = ${DESTDIR}/root.client/usr/vice/etc/modload/openafs.o
-DEST_LIBAFS_MP = ${DESTDIR}/root.client/usr/vice/etc/modload/openafs.mp.o
+INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
+INST_LIBAFS_MP = ${DESTDIR}${afskerneldir}/${LIBAFS_MP}
+
+DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/openafs.o
+DEST_LIBAFS_MP = ${DEST}/root.client/usr/vice/etc/modload/openafs.mp.o
-libafs: $(DEST_LIBAFS)
+libafs: $(LIBAFS)
echo SP Build Complete
-libafs.mp: $(DEST_LIBAFS_MP)
+libafs.mp: $(LIBAFS_MP)
echo MP Build Complete
-$(DEST_LIBAFS): $(LIBAFS)
- ${INSTALL} -f $? $@
-
-$(DEST_LIBAFS_MP): $(LIBAFS_MP)
- ${INSTALL} -f $? $@
-
${LIBAFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
$(RM) -f $@
$(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
$(RM) -f $@
$(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
+install_libafs: $(INST_LIBAFS)
+ echo SP Install Complete
+
+install_libafs.mp: $(INST_LIBAFS_MP)
+ echo MP Install Complete
+
+dest_libafs: $(DEST_LIBAFS)
+ echo SP Install Complete
+
+dest_libafs.mp: $(DEST_LIBAFS_MP)
+ echo MP Install Complete
+
+$(INST_LIBAFS): $(LIBAFS)
+ ${INSTALL} -f $? $@
+
+$(INST_LIBAFS_MP): $(LIBAFS_MP)
+ ${INSTALL} -f $? $@
+
+$(DEST_LIBAFS): $(LIBAFS)
+ ${INSTALL} -f $? $@
+
+$(DEST_LIBAFS_MP): $(LIBAFS_MP)
+ ${INSTALL} -f $? $@
+
# Linux specific objects
osi_alloc.o: $(AFS)/osi_alloc.c
- $(CRULE1);
+ $(CRULE1)
osi_cred.o: $(AFS)/osi_cred.c
- $(CRULE1);
+ $(CRULE1)
osi_groups.o: $(AFS)/osi_groups.c
- $(CRULE1);
+ $(CRULE1)
osi_file.o: $(AFS)/osi_file.c
- $(CRULE1);
+ $(CRULE1)
osi_inode.o: $(AFS)/osi_inode.c
- $(CRULE1);
+ $(CRULE1)
osi_misc.o: $(AFS)/osi_misc.c
- $(CRULE1);
+ $(CRULE1)
osi_module.o: $(AFS)/osi_module.c
- $(CRULE1);
+ $(CRULE1)
osi_sleep.o: $(AFS)/osi_sleep.c
- $(CRULE1);
+ $(CRULE1)
osi_vfsops.o: $(AFS)/osi_vfsops.c
- $(CRULE1);
+ $(CRULE1)
osi_vm.o: $(AFS)/osi_vm.c
- $(CRULE1);
+ $(CRULE1)
osi_vnodeops.o: $(AFS)/osi_vnodeops.c
- $(CRULE1);
+ $(CRULE1)
xdr.o: $(RX)/xdr.c
- $(CRULE1);
+ $(CRULE1)
xdr_int64.o: $(RX)/xdr_int64.c
- $(CRULE1);
+ $(CRULE1)
xdr_array.o: $(RX)/xdr_array.c
- $(CRULE1);
+ $(CRULE1)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# This is a pthread safe library containing ubikclient, auth, kauth.
-
-SHELL = /bin/sh
-COMPONENT=libafsauthent
-include ../config/Makefile.${SYS_NAME}
-
-CC=${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
-CCRULE = ${CC} ${CFLAGS} -c $?
-
-AUDIT= ../audit
-AUTH = ../auth
-KAUTH = ../kauth
-UBIK = ../ubik
-UTIL = ../util
-RXKAD = ../rxkad
-PTSERVER = ../ptserver
-SYS = ../sys
-
-AUDITOBJS = audit.o
-
-AUTHOBJS = \
- cellconfig.o \
- ktc.o \
- userok.o \
- writeconfig.o \
- authcon.o \
- ktc_errors.o \
- acfg_errors.o
-
-KAUTHOBJS = \
- kauth.xdr.o \
- kauth.cs.o \
- kaaux.o \
- client.o \
- authclient.o \
- token.o \
- kautils.o \
- kalocalcell.o \
- kaerrors.o \
- user.o \
- read_passwd.o
-
-UBIKOBJS = \
- ubikclient.o \
- uerrors.o \
- ubik_int.cs.o \
- ubik_int.xdr.o
-
-UTILOBJS = \
- pthread_glock.o \
- get_krbrlm.o \
- dirpath.o \
- fileutil.o \
- casestrcpy.o
-
-RXKADOBJS = \
- rxkad_errs.o
-
-SYSOBJS = \
- rmtsysc.o \
- rmtsys.xdr.o \
- rmtsys.cs.o \
- afssyscalls.o \
- rmtsysnet.o
-
-PTSERVEROBJS = \
- ptclient.o \
- ptint.cs.o \
- ptint.xdr.o \
- ptuser.o \
- display.o \
- pterror.o
-
-LIBOBJS = \
- ${AUDITOBJS} \
- ${AUTHOBJS} \
- ${KAUTHOBJS} \
- ${UBIKOBJS} \
- ${UTILOBJS} \
- ${RXKADOBJS} \
- ${PTSERVEROBJS} \
- ${SYSOBJS}
-
-system install: ${DESTDIR}lib/libafsauthent.a
-
-${DESTDIR}lib/libafsauthent.a: libafsauthent.a
- ${INSTALL} libafsauthent.a ${DESTDIR}lib/libafsauthent.a
-
-libafsauthent.a: ${LIBOBJS}
- rm -f libafsauthent.a
- ${AR} -r libafsauthent.a ${LIBOBJS}
- ${RANLIB} libafsauthent.a
-
-audit.o: ${AUDIT}/audit.c
- ${CCRULE};
-
-cellconfig.o: ${AUTH}/cellconfig.c
- ${CCRULE};
-
-ktc.o: ${AUTH}/ktc.c
- ${CCRULE};
-
-userok.o: ${AUTH}/userok.c
- ${CCRULE};
-
-writeconfig.o: ${AUTH}/writeconfig.c
- ${CCRULE};
-
-authcon.o: ${AUTH}/authcon.c
- ${CCRULE};
-
-ktc_errors.o: ${AUTH}/ktc_errors.c
- ${CCRULE};
-
-acfg_errors.o: ${AUTH}/acfg_errors.c
- ${CCRULE};
-
-kauth.xdr.o: ${KAUTH}/kauth.xdr.c
- ${CCRULE};
-
-kauth.cs.o: ${KAUTH}/kauth.cs.c
- ${CCRULE};
-
-kaaux.o: ${KAUTH}/kaaux.c
- ${CCRULE};
-
-client.o: ${KAUTH}/client.c
- ${CCRULE};
-
-authclient.o: ${KAUTH}/authclient.c
- ${CCRULE};
-
-token.o: ${KAUTH}/token.c
- ${CCRULE};
-
-kautils.o: ${KAUTH}/kautils.c
- ${CCRULE};
-
-kalocalcell.o: ${KAUTH}/kalocalcell.c
- ${CCRULE};
-
-kaerrors.o: ${KAUTH}/kaerrors.c
- ${CCRULE};
-
-user.o: ${KAUTH}/user.c
- ${CCRULE};
-
-read_passwd.o: ${KAUTH}/read_passwd.c
- ${CCRULE};
-
-ubikclient.o: ${UBIK}/ubikclient.c
- ${CCRULE};
-
-uerrors.o: ${UBIK}/uerrors.c
- ${CCRULE};
-
-ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
- ${CCRULE};
-
-ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
- ${CCRULE};
-
-get_krbrlm.o: ${UTIL}/get_krbrlm.c
- ${CCRULE};
-
-dirpath.o: ${UTIL}/dirpath.c
- ${CCRULE};
-
-fileutil.o: ${UTIL}/fileutil.c
- ${CCRULE};
-
-casestrcpy.o: ${UTIL}/casestrcpy.c
- ${CCRULE}
-
-pthread_glock.o: ${UTIL}/pthread_glock.c
- ${CCRULE};
-
-rxkad_errs.o: ${RXKAD}/rxkad_errs.c
- ${CCRULE};
-
-ptclient.o: ${PTSERVER}/ptclient.c
- ${CCRULE};
-
-# The special treatment of this file for hp_ux110 is because of a bug
-# in version A.11.01.00 of the HP C compiler. This bug appears to be
-# fixed in version A.11.01.02 of the HP C compiler, however this version
-# of the compiler is not installed on all of our build machines.
-# The symptom of the problem is an error when linking the pthread fileserver:
-# /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
-# storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
-ptuser.o: ${PTSERVER}/ptuser.c
- set -x; \
- case ${SYS_NAME} in \
- hp_ux11*) \
- set X `echo ${CCRULE} | sed s/-g//`; shift; \
- "$$@" \
- ;; \
- *) \
- ${CCRULE} \
- ;; \
- esac
-
-display.o: ${PTSERVER}/display.c
- ${CCRULE};
-
-ptint.cs.o: ${PTSERVER}/ptint.cs.c
- ${CCRULE};
-
-ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
- ${CCRULE};
-
-pterror.o: ${PTSERVER}/pterror.c
- ${CCRULE};
-
-rmtsysc.o: ${SYS}/rmtsysc.c
- ${CCRULE};
-
-rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
- ${CCRULE};
-
-rmtsys.cs.o: ${SYS}/rmtsys.cs.c
- ${CCRULE};
-
-afssyscalls.o: ${SYS}/afssyscalls.c
- ${CCRULE};
-
-rmtsysnet.o: ${SYS}/rmtsysnet.c
- ${CCRULE};
-
-clean:
- rm -f *.o libafsauthent*
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# This is a pthread safe library containing rx, rxkad and des.
-
-SHELL = /bin/sh
-COMPONENT=libafsrpc
-include ../config/Makefile.${SYS_NAME}
-
-CC=${MT_CC}
-INCLUDES = -I${SRCDIR}include -I.. -I../rx
-CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_SRCDIR}/config
-SFLAGS=-P -I${SRCDIR}include
-RX = ../rx
-CCRULE = ${CC} ${CFLAGS} -c $?
-RXKAD = ../rxkad
-RXSTAT = ../rxstat
-FSINT = ../fsint
-DES = ../des
-COMERR = ../comerr
-UTIL = ../util
-SYS = ../sys
-
-SYSOBJS =\
- syscall.o
-
-UTILOBJS =\
- casestrcpy.o \
- base64.o
-
-COMERROBJS =\
- error_msg.o \
- et_name.o \
- com_err.o
-
-XDROBJS =\
- xdr_arrayn.o \
- xdr_rx.o \
- xdr_int64.o \
- xdr_afsuuid.o \
- AFS_component_version_number.o
-
-RXOBJS =\
- rx_event.o \
- rx_user.o \
- rx_pthread.o \
- rx.o \
- rx_null.o \
- rx_conncache.o \
- rx_globals.o \
- rx_getaddr.o \
- rx_misc.o \
- rx_packet.o \
- rx_rdwr.o \
- rx_trace.o \
- rx_multi.o
-
-RXSTATOBJS =\
- rxstat.o \
- rxstat.ss.o \
- rxstat.xdr.o \
- rxstat.cs.o
-
-FSINTOBJS =\
- afsint.cs.o \
- afsint.xdr.o \
- afscbint.cs.o \
- afscbint.xdr.o \
- afsaux.o
-
-RXKADOBJS =\
- rxkad_client.o \
- rxkad_server.o \
- rxkad_common.o \
- ticket.o \
- fcrypt.o \
- crypt_conn.o
-
-DESOBJS =\
- des.o \
- cbc_encrypt.o \
- pcbc_encrypt.o \
- cksum.o \
- new_rnd_key.o \
- key_sched.o \
- debug_decl.o \
- quad_cksum.o \
- key_parity.o \
- weak_key.o \
- strng_to_key.o \
- misco.o \
- util.o
-
-LIBOBJS = \
- ${RXOBJS} \
- ${DESOBJS} \
- ${XDROBJS} \
- ${RXKADOBJS} \
- ${COMERROBJS} \
- ${UTILOBJS} \
- ${SYSOBJS} \
- ${CRYPT_OBJ} \
- ${RXSTATOBJS} \
- ${FSINTOBJS}
-
-system install:
- if [ -f "../des/Makefile" ] ; then \
- $(MAKE) install.lib ; \
- else \
- $(MAKE) libstub ; \
- fi
-
-install.lib: ${DESTDIR}lib/libafsrpc.a
-
-
-${DESTDIR}lib/libafsrpc.a: libafsrpc.a
- ${INSTALL} libafsrpc.a ${DESTDIR}lib/libafsrpc.a
-
-libafsrpc.a: ${LIBOBJS}
- rm -f libafsrpc.a
- ${AR} -r libafsrpc.a ${LIBOBJS}
- ${RANLIB} libafsrpc.a
- case "${SYS_NAME}" in \
- rs_aix*) \
- ${AR} r libafsrpc.a ../sys/afsl.exp;; \
- esac
-
-rx_event.o: ${RX}/rx_event.c
- ${CCRULE};
-
-rx_user.o: ${RX}/rx_user.c
- ${CCRULE};
-
-rx_pthread.o: ${RX}/rx_pthread.c
- ${CCRULE};
-
-rx.o: ${RX}/rx.c
- ${CCRULE};
-
-rx_conncache.o: ${RX}/rx_conncache.c
- ${CCRULE};
-
-rx_null.o: ${RX}/rx_null.c
- ${CCRULE};
-
-rx_globals.o: ${RX}/rx_globals.c
- ${CCRULE};
-
-rx_getaddr.o: ${RX}/rx_getaddr.c
- ${CCRULE};
-
-rx_misc.o: ${RX}/rx_misc.c
- ${CCRULE};
-
-rx_packet.o: ${RX}/rx_packet.c
- ${CCRULE};
-
-rx_rdwr.o: ${RX}/rx_rdwr.c
- ${CCRULE};
-
-rx_trace.o: ${RX}/rx_trace.c
- ${CCRULE};
-
-rx_multi.o: ${RX}/rx_multi.c
- ${CCRULE};
-
-rxkad_client.o: ${RXKAD}/rxkad_client.c
- ${CCRULE};
-
-rxkad_server.o: ${RXKAD}/rxkad_server.c
- ${CCRULE};
-
-rxkad_common.o: ${RXKAD}/rxkad_common.c
- ${CCRULE};
-
-ticket.o: ${RXKAD}/ticket.c
- ${CCRULE};
-
-fcrypt.o: ${RXKAD}/fcrypt.c
- ${CCRULE};
-
-crypt_conn.o: ${RXKAD}/crypt_conn.c
- ${CCRULE};
-
-AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
- ${CCRULE};
-
-xdr.o: ${RX}/xdr.c
- ${CCRULE};
-
-xdr_int64.o: ${RX}/xdr_int64.c
- ${CCRULE};
-
-xdr_array.o: ${RX}/xdr_array.c
- ${CCRULE};
-
-xdr_arrayn.o: ${RX}/xdr_arrayn.c
- ${CCRULE};
-
-xdr_float.o: ${RX}/xdr_float.c
- ${CCRULE};
-
-xdr_mem.o: ${RX}/xdr_mem.c
- ${CCRULE};
-
-xdr_rec.o: ${RX}/xdr_rec.c
- ${CCRULE};
-
-xdr_refernce.o: ${RX}/xdr_refernce.c
- ${CCRULE};
-
-xdr_rx.o: ${RX}/xdr_rx.c
- ${CCRULE};
-
-xdr_update.o: ${RX}/xdr_update.c
- ${CCRULE};
-
-xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
- ${CCRULE};
-
-# Note that the special case statement for compiling des.c is present
-# simply to work around a compiler bug on HP-UX 11.0. The symptom of
-# the problem is that linking the pthread fileserver fails with messages
-# such as
-#
-# pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
-# Please contact your HP Support representative
-# pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
-# pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
-# pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
-# pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
-# ...
-# pxdb32: internal error. File won't be debuggable (still a valid executable)
-# *** Error exit code 10
-#
-# The problematic version of pxdb is:
-#
-# $ what /opt/langtools/bin/pxdb32
-# /opt/langtools/bin/pxdb32:
-# HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision: 1.1.1.6 $
-#
-# The problem occurs when -g and -O are both used when compiling des.c.
-# The simplest way to work around the problem is to leave out either -g or -O.
-# Since des.c is relatively stable I've chosen to eliminate -g rather
-# than take any hit in performance.
-
-des.o: ${DES}/des.c
- set -x; \
- case ${SYS_NAME} in \
- hp_ux11*) \
- set X `echo ${CCRULE} | sed s/-g//`; shift; \
- "$$@" \
- ;; \
- *) \
- ${CCRULE} \
- ;; \
- esac
-
-crypt.o: ${DES}/crypt.c
- ${CCRULE};
-
-cbc_encrypt.o: ${DES}/cbc_encrypt.c
- ${CCRULE};
-
-pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
- ${CCRULE};
-
-cksum.o: ${DES}/cksum.c
- ${CCRULE};
-
-new_rnd_key.o: ${DES}/new_rnd_key.c
- ${CCRULE};
-
-key_sched.o: ${DES}/key_sched.c
- ${CCRULE};
-
-debug_decl.o: ${DES}/debug_decl.c
- ${CCRULE};
-
-quad_cksum.o: ${DES}/quad_cksum.c
- ${CCRULE};
-
-key_parity.o: ${DES}/key_parity.c
- ${CCRULE};
-
-weak_key.o: ${DES}/weak_key.c
- ${CCRULE};
-
-strng_to_key.o: ${DES}/strng_to_key.c
- ${CCRULE};
-
-misco.o: ${DES}/misco.c
- ${CCRULE} -DDONT_INCL_MAIN;
-
-util.o: ${DES}/util.c
- ${CCRULE};
-
-error_msg.o: ${COMERR}/error_msg.c
- ${CCRULE};
-
-et_name.o: ${COMERR}/et_name.c
- ${CCRULE};
-
-com_err.o: ${COMERR}/com_err.c
- ${CCRULE};
-
-casestrcpy.o: ${UTIL}/casestrcpy.c
- ${CCRULE};
-
-base64.o: ${UTIL}/base64.c
- ${CCRULE};
-
-syscall.o: ${SYS}/syscall.s
- case "$(SYS_NAME)" in \
- sun4x_5*) \
- /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
- as -o syscall.o syscall.ss; \
- rm syscall.ss;; \
- sgi_* | ppc_darwin* ) \
- ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
- alpha_dux?? ) \
- ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
- ${AS} -o syscall.o syscall.i; \
- rm -f syscall.ss syscall.i;; \
- *fbsd* ) \
- touch syscall.o ;; \
- *) \
- /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
- as -o syscall.o syscall.ss; \
- rm syscall.ss;; \
- esac
-
-rxstat.o: ${RXSTAT}/rxstat.c
- ${CCRULE};
-
-rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
- ${CCRULE};
-
-rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
- ${CCRULE};
-
-rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
- ${CCRULE};
-
-afsint.cs.o: ${FSINT}/afsint.cs.c
- ${CCRULE};
-
-afsint.xdr.o: ${FSINT}/afsint.xdr.c
- ${CCRULE};
-
-afscbint.cs.o: ${FSINT}/afscbint.cs.c
- ${CCRULE};
-
-afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
- ${CCRULE};
-
-afsaux.o: ${FSINT}/afsaux.c
- ${CCRULE};
-
-clean:
- rm -f *.o libafsrpc*
-
-
-
-RM = /bin/rm
-DESPAR =../../../DESLIB/dest/
-libstub:
- echo "Installing libafsrpc stubs from ${DESPAR}:" `(csh -c 'cd ${DESPAR};pwd')`
- ${RM} -f ${DESTDIR}lib/libafsrpc.a
- ${INSTALL} ${DESPAR}lib/libafsrpc.a ${DESTDIR}lib/libafsrpc.a
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for AIX systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-DEFINES= -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-AR = /usr/bin/ar
-ARFLAGS = -r
-RANLIB = /bin/ranlib
-CC = xlc_r
-DEF_LIBPATH=/usr/lib/threads:/usr/lib:/lib
-EXPFILE=../nsafslib.exp
-LD_FLAGS=-bM:SRE -bE:$(EXPFILE) -berok -bnoentry -blibpath:$(DEF_LIBPATH)
-
-TEST_CFLAGS=-DAFS_PTHREAD_ENV -Daix -DAFS_AIX_ENV
-TEST_LDFLAGS=
-TEST_LIBS=-lm -lpthreads
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.a
-LIBAFSWEBKRB = nsafs.krb.a
-
-OPTF=-O
-WEBOPTS = -I../nsapi -qarch=com -DNETSCAPE_NSAPI -DAIX -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ) $(AFS)/afsl.exp
- $(RANLIB) libuafs.a
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a ${DESTDIR}/lib/afs/libsys.a
- -rm -f $(LIBAFSWEB)
- ld -o $(LIBAFSWEB) $(LD_FLAGS) $(AFSWEBOBJ) ${DES}/libdes.a ${DESTDIR}/lib/afs/libsys.a -lm -lc
-
-##
-## Use Kerberos authentication instead of kaservers
-##
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a ${DESTDIR}/lib/afs/libsys.a
- -rm -f $(LIBAFSWEBKRB)
- ld -o $(LIBAFSWEBKRB) $(LD_FLAGS) $(AFSWEBOBJKRB) ${DES}/libdes.a ${DESTDIR}/lib/afs/libsys.a -lm -lc
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for Solaris systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-CC = cc
-DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-KOPTS=
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG} $(XCFLAGS)
-OPTF=-O
-# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV
-TEST_LDFLAGS=
-TEST_LIBS=
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}; \
- ranlib $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for Solaris systems
-#
-DBUG=-O
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-DEFINES=-DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE -D_NO_PROTO -DOSF
-KOPTS=
-DBUG=
-OPTF=-O
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG} -pthread
-WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-pthread -D_NO_PROTO -D_REENTRANT -DAFS_PTHREAD_ENV -Dosf -DAFS_OSF_ENV -DOSF
-TEST_LDFLAGS=-pthread
-TEST_LIBS=-lm
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
- ranlib $(LIBUAFS)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -all -shared -expect_unresolved "*" $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -all -shared -expect_unresolved "*" $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-#/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
-#
-# MakefileProto for Solaris systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-CC = gcc
-DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-KOPTS=
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-OPTF=-O
-# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV
-TEST_LDFLAGS=
-TEST_LIBS=
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
-cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for HP-UX systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-CC = /opt/ansic/bin/cc
-DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-OPTF=-O
-WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
-TEST_LDFLAGS=
-TEST_LIBS=-lnsl -lm -lpthread -ldld -lc
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for Solaris systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-CC = cc
-DEFINES=-D_SGI_MP_SOURCE -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-OPTF=-O
-WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV -Dirix -DAFS_SGI_ENV
-TEST_LDFLAGS=-ignore_minor
-TEST_LIBS=-lpthread -lm
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -shared $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -shared $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for Solaris systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-CC = gcc
-DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-KOPTS=
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-OPTF=-O
-# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_LINUX22_ENV
-TEST_LDFLAGS=
-TEST_LIBS=-lpthread
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# MakefileProto for Solaris systems
-#
-
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-# System specific build commands and flags
-DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
-CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
-OPTF=-O
-WEBOPTS = -KPIC -I../nsapi -DNETSCAPE_NSAPI -DSOLARIS -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-
-TEST_CFLAGS=-mt -DAFS_PTHREAD_ENV -Dsolaris -DAFS_SUN5_ENV
-TEST_LDFLAGS=
-TEST_LIBS=-lsocket -lnsl -lthread -lm -ldl
-
-LIBUAFS = libuafs.a
-LIBAFSWEB = nsafs.so
-LIBAFSWEBKRB = nsafs.krb.so
-
-include Makefile.common
-
-setup_common:
- -rm -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: setup_common
- set UAFS; $(MKDIR_IF_NEEDED)
- -rm -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-setup_nsafs: setup_common
- set AFSWEB; $(MKDIR_IF_NEEDED)
- -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS)
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
-$(LIBUAFS): $(UAFSOBJ)
- -rm -f $(LIBUAFS)
- $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
-
-$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
- -rm -f $(LIBAFSWEB)
- ${LD} -G -M../mapfile -o $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
-
-
-$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) $(DES)/libdes.a
- -rm -f $(LIBAFSWEBKRB)
- ${LD} -G -M../mapfile -o $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-COMPONENT=log
-include ../config/Makefile.${SYS_NAME}
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include -I${DESTDIR}include/afs
-utilib=${DESTDIR}lib/afs/util.a
-
-CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS} ${DBUG}
-
-PROGRAMS= unlog tokens tokens.krb kseal
-
-INCLS=${SRCDIR}include/afs/auth.h ${SRCDIR}include/rx/rx.h \
-${SRCDIR}include/rx/xdr.h ${SRCDIR}include/des.h ${SRCDIR}include/rx/rxkad.h \
-${SRCDIR}include/afs/cellconfig.h
-
-LIBRARIES= ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/util.a
-KLIBRARIES= ${SRCDIR}lib/afs/libauth.krb.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/util.a
-
-include ../config/Makefile.version
-
-# top-level options
-
-all: ${PROGRAMS}
-
-install: all
- ${INSTALL} -s unlog tokens tokens.krb ${DESTDIR}bin
- ${INSTALL} -s tokens tokens.krb ${DESTDIR}root.server/usr/afs/bin
- ${INSTALL} -s kseal ${DESTDIR}etc
-
-lint: log.c passwd.c unlog.c testlog.c
- lint ${INCDIRS} log.c
- lint ${INCDIRS} unlog.c
- lint ${INCDIRS} passwd.c
-
-clean:
- rm -f *.o log passwd unlog tokens kseal core AFS_component_version_number.c tokens.krb
-
-beancount:
- wc -l log.c passwd.c unlog.c
-
-# programs
-
-kseal: kseal.o ${LIBRARIES}
- ${CC} -o kseal kseal.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
-
-log: log.o ${LIBRARIES}
- ${CC} -o log log.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
-
-unlog: unlog.o ${LIBRARIES}
- ${CC} -o unlog unlog.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
-
-passwd: passwd.o ${LIBRARIES}
- ${CC} -o passwd passwd.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
-
-tokens: tokens.o ${LIBRARIES}
- ${CC} -o tokens tokens.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
-
-tokens.krb: tokens.o ${KLIBRARIES}
- ${CC} -o tokens.krb tokens.o ${KLIBRARIES} ${XLIBS} ${CFLAGS}
-
-# objects
-
-kseal.o: kseal.c ${INCLS} AFS_component_version_number.c
-unlog.o: unlog.c AFS_component_version_number.c
-tokens.o: tokens.c ${SRCDIR}include/rx/xdr.h AFS_component_version_number.c
-#log.o: log.c ${SRCDIR}include/afs/comauth.h ${SRCDIR}include/r/xdr.h
-#passwd.o: passwd.c ${SRCDIR}include/afs/comauth.h ${SRCDIR}include/r/xdr.h ${SRCDIR}include/r/r.h
-
-test:
- cd test; $(MAKE)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include -I${DESTDIR}include/afs -I${BACKDIR}include/afs
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -lauth -lrxkad -ldes -lsys -lrx -llwp -lcmd ${utilib} ${XLIBS}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-# top-level options
-system all test: testlog gettoktest
-
-lint:
- lint ${INCDIRS} testlog.c
- lint ${INCDIRS} gettoktest.c
-
-clean:
- rm -f *.o testlog gettoktest core
-
-testlog: testlog.o
- ${CC} -o testlog testlog.o ${CFLAGS}
-
-gettoktest: gettoktest.o
- ${CC} -o gettoktest gettoktest.o ${CFLAGS}
-
+++ /dev/null
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley. The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission. THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.1 (Berkeley) 10/18/88
-#
-
-COMPONENT=login
-include ../config/Makefile.${SYS_NAME}
-
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-KAFSLIBS = ${LIBDIR}afs/libkauth.krb.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.krb.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-INCLUDES = -I${TOP_SRCDIR}/config -I${DESTDIR}include -I/usr/include -I/usr/include/sys
-CFLAGS= -g ${XCFLAGS} ${INCLUDES}
-LIBC= /lib/libc.a
-SRCS= login.c
-OBJS= login.o setenv.o getenv.o libutil.a
-KOBJS= login.krb.o setenv.o getenv.o libutil.a
-LIBS= ${AFSLIBS}
-KLIBS= ${KAFSLIBS}
-SLIBS= ${AFSLIBS} ${LIBC}
-SKLIBS= ${KAFSLIBS} ${LIBC}
-MAN=
-UTILOBJS = util_login.o util_logout.o util_logwtmp.o
-
-include ../config/Makefile.version
-
-all: login login.krb
-
-login: ${OBJS} ${LIBS}
- case ${SYS_NAME} in \
- sun4x_5? ) ${CC} -g -o $@ ${CFLAGS} ${OBJS} -lc ${LIBS} ${XLIBS} -lcmd;;\
- *) ${CC} -g -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;;\
- esac ;
-
-login.krb: ${KOBJS} ${KLIBS}
- case ${SYS_NAME} in \
- sun4x_5? ) ${CC} -g -o $@ ${CFLAGS} ${KOBJS} -lc ${KLIBS} ${XLIBS} -lcmd;;\
- *) ${CC} -g -o $@ ${CFLAGS} ${KOBJS} ${KLIBS} ${XLIBS} ;;\
- esac ;
-
-libutil.a : ${UTILOBJS}
- @rm -f $@
- ar cru $@ ${UTILOBJS}
- ${RANLIB} $@
-
-login.o: login.c AFS_component_version_number.c
- ${CC} ${CFLAGS} -c login.c
-
-login.krb.o: login.c
- ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c login.c
- mv login.o login.krb.o
-
-clean:
- rm -f ${OBJS} core login AFS_component_version_number.c
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN} all
- ${INSTALL} -s login ${DESTDIR}bin/login
- ${INSTALL} -s login.krb ${DESTDIR}bin/login.krb
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
-
-system: install
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=lwp
-include ../config/Makefile.${SYS_NAME}
-
-# this is important code, so let's optimize it. The optimizer aggravates any
-# subtle bugs that may have been introduced in process.s, be warned!
-OPTIMIZE=${LWP_OPTMZ}
-
-CFLAGS=${OPTIMIZE} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-include ../config/Makefile.version
-
-LIBOBJS=lwp.o process.o lock.o iomgr.o timer.o fasttime.o preempt.o \
- waitkey.o threadname.o AFS_component_version_number.o
-LIBTOBJS=tlwp.o process.o lock.o tiomgr.o timer.o fasttime.o preempt.o AFS_component_version_number.o pthread.o threadname.o
-
-noversion: install
-
-#
-# The lwp library
-#
-liblwp.a : ${LIBOBJS}
- -rm -f liblwp.a
- $(AR) rv liblwp.a ${LIBOBJS}
- $(RANLIB) liblwp.a
-
-libtlwp.a : ${LIBTOBJS}
- -rm -f libtlwp.a
- $(AR) rv libtlwp.a ${LIBTOBJS}
- $(RANLIB) libtlwp.a
-
-tlwp.o: lwp.c lwp.h
- ${CC} ${CFLAGS} -DUSE_SOLARIS_THREADSX -c lwp.c
- mv lwp.o tlwp.o
-
-tiomgr.o: iomgr.c lwp.h
- ${CC} ${CFLAGS} -DUSE_SOLARIS_THREADSX -c iomgr.c
- mv iomgr.o tiomgr.o
-
-pthread.o : pthread.c
- ${CC} ${CFLAGS} -DUSE_SOLARIS_THREADSX -c pthread.c
-
-process.s:
- # This is required so sgi_64+ does not try to build this file.
- echo Nothing to be done for process.s
-
-process.o : process.s process.c
- case "$(SYS_NAME)" in \
- pmax_he1) \
- $(CC) -c -I${SRCDIR}include process.s;; \
- sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5? | sunx86_54) \
- /usr/ccs/lib/cpp -P -I${SRCDIR}include process.s process.ss; \
- ${AS} process.ss -o process.o; \
- rm process.ss ;; \
- sgi_5* ) \
- $(CC) -c -I${SRCDIR}include -KPIC -G0 process.s;; \
- sgi_61 | sgi_62 | sgi_63 ) \
- $(CC) -c ${XCFLAGS} -I${SRCDIR}include -KPIC -G0 process.s;; \
- s390*) \
- /lib/cpp -P -I${SRCDIR}include process.s >process.ss; \
- ${AS} -ahlns process.ss -o process.o >process.lst; \
- rm process.ss ;; \
- ppc_darwin* ) \
- $(CC) -c ${XCFLAGS} -I${SRCDIR}include process.s;; \
- i386_fbsd* ) \
- /usr/bin/cpp -P process.fbsd.s > process.ss; \
- ${AS} -o process.o process.ss; \
- rm process.ss ;; \
- hp* | *_linux* | sgi_64 | sgi_65 ) \
- ${CC} ${CFLAGS} -c process.c;; \
- ncrx86_*) \
- /usr/ccs/lib/cpp -P -I${SRCDIR}include process.s process.ss; \
- ${AS} -o process.o process.ss; \
- rm process.ss ;; \
- alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
- ${AS} -v -P -DOSF -I${SRCDIR}include -DASSEMBLER process.s; \
- ${AS} -v process.i -o process.o;; \
- hp_ux110 ) \
- ${CC} ${CFLAGS} -c process.c;; \
- *) \
- /lib/cpp -P -I${SRCDIR}include process.s process.ss; \
- ${AS} process.ss -o process.o; \
- rm process.ss ;; \
- esac
-
-iomgr.o : iomgr.c lwp.h timer.h
- ${CC} -c ${CFLAGS} iomgr.c
-
-preempt.o : preempt.c lwp.h preempt.h
-lwp.o : lwp.c lwp.h
- case "$(SYS_NAME)" in \
- rs_aix*) \
- $(CC) -I${TOP_SRCDIR}/config -I${SRCDIR}include -c lwp.c;; \
- *) \
- $(CC) ${CFLAGS} -c lwp.c;; \
- esac
-lock.o : lock.c lock.h lwp.h
-timer.o : timer.c
-fasttime.o : fasttime.c
-threadname.o : threadname.c
-
-exc_handling.o : exc_handling.c
-
-#
-# tests
-#
-rw: rw.o liblwp.a DEST/lib/afs/util.a
- ${CC} ${CFLAGS} -o rw rw.o liblwp.a DEST/lib/afs/util.a
-
-rw.o: rw.c
- ${CC} ${CFLAGS} -c rw.c
-
-
-#
-# Installation
-#
-all: system
-system: install
-
-kinstall ukinstall webinstall:
- @echo No kernel source here.
-
-install: liblwp.a #libtlwp.a
- ${INSTALL} liblwp.a ${DESTDIR}lib
- ${INSTALL} *.h ${DESTDIR}include
- case ${SYS_NAME} in \
- sun4_52 | sun4_53 | sun4c_52 | sun4c_53 | sun4m_52 | sun4m_53 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5?) \
- echo "Don't install libtrx.a for ${SYS_NAME}" ;; \
- * ) \
- echo "Don't install libtrx.a for ${SYS_NAME}" ;; \
- esac
-clean:
- rm -f *.o *.a core AFS_component_version_number.c
-
-beancount:
- wc -l *.[ch]
-
-includes:
- ${INSTALL} *.h ${DESTDIR}include
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/lwp.c,v 1.8 2001/07/15 07:22:29 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/lwp.c,v 1.9 2001/09/11 15:48:26 hartmans Exp $");
#include <stdlib.h>
#include <stdio.h>
{
PROCESS lp;
assert(lp = (PROCESS) malloc(sizeof (*lp)));
- bzero((char *) lp, sizeof(*lp));
+ memset((char *) lp, 0, sizeof(*lp));
if (!name) {
char temp[100];
static procnum;
#if !defined(KERNEL) && !defined(_KMEMUSER) && !defined(AFS_PTHREAD_ENV)
#include <afs/param.h>
+#ifdef HAVE_UCONTEXT_H
+#include <ucontext.h>
+#else
#include <setjmp.h>
+#endif
#define LWP_SUCCESS 0
#define LWP_EBADPID -1
#else
struct lwp_context { /* saved context for dispatcher */
char *topstack; /* ptr to top of process stack */
-#if defined(sparc) && !defined(__linux__)
-#ifdef save_allregs
+#ifdef HAVE_UCONTEXT_H
+ ucontext_t ucontext;
+ int state;
+#else /* !HAVE_UCONTEXT_H */
+# if defined(sparc) && !defined(__linux__)
+# ifdef save_allregs
int globals[7+1+32+2+32+2]; /* g1-g7, y reg, f0-f31, fsr, fq, c0-c31, csr, cq. */
-#else
+# else
int globals[8]; /* g1-g7 and y registers. */
-#endif
-#endif
+# endif
+# endif
jmp_buf setjmp_buffer;
+#endif /* HAVE_UCONTEXT_H */
};
struct rock
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/preempt.c,v 1.7 2001/07/15 07:22:29 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/preempt.c,v 1.8 2001/09/11 15:48:27 hartmans Exp $");
#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DJGPP_ENV)
itv.it_interval = itv.it_value = *slice;
}
- bzero((char *)&action, sizeof(action));
+ memset((char *)&action, 0, sizeof(action));
action.sa_sigaction = AlarmHandler;
action.sa_flags = SA_SIGINFO;
itv.it_value.tv_sec = itv.it_value.tv_usec = 0;
- bzero((char *)&action, sizeof(action));
+ memset((char *)&action, 0, sizeof(action));
action.sa_handler = SIG_DFL;
if ((setitimer(ITIMER_REAL, &itv, (struct itimerval *) 0) == -1) ||
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/process.c,v 1.7 2001/07/15 07:22:30 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/lwp/process.c,v 1.8 2001/09/11 15:48:27 hartmans Exp $");
#include <stdio.h>
#include <assert.h>
extern char PRE_Block; /* used in lwp.c and process.s */
#endif
+#ifdef HAVE_UCONTEXT_H
+
+afs_int32
+savecontext(ep, savearea, newsp)
+char (*ep)();
+struct lwp_context *savearea;
+char* newsp;
+{
+#if defined(AFS_IA64_LINUX20_ENV)
+ register unsigned long sp __asm__("r12");
+#else
+#error "You need to update stack pointer register for this platform"
+#endif
+
+ PRE_Block = 1;
+
+ savearea->state = 0;
+ getcontext(&savearea->ucontext);
+ savearea->topstack = sp;
+ switch (savearea->state)
+ {
+ case 0:
+ if (newsp)
+ {
+ ucontext_t thread;
+
+ getcontext(&thread);
+ thread.uc_stack.ss_sp = newsp - AFS_LWP_MINSTACKSIZE + sizeof(void *) + sizeof(void *);
+ thread.uc_stack.ss_size = AFS_LWP_MINSTACKSIZE - sizeof(void *);
+ makecontext(&thread, ep, 0);
+ setcontext(&thread);
+ }
+ else
+ (*ep)();
+ break;
+ case 2:
+ break;
+ }
+ return 0;
+}
+
+void
+returnto(savearea)
+struct lwp_context *savearea;
+{
+ PRE_Block = 0;
+
+ savearea->state = 2;
+ setcontext(&savearea->ucontext);
+}
+
+#else
+
/*
* Magic stack pointer
*/
return 0;
}
+#endif
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-OPTIMIZE= -g
-
-INCDIRS= -I.. -I${DESTDIR}include
-LIBS= ../liblwp.a
-
-include ../../config/Makefile.${SYS_NAME}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${XCFLAGS}
-
-system noversion: test
-
-test: test.c liblwp.a
- ${CC} -p ${CFLAGS} test.c -o test ${LIBS}
-
-testlwp.o : testlwp.c
- ${CC} -c -p ${CFLAGS} testlwp.c ${LIBS}
-
-
-selclient.o: selclient.c seltest.h
- ${CC} ${CFLAGS} -c -g selclient.c
-
-selclient: selclient.o selsubs.o ${LIBS}
- ${CC} ${CFLAGS} -g -o selclient selclient.o selsubs.o ${LIBS}
-
-selserver.o: selserver.c seltest.h
- ${CC} ${CFLAGS} -c -g selserver.c
-
-selserver: selserver.o selsubs.o ${LIBS}
- ${CC} ${CFLAGS} -g -o selserver selserver.o selsubs.o ${LIBS}
-
-selsubs.o: selsubs.c seltest.h
- ${CC} ${CFLAGS} -g -c selsubs.c
-
-
-test_key: test_key.o
- ${CC} ${CFLAGS} -g -o test_key test_key.o \
- ../liblwp.a DEST/lib/afs/util.a
-
-
-
-clean:
- -rm -f *.o *.a test testlwp selclient selserver core
+++ /dev/null
-#
-# (C) Copyright 10/17/86 by Carnegie Mellon University
-#
-SHELL = /bin/sh
-DESTDIR=DEST/
-SRCDIR=DEST/
-CFLAGS= ${OPTMZ} ${XCFLAGS}
-LIBS = ${XLIBS}
-
-PROGRAM=mpp
-MANUAL=mpp.1
-
-COMPONENT=mpp
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-system: install
-
-all: ${PROGRAM}
-
-install: ${PROGRAM}
- ${INSTALL} -c -s -m 755 ${PROGRAM} ${DESTDIR}etc
-
-installdoc: ${MANUAL}
- ${INSTALL} -c ${MANUAL} ${DESTDIR}man/man1
-
-clean:
- -rm -f core a.out *.o *.out ${PROGRAM} AFS_component_version_number.c
-
-${PROGRAM}: AFS_component_version_number.c
- ${CC} ${CFLAGS} $@.c -o $@ ${LIBS}
-
-mpp: mpp.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=ntp
-include ../config/Makefile.${SYS_NAME}
-
-INCPATH= -I${TOP_SRCDIR}/config -I${DESTDIR}include
-BINDIR=/usr/local/etc
-LINKDIR=/etc
-LIBS= ${DESTDIR}lib/afs/util.a
-
-VERS=3.4
-
-#CC=gcc -g -W -Wall
-#afs#CC=cc -g -W
-
-#afs#INSTALL= install -c
-
-#
-# FEATURES include:
-# DEBUG - include DEBUG code
-# BROADCAST_NTP - experimental support for broadcast NTP
-# XADJTIME2 - experimental support for second-order clock adjustment
-# system call.
-# SETTICKADJ - attempt to modify kernel's `tickadj' variable at run time.
-# REFCLOCK - define if you have a reference clock attached to your
-# machine. (untested by UMD)
-# PSTI - define along with REFCLOCK if you have a PSTI clock attached
-# that you'd like to use a a reference clock.
-# XTAL=0 - for line freq clock, or
-# XTAL=1 for crystal controlled clock (default)
-# LOG_NTP=foo - to change the syslog facility. You could specify
-# something like -DLOG_NTP=LOG_LOCAL3 to log into the
-# LOG_LOCAL3 syslog facility
-# NOSWAP - allow use of plock() to prevent swapping
-#
-
-#FEATURES= -DBROADCAST_NTP -DSETTICKADJ -DDEBUG
-#FEATURES= -DSETTICKADJ -DDEBUG -DREFCLOCK -DPSTI
-#afs#FEATURES= -DSETTICKADJ -DDEBUG -DREFCLOCK
-#afs# # SETTICKADJ is set in ntpd.c on SUNs.
-FEATURES= -DDEBUG -DREFCLOCK
-
-# for afs
-DEFINES= -DGENERIC_UNS_BUG -DSUN_FLT_BUG
-
-# for 4.3 BSD
-#afs#DEFINES=
-
-# for Sun
-#DEFINES= -DSUN_FLT_BUG
-
-# for Ultrix 2.0/2.2
-# don't forget to fix the broken definition of inet_addr in netdb.h
-# it should be declared as a u_long not a in_addr (the doc is wrong also)
-# VAX_COMPILER_FLT_BUG is defined for pcc which doesn't know how to
-# convert an unsigned long into a float/double
-#DEFINES= -DVAX_COMPILER_FLT_BUG -DNOSWAP
-
-#
-# for a NeXT system, define these pre-processor symbols.
-#DEFINES=-DSUN_FLT_BUG -DGENERIC_UNS_BUG
-
-CFLAGS= -O ${DEFINES} ${FEATURES} ${INCPATH} ${XCFLAGS}
-LDFLAGS= ${XLDFLAGS}
-#
-# Header files
-#
-HDRS= ntp.h patchlevel.h
-
-# Source files
-#
-NTPDSRC= ntpd.c ntpsubs.c ntp_proto.c ntp_sock.c ntp_adjust.c read_local.c \
- read_psti.c
-SRCS= ntp.c ntpdc.c test.c ${NTPDSRC}
-
-# Object files
-#
-NTPDOBJ= ntpd.o ntpsubs.o ntp_proto.o ntp_sock.o ntp_adjust.o read_local.o \
- read_psti.o
-OBJS= ntp.o ntpdc.o test.o ${NTPDOBJ}
-
-
-DIST= README Makefile man ${SRCS} ${HDRS} ntp.conf test.c extract.pl stat.pl
-PROGS= ntp ntpd ntpdc ntest
-
-include ../config/Makefile.version
-
-ntp.o: AFS_component_version_number.c
-ntpd.o: AFS_component_version_number.c
-ntpdc.o: AFS_component_version_number.c
-read_psti.o: AFS_component_version_number.c
-
-all: ${PROGS} runntp
- -@./ntest
-
-ntp: ntp.o ntpsubs.o
- ${CC} ${LDFLAGS} -o ntp ntp.o ntpsubs.o ${LIBS} ${XLIBS} ${XLIBELFA}
-
-ntpd: ${NTPDOBJ}
- case ${SYS_NAME} in \
- sgi_*) \
- ${CC} ${LDFLAGS} -o ntpd ${NTPDOBJ} ${LIBS} -lelf ;; \
- *) \
- ${CC} ${LDFLAGS} -o ntpd ${NTPDOBJ} ${LIBS} ${XLIBS} ${XLIBELFA} ;; \
- esac
-
-
-ntpdc: ntpdc.o
- ${CC} ${LDFLAGS} -o ntpdc ntpdc.o ${LIBS} ${XLIBS} ${XLIBELFA}
-
-ntest: test.o ntpsubs.o
- ${CC} ${LDFLAGS} -o ntest test.o ntpsubs.o ${LIBS} ${XLIBS} ${XLIBELFA}
- ./ntest
-
-sock_test: ntp_sock.c AFS_component_version_number.o
- ${CC} ${LDFLAGS} -DTEST -o sock_test ntp_sock.c ${LIBS} ${XLIBS} ${XLIBELFA}
-
-${OBJS}: ntp.h # Makefile
-ntpd.o: patchlevel.h
-
-# for afs
-
-system: install
-
-AFSLIBS= ${DESTDIR}lib/afs/libauth.a ${DESTDIR}lib/afs/libcom_err.a ${DESTDIR}lib/afs/util.a
-
-runntp.o: runntp.c ${DESTDIR}/include/afs/cellconfig.h AFS_component_version_number.c
- ${CC} ${CFLAGS} -I${DESTDIR}include -c runntp.c ${AFSLIBS} ${XLIBS}
-
-runntp: runntp.o ${AFSLIBS}
- ${CC} ${LDFLAGS} -o runntp runntp.o ${AFSLIBS} ${XLIBS}
-
-install: AFS_component_version_number.c ntest ntpd ntp ntpdc runntp
- ${INSTALL} ntpd ${DESTDIR}root.server/usr/afs/bin/ntpd
- ${INSTALL} ntpdc ${DESTDIR}root.server/usr/afs/bin/ntpdc
- ${INSTALL} ntp ${DESTDIR}etc/ntp
- ${INSTALL} ntpdc ${DESTDIR}etc/ntpdc
- ${INSTALL} runntp ${DESTDIR}root.server/usr/afs/bin/runntp
-
-#
-# If you don't want a symlink to the daemon, comment out the next line
-# make ${MFLAGS} DESTDIR=${DESTDIR} install-link
-
-install-man:
- cd man; $(MAKE) ${MFLAGS} DESTDIR=${DESTDIR} install
-
-install-link:
- rm -f ${BINDIR}/${LINKDIR}/ntpd
- ln -s ${BINDIR}/ntpd ${DESTDIR}/${LINKDIR}/ntpd
-
-print:
- enscript -2r -p - Makefile ${HDRS} ${SRCS} | qpr -q lps40
-
-clean:
- @rm -f *.o *~ core ${PROGS} ntp.tar ntest sock_test AFS_component_version_number.c
-
-lint:
- lint -bac ${DEFINES} ${NTPDSRC}
-
-dist: ntp.tar.Z
- mv ntp.tar.Z /usr/ftp/pub/ntp.${VERS}/ntp.tar.Z
-
-test-dist: ntp.tar.Z
- mv ntp.tar.Z /usr/ftp/pub/ntp.${VERS}/ntp-test.tar.Z
-
-ntp.tar.Z: ${DIST}
- rm -f ntp.tar ntp.tar.Z
- tar cf ntp.tar ${DIST}
- compress ntp.tar
-
-
-depend:
- mkdep $(CFLAGS) $(SRCS)
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for the null library.
-DESTDIR=DEST/
-SRCDIR=DEST/
-SHELL=/bin/sh
-
-COMPONENT=null
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-CFLAGS = ${XCFLAGS}
-
-all: libnull.a
-
-null.o: null.c AFS_component_version_number.o
-
-libnull.a: null.o
- -rm -f $@
- ar rv $@ null.o
- $(RANLIB) $@
-
-system install noversion install.noversion version: all
- ${INSTALL} libnull.a ${DESTDIR}lib/afs
-
-clean:
- rm -f *.o *.a AFS_component_version_number.c
+++ /dev/null
-# (C) Copyright Transarc Corporation 1989
-# Licensed Materials - Property of Transarc
-# All Rights Reserved
-#
-# Makefile for package, the AFS workstation configuration tool.
-#
-
-SHELL = /bin/sh
-COMPONENT=package
-include ../config/Makefile.${SYS_NAME}
-
-INCLUDES = -I/usr/include -I${TOP_SRCDIR}/config -I${SRCDIR}include
-DBGFLAG = -UDEBUG
-CFLAGS = ${DBUG} -DKFLAG -DANDREW -DVICE $(DBGFLAG) $(INCLUDES) $(XCFLAGS)
-YFLAGS = -vd
-#LFLAGS = -ll
-LINT = lint -hp
-
-HFILES = package.h \
- validupdates.h \
- systype.h \
- globals.h
-
-SRCS = package.c \
- conftree.c \
- check.c \
- update.c \
- fileops.c \
- messages.c \
- misc.c \
- globfuncs.c
-
-TEST_SRCS = test.c \
- conftree.c \
- messages.c \
- misc.c \
- globfuncs.c
-
-OTHERSRCS = gram.y
-
-OBJS = package.o \
- gram.o \
- lex.o \
- conftree.o \
- check.o \
- update.o \
- fileops.o \
- messages.o \
- misc.o \
- globfuncs.o
-
-TEST_OBJS = test.o \
- test_gram.o \
- lex.o \
- conftree.o \
- messages.o \
- misc.o \
- globfuncs.o
-
-LIBS = ${DESTDIR}lib/afs/libsys.a \
- ${DESTDIR}lib/afs/libcmd.a \
- ${DESTDIR}lib/afs/libcom_err.a \
- ${DESTDIR}lib/librx.a \
- ${DESTDIR}lib/afs/libsys.a \
- ${DESTDIR}lib/afs/util.a \
- ${DESTDIR}lib/liblwp.a \
- ${XLIBS}
-
-include ../config/Makefile.version
-
-all : package package_test
-
-package : $(OBJS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(NON_SHARED) ${LIBS}
-
-package_test : $(TEST_OBJS)
- $(CC) $(CFLAGS) -o package_test $(TEST_OBJS) ${LIBS}
-
-package.o: package.c AFS_component_version_number.o
-test.o: test.c AFS_component_version_number.o
-
-lint : $(SRCS) gram.c lex.c test_gram.c
- $(LINT) $(SRCS) gram.c lex.c test_gram.c
- /bin/rm gram.c lex.c test_gram.c
-
-lex.c:
- -$(RM) -f lex.c
- $(LEX) -t lex.l > lex.c
-
-system : install
-
-clean :
- rm -f *.o gram.c test_gram.c core package package_test *.BAK y.output yacc.tmp yacc.acts\
- AFS_component_version_number.c lex.c y.tab.h
-
-install: package package_test
- $(INSTALL) -s -c -m 755 package ${DESTDIR}etc
- $(INSTALL) -s -c -m 755 package_test ${DESTDIR}etc
- ${INSTALL} -ns -c -m 755 makepkgfiles ${DESTDIR}etc
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# All Rights Reserved
-#
-# Permission to use, copy, modify, and distribute this software and its
-# documentation for any purpose and without fee is hereby granted,
-# provided that the above copyright notice appear in all copies and that
-# both that copyright notice and this permission notice appear in
-# supporting documentation, and that the name of IBM not be
-# used in advertising or publicity pertaining to distribution of the
-# software without specific, written prior permission.
-#
-# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
-# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-# IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
-# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
-# SOFTWARE.
-######################################################################
-
-# Make modified install
-SHELL = /bin/sh
-COMPONENT=pinstall
-include ../config/Makefile.${SYS_NAME}
-
-LIBS= ${XLIBS}
-CFLAGS= ${OPTMZ} -I${TOP_SRCDIR}/config ${XCFLAGS}
-
-include ../config/Makefile.version
-
-pinstall: install.c AFS_component_version_number.c
- case ${SYS_NAME} in \
- sgi_64 | sgi_65) \
- ${CC} -g -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
- sgi_* ) \
- $(CC) -g -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} -lmld ;; \
- *) \
- $(CC) -g -I. -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
- esac
- - [ -d test ] && ( cd test; $(MAKE) )
- - [ -d test ] && ./test/test_install
-
-${DESTDIR}bin/install: pinstall
- case ${SYS_NAME} in \
- ppc_darwin*) \
- ./pinstall -f pinstall ${DESTDIR}bin/pinstall ;;\
- *) \
- ./pinstall -f pinstall ${DESTDIR}bin/install ;;\
- esac
-
-# Note: Some rule needs to appear here so that OSF's make does not try to
-# compile install from install.c. A ";" will not work since other platforms
-# complain. That's why we use 'echo'.
-install: ${DESTDIR}bin/install
- @echo -n
-
-noversion: install
-
-kinstall ukinstall webinstall:
- @echo No kernel source here.
-
-system: install
-
-clean:
- rm -f pinstall AFS_component_version_number.c
-
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# There's really not much in here to build...
-#
-
-SRCDIR=DEST/
-DESTDIR=DEST/
-BACKDIR=../../../../PARENT/dest/
-OPTIMIZE=-O
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
-
-all test system:
- @echo "nothing to do, done"
-
-kinstall:
- @echo No kernel source here.
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-CFLAGS = $(DBUG) -I${SRCDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
-
-########################################################################
-# build libprocmgmt.a
-LIBOBJS=procmgmt_unix.o
-
-libprocmgmt.a: ${LIBOBJS} AFS_component_version_number.o
- $(RM) -f libprocmgmt.a
- $(AR) r libprocmgmt.a ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) libprocmgmt.a
-
-procmgmt_unix.o: procmgmt_unix.c procmgmt.h
-
-#######################################################################
-system: install
-
-kinstall ukinstall webinstall: install
- @echo No relevant source here.
-
-${DESTDIR}lib/afs/libprocmgmt.a: libprocmgmt.a
- ${INSTALL} $? $@
-
-
-install: ${DESTDIR}lib/afs/libprocmgmt.a
- ${INSTALL} procmgmt.h ${DESTDIR}include/afs
-
-includes:
- ${INSTALL} procmgmt.h ${DESTDIR}include/afs
-
-clean:
- $(RM) -f *.o libprocmgmt.a \
- core AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-CFLAGS = $(DBUG) -I${SRCDIR}include ${XCFLAGS}
-
-########################################################################
-# build tests
-
-LIBPMGT=DEST/lib/afs/libprocmgmt.a
-
-pmgttest: pmgttest.o $(LIBPMGT)
- $(CC) $(CFLAGS) -o pmgttest pmgttest.o $(LIBPMGT) -lm $(XLIBS)
-
-#######################################################################
-test tests: pmgttest
-
-clean:
- $(RM) -f *.o pmgttest core
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=ptserver
-include ../config/Makefile.${SYS_NAME}
-
-UKERNELDIR=../libuafs/
-RXGEN=${SRCDIR}bin/rxgen
-COMPILE_ET = ${SRCDIR}bin/compile_et
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-CFLAGS = $(DBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-INCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ptserver.h ptclient.h ptint.h ptopcodes.h pterror.h
-
-LINCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/rx/rxkad.h \
- ${SRCDIR}include/afs/auth.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ptclient.h ptint.h pterror.h
-
-LIBS = ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libsys.a
-
-auditlib=${SRCDIR}lib/afs/libaudit.a
-
-LIBOBJS=ptuser.o pterror.o ptint.cs.o ptint.xdr.o
-
-UKSRCS=ptuser.c ptclient.h pterror.c pterror.h ptserver.h
-
-include ../config/Makefile.version
-
-
-clean:
- $(RM) -f *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
- libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
- core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
-
-ptserver: ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${auditlib}
- $(CC) ${CFLAGS} -o ptserver ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${XLIBS} ${auditlib}
-
-ptserver.o: ptserver.c ${INCLS} AFS_component_version_number.c
-
-ptutils.o: ptutils.c ${INCLS}
-
-ptprocs.o: ptprocs.c ${INCLS}
-
-utils.o: utils.c ${INCLS}
-
-ptint.ss.o: ptint.ss.c ptint.xdr.c ptint.xg
-ptint.cs.o: ptint.cs.c ptint.xdr.c ptint.xg
-ptint.xdr.o: ptint.xdr.c ptint.h ptint.xg
-
-ptint.ss.c ptint.cs.c ptint.xdr.c ptint.h: ptint.xg
- ${RXGEN} -x ptint.xg
-
-Kptint.cs.c: ptint.xg Kptint.h
- ${RXGEN} -x -k -C -o Kptint.cs.c ptint.xg
-
-Kptint.xdr.c: ptint.xg
- ${RXGEN} -x -k -c -o Kptint.xdr.c ptint.xg
-
-Kptint.h: ptint.xg
- ${RXGEN} -x -k -h -o Kptint.h ptint.xg
-
-display.o: display.c ${INCLS}
-
-db_verify.o: db_verify.c ${INCLS} AFS_component_version_number.c
-
-db_verify: db_verify.o pterror.o display.o $(LIBS)
- $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS} ${SRCDIR}lib/afs/libcmd.a
-
-ptclient: ptclient.o display.o libprot.a $(LIBS)
- $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
-
-ptclient.o: ptclient.c ${INCLS} AFS_component_version_number.c
-
-ptuser.o: ptuser.c ${LINCLS}
-
-pterror.h pterror.c: pterror.et
- $(RM) -f pterror.h pterror.c; ${COMPILE_ET} pterror
-
-libprot.a: ${LIBOBJS} AFS_component_version_number.o
- $(RM) -f libprot.a
- $(AR) r libprot.a ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) libprot.a
-
-pts: pts.o libprot.a ${SRCDIR}lib/afs/libcmd.a $(LIBS)
- $(CC) ${CFLAGS} -o pts pts.o ${SRCDIR}lib/afs/libcmd.a libprot.a ${LIBS} ${XLIBS}
-
-pts.o: pts.c ${LINCLS} ${SRCDIR}include/afs/cmd.h AFS_component_version_number.c
-
-readgroup: readgroup.o libprot.a $(LIBS)
- $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
-
-readgroup.o: readgroup.c ${LINCLS} AFS_component_version_number.c
-
-readpwd: readpwd.o libprot.a $(LIBS)
- $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
-
-readpwd.o: readpwd.c ${LINCLS} AFS_component_version_number.c
-
-testpt: testpt.o libprot.a ${SRCDIR}lib/afs/libcmd.a $(LIBS)
- case "$(SYS_NAME)" in \
- ppc_darwin_12 ) \
- $(CC) ${CFLAGS} -o testpt testpt.o ${SRCDIR}lib/afs/libcmd.a libprot.a $(LIBS) ;; \
- * ) \
- $(CC) ${CFLAGS} -o testpt testpt.o -lm ${SRCDIR}lib/afs/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
- esac
-
-testpt.o: testpt.c ${INCLS} ${SRCDIR}include/afs/cmd.h AFS_component_version_number.c
-
-pt_util: pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS)
- $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS) ${XLIBS}
-
-ubik.o: ubik.c ${INCLS}
-
-system: install
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall: ${UKSRCS} Kptint.h Kptint.cs.c Kptint.xdr.c
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} Kptint.h ${UKERNELDIR}afsint/ptint.h
- ${INSTALL} Kptint.cs.c ${UKERNELDIR}afsint/ptint.cs.c
- ${INSTALL} Kptint.xdr.c ${UKERNELDIR}afsint/ptint.xdr.c
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-all: ptclient libprot.a pts db_verify readgroup readpwd testpt pt_util
-
-${DESTDIR}root.server/usr/afs/bin/ptserver: ptserver
- ${INSTALL} $? $@
-
-${DESTDIR}bin/pts ${DESTDIR}root.server/usr/afs/bin/pts: pts
- ${INSTALL} $? $@
-
-${DESTDIR}root.server/usr/afs/bin/pt_util: pt_util
- ${INSTALL} $? $@
-
-${DESTDIR}lib/afs/libprot.a: libprot.a
- ${INSTALL} $? $@
-
-
-install: all ukinstall ${DESTDIR}root.server/usr/afs/bin/ptserver ${DESTDIR}root.server/usr/afs/bin/pts ${DESTDIR}bin/pts ${DESTDIR}lib/afs/libprot.a ${DESTDIR}root.server/usr/afs/bin/pt_util
- ${INSTALL} libprot.a ${DESTDIR}lib/afs/libprot.a
- ${INSTALL} ptserver.h ptint.h pterror.h ptclient.h ${DESTDIR}include/afs
- ${INSTALL} ptserver.h ${DESTDIR}include/afs/prserver.h
- ${INSTALL} ptint.h ${DESTDIR}include/afs/print.h
- ${INSTALL} pterror.h ${DESTDIR}include/afs/prerror.h
- ${INSTALL} ptclient.h ${DESTDIR}include/afs/prclient.h
- ${INSTALL} -f db_verify ${DESTDIR}etc/prdb_check
- echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_pt' >> ${DESTDIR}include/afs/prerror.h
-
-libinstall: ${DESTDIR}lib/afs/libprot.a
- ${INSTALL} libprot.a ${DESTDIR}lib/afs/libprot.a
- ${INSTALL} ptserver.h ptint.h pterror.h ptclient.h ${DESTDIR}include/afs
- ${INSTALL} ptserver.h ${DESTDIR}include/afs/prserver.h
- ${INSTALL} ptint.h ${DESTDIR}include/afs/print.h
- ${INSTALL} pterror.h ${DESTDIR}include/afs/prerror.h
- ${INSTALL} ptclient.h ${DESTDIR}include/afs/prclient.h
-
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/ptserver.c,v 1.4 2001/07/15 07:22:31 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/ptserver/ptserver.c,v 1.5 2001/09/11 15:48:32 hartmans Exp $");
#include <afs/stds.h>
#ifdef AFS_AIX32_ENV
fprintf (stderr, "ptserver: couldn't get address of this host.\n");
PT_EXIT(1);
}
- bcopy(th->h_addr,&myHost,sizeof(afs_int32));
+ memcpy(&myHost, th->h_addr, sizeof(afs_int32));
/* get list of servers */
code = afsconf_GetExtendedCellInfo(prdir,(char *)0,"afsprot",
+++ /dev/null
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley. The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission. THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.1 (Berkeley) 9/20/88
-#
-SHELL=/bin/sh
-include ../config/Makefile.${SYS_NAME}
-
-LIBC= /lib/libc.a
-SRCS= rcp.c
-OBJS= rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
-COMPONENT=rcp
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${DESTDIR}include ${XCFLAGS}
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a\
- ${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
- ${LIBDIR}librx.a ${LIBDIR}liblwp.a ${DESTDIR}lib/librxkad.a\
- ${DESTDIR}lib/libdes.a ${LIBDIR}afs/libcmd.a \
- ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-LIBRES =
-LIBS = ${AFSLIBS} ${LIBRES}
-MAN=
-
-include ../config/Makefile.version
-
-all: rcp
-
-rcp.o: AFS_component_version_number.c
-
-system: install
-
-rcp: ${OBJS} ${LIBS}
- set -x; \
- case "${SYS_NAME}" in \
- alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
- ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
- * ) \
- ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
- esac
-
-../rsh/rcmd.o: ../rsh/rcmd.c
- (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
-
-../rsh/herror.o: ../rsh/herror.c
- (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
-
-../inetd/ta-rauth.o: ../inetd/ta-rauth.c
- (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
-
-clean:
-clean:
- rm -f ${OBJS} core rcp AFS_component_version_number.c
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN} all
- ${INSTALL} rcp ${DESTDIR}bin/rcp
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+++ /dev/null
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley. The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission. THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.3 (Berkeley) 9/20/88
-#
-
-SHELL=/bin/sh
-COMPONENT=rlogind
-include ../config/Makefile.${SYS_NAME}
-
-LIBC= /lib/libc.a
-SRCS= rlogind.c ../rsh/rcmd.c ../rsh/herror.c ../inetd/ta-rauth.c
-OBJS= rlogind.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
-MAN=
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a\
- ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/librxkad.a ${DESTDIR}lib/libdes.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a ${LIBDIR}afs/libaudit.a
-RES =
-LIBS = ../login/libutil.a ${RES} ${AFSLIBS}
-ALIBS= ${AFSLIBS}
-CFLAGS= ${OPTMZ} -I${TOP_SRCDIR}/config -I${DESTDIR}include ${XCFLAGS}
-
-include ../config/Makefile.version
-
-all: rlogind rexecd
-
-system: install
-
-rlogind: ${OBJS} ${LIBS} ../login/libutil.a
- case ${SYS_NAME} in \
- rs_aix*) \
- ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -ls ;; \
- hp_ux110) \
- ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -lsec ;; \
- *) ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;;\
- esac ;
-
-rlogind.o: rlogind.c AFS_component_version_number.c
-
-rexecd.o: rexecd.c AFS_component_version_number.c
-
-rexecd: rexecd.o ${ALIBS}
- case ${SYS_NAME} in \
- rs_aix*) \
- ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} -ls ;; \
- *) ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} ;;\
- esac ;
-
-
-../login/libutil.a : ../login/util_login.c ../login/util_logout.c ../login/util_logwtmp.c
- ( cd ../login ; $(MAKE) libutil.a )
-
-../rsh/rcmd.o : ../rsh/rcmd.c
- (cp AFS_component_version_number.c ../rsh/AFS_component_version_number.c ; cd ../rsh ; $(MAKE) rsh.o )
-
-../rsh/herror.o : ../rsh/herror.c
- ( cd ../rsh ; $(MAKE) herror.o )
-
-clean:
- rm -f ${OBJS} core rlogind AFS_component_version_number.c
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN} all
- ${INSTALL} -s -m 755 rlogind ${DESTDIR}etc/rlogind
- ${INSTALL} -s -m 755 rexecd ${DESTDIR}etc/rexecd
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+++ /dev/null
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley. The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission. THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.1 (Berkeley) 9/20/88
-#
-SHELL=/bin/sh
-COMPONENT=rsh
-include ../config/Makefile.${SYS_NAME}
-
-LIBDIR = ${DESTDIR}lib/
-INCLUDES= -I${TOP_SRCDIR}/config -I${SRCDIR}include
-CFLAGS= ${DBUG} ${INCLUDES} ${XCFLAGS}
-LIBC= /lib/libc.a
-OBJS= rcmd.o ../inetd/ta-rauth.o herror.o
-MAN=
-SRCS= rsh.c rcmd.c ../inetd/ta-rauth.c herror.c AFS_component_version_number.c
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a\
- ${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
- ${LIBDIR}librx.a ${LIBDIR}liblwp.a ${DESTDIR}lib/librxkad.a\
- ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}afs/libcmd.a \
- ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-LIBS = ${AFSLIBS}
-
-include ../config/Makefile.version
-
-all: rlogin rsh
-
-system: install
-
-rsh: rsh.o ${OBJS} ${LIBS}
- ${CC} -o $@ ${CFLAGS} rsh.o ${OBJS} ${LIBS} ${XLIBS}
-
-rlogin: rlogin.o ${OBJS} ${LIBS}
- ${CC} -o $@ ${CFLAGS} rlogin.o ${OBJS} ${LIBS} ${XLIBS}
-
-rlogin.o: rlogin.c AFS_component_version_number.c
-rsh.o: rsh.c AFS_component_version_number.c
-
-../rlogind/herror.o: ../rlogind/herror.c
- (cd ../rlogind ; $(MAKE) herror.o )
-../inetd/ta-rauth.o : ../inetd/ta-rauth.c
- (cd ../inetd ; $(MAKE) ta-rauth.o DESTDIR=${DESTDIR})
-
-clean:
- rm -f ${OBJS} core rsh *.BAK AFS_component_version_number.c rlogin
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN} all
- set -x; \
- case "${SYS_NAME}" in \
- hp* ) \
- ${INSTALL} -m 4755 -f rsh ${DESTDIR}bin/remsh ;; \
- * ) \
- ${INSTALL} -m 4755 rsh ${DESTDIR}bin/rsh ;; \
- esac
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=rx
-include ../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-#CC=pcc
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include -DRXDEBUG ${XCFLAGS}
-
-#
-# Generic xdr objects (or, at least, xdr stuff that's not newly defined for rx).
-# Really the xdr stuff should be in its own directory.
-#
-XDROBJS = xdr_arrayn.o xdr_rx.o xdr_afsuuid.o
-
-RXOBJS = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o rx_globals.o \
- rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o rx_conncache.o \
- xdr_int64.o
-
-MULTIOBJS = rx_multi.o
-
-LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
-
-LIBOBJS_djgpp = ${RXOBJS_djgpp} ${MULTIOBJS} ${XDROBJS_djgpp}
-
-XMIT = rx_xmit_nt.o
-XMIT_H = rx_xmit_nt.h
-
-XDROBJS_djgpp = xdr.o xdr_rec.o xdr_stdio.o \
- xdr_float.o xdr_refernce.o xdr_update.o \
- xdr_array.o xdr_mem.o xdr_rx.o xdr_afsuuid.o
-
-RXOBJS_djgpp = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o rx_globals.o \
- rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o rx_conncache.o \
- xdr_int64.o $(XMIT)
-
-BASICINCLS = ${SRCDIR}include/lwp.h ${SRCDIR}include/lock.h \
- rx_clock.h rx_queue.h rx_event.h
-
-LIBS = librx.a ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/util.a
-
-LINK = ${CC} ${CFLAGS} -o $@ $@.o ${LIBS} ${SRCDIR}lib/afs/libsys.a ${XLIBS}
-
-KSRCS = rx.c rx.h rx_clock.c rx_clock.h rx_event.c rx_event.h \
- rx_globals.c rx_globals.h rx_kernel.h rx_misc.h \
- rx_null.c rx_null.h rx_queue.h rx_getaddr.c rx_packet.c rx_packet.h \
- rx_multi.h rx_kcommon.h rx_kcommon.c \
- xdr.c xdr.h xdr_array.c xdr_arrayn.c xdr_rx.c rx_misc.c rx_rdwr.c \
- xdr_afsuuid.c rx_trace.h xdr_int64.c
-UKSRCS = $(KSRCS) rx_conncache.c
-
-include ../config/Makefile.version
-
-test tests: install ${DESTDIR}etc/rxdebug rxdumptrace
-# DEST/bin/washtool object rx/test; cd test; $(MAKE) all DESTDIR=${DESTDIR} SRCDIR=${SRCDIR}
-
-RX_component_version_number.c: AFS_component_version_number.c
- sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
-
-RX_component_version_number.o: RX_component_version_number.c
-
-xdrs: ${XDROBJS}
-
-${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h
-
-${MULTIOBJS}: rx.h rx_multi.h
-
-${XDROBJS}: xdr.h
-
-rx_user.o: rx.h rx_user.h
-
-rxdebug.o: rxdebug.c
-
-rx_packet.o: rx_packet.c rx_packet.h
-
-rx_rdwr.o: rx_rdwr.c rx.h
-# $(CC) -c -O -I${SRCDIR}include -DRXDEBUG ${XCFLAGS} rx_rdwr.c
-
-rx.o: rx.h rx_user.h
-
-rx_conncache.o: rx.h
-
-rx_trace.o: rx_trace.h
-
-rxdumptrace: rx_trace.c
- rm -f rxdumptrace
- $(CC) $(CFLAGS) -DDUMPTRACE -c -o rxdumptrace.o rx_trace.c
- $(CC) $(CFLAGS) -o rxdumptrace rxdumptrace.o ${LIBS} ${XLIBS}
-
-rx_getaddr.o: rx.h rx_getaddr.c
-
-rx_globals.o: rx.h rx_user.h rx_globals.h
-
-xdr_rx.o: xdr.h rx.h
-
-xdr_refernce.o: xdr_refernce.c xdr.h
-
-#rx_vab.o: rx_vab.c rx_vab.h rx_user.h ${BASICINCLS}
-
-librx.a: ${LIBOBJS} RX_component_version_number.o
- -rm -f $@
- $(AR) rv $@ RX_component_version_number.o ${LIBOBJS}
- $(RANLIB) $@
-
-librx-djgpp: ${LIBOBJS_djgpp} RX_component_version_number.o
- -rm -f librx.a
- $(AR) rv librx.a RX_component_version_number.o ${LIBOBJS_djgpp}
- $(RANLIB) librx.a
-
-${DESTDIR}etc/rxdebug: rxdebug
- ${INSTALL} rxdebug ${DESTDIR}etc/rxdebug
-
-rxdebug: rxdebug.o ${DESTDIR}lib/afs/util.a ${DESTDIR}lib/afs/libsys.a
- ${LINK}
-
-install.noversion noversion install all system: librx.a includes kinstall ukinstall
- ${INSTALL} librx.a ${DESTDIR}lib
-
-install-djgpp: librx-djgpp includes includes-djgpp kinstall ukinstall
- ${INSTALL} librx.a ${DESTDIR}lib
-
-includes-djgpp: $(XMIT_H)
- set ${DESTDIR}include/rx; $(MKDIR_IF_NEEDED)
- ${INSTALL} $(XMIT_H) ${DESTDIR}include/rx
-
-includes: rx.h rx_user.h rx_event.h rx_queue.h rx_clock.h xdr.h rx_null.h rx_globals.h
- set ${DESTDIR}include/rx; $(MKDIR_IF_NEEDED)
- ${INSTALL} rx_packet.h rx.h rx_user.h rx_event.h rx_queue.h \
- rx_globals.h \
- rx_clock.h rx_multi.h ${DESTDIR}include/rx
- ${INSTALL} xdr.h rx_null.h ${DESTDIR}include/rx
- ${INSTALL} rx_pthread.h rx_lwp.h rx_misc.h ${DESTDIR}include/rx
-
-kinstall: includes
- set $(KERNELDIR)rx; $(MKDIR_IF_NEEDED)
- $(INSTALL) $(KSRCS) $(KERNELDIR)rx
- case ${SYS_NAME} in \
- alpha_dux* ) \
- $(INSTALL) DUX/*.[ch] $(KERNELDIR)rx;; \
- i386_fbsd* ) \
- $(INSTALL) FBSD/*.[ch] $(KERNELDIR)rx;; \
- *_linux* ) \
- $(INSTALL) LINUX/*.[ch] $(KERNELDIR)rx;; \
- rs_aix* ) \
- $(INSTALL) AIX/*.[ch] $(KERNELDIR)rx;; \
- sgi_* ) \
- $(INSTALL) IRIX/*.[ch] $(KERNELDIR)rx;; \
- ppc_darwin* ) \
- $(INSTALL) DARWIN/*.[ch] $(KERNELDIR)rx;; \
- sun4x_5* ) \
- $(INSTALL) SOLARIS/*.[ch] $(KERNELDIR)rx;; \
- * ) \
- echo WARNING: No kernel RX code for sys ${SYS_NAME};; \
- esac
-
-ukinstall webinstall: includes
- set $(UKERNELDIR)rx; $(MKDIR_IF_NEEDED)
- $(INSTALL) $(UKSRCS) $(UKERNELDIR)rx
- -$(INSTALL) UKERNEL/*.[ch] $(UKERNELDIR)rx
-
-clean:
- rm -f *.o *.a core *_component_version_number.c rxdumptrace rxdebug
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=/usr/andy/
-LIBRX=${SRCDIR}lib/librx.a
-DESTDIR=/usr/andy/
-INSTALL=${SRCDIR}bin/install
-LIBS=${LIBRX} ${SRCDIR}lib/liblwp.a
-CFLAGS=-g -I.. -I. -I${SRCDIR}include -DDEBUG ${XCFLAGS}
-
-all: bulk_client bulk_server
-
-bulk_client: bulk_client.o bulk_io.o ${LIBS} bulk.cs.o
- ${CC} ${CFLAGS} -o bulk_client bulk_client.o bulk_io.o bulk.cs.o ${LIBS}
-
-bulk_server: bulk_server.o bulk_io.o bulk.ss.o ${LIBS}
- ${CC} ${CFLAGS} -o bulk_server bulk_server.o bulk_io.o bulk.ss.o ${LIBS}
-
-bulk_client.o bulk_server.o bulk_io.o: bulk.h
-
-bulk.cs.c bulk.ss.c bulk.er.c bulk.h: bulk.xg
- rxgen bulk.xg
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=/usr/andy/
-LIBRX=${SRCDIR}lib/librx.a
-DESTDIR=/usr/andy/
-INSTALL=${SRCDIR}bin/install
-LIBS=${LIBRX} ${SRCDIR}lib/liblwp.a
-CFLAGS=-g -I.. -I. -I${SRCDIR}include -DDEBUG ${XCFLAGS}
-
-all: bulk_client bulk_server
-
-bulk_client: bulk_client.o bulk_io.o ${LIBS} bulk.cs.o
- ${CC} ${CFLAGS} -o bulk_client bulk_client.o bulk_io.o bulk.cs.o ${LIBS}
-
-bulk_server: bulk_server.o bulk_io.o bulk.ss.o ${LIBS}
- ${CC} ${CFLAGS} -o bulk_server bulk_server.o bulk_io.o bulk.ss.o ${LIBS}
-
-bulk_client.o bulk_server.o bulk_io.o: bulk.h
-
-bulk.cs.c bulk.ss.c bulk.er.c bulk.h: bulk.xg
- rxgen bulk.xg
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=/usr/andy/
-LIBRX=${SRCDIR}lib/librx.a
-DESTDIR=/usr/andy/
-INSTALL=${SRCDIR}bin/install
-LIBS=${LIBRX} ${SRCDIR}lib/liblwp.a
-CFLAGS=-g -I.. -I. -I${SRCDIR}include -DDEBUG ${XCFLAGS}
-
-all: sample_client sample_server
-
-sample_client: sample_client.o ${LIBS} sample.cs.o
- ${CC} ${CFLAGS} -o sample_client sample_client.o sample.cs.o ${LIBS}
-
-sample_server: sample_server.o sample.ss.o ${LIBS}
- ${CC} ${CFLAGS} -o sample_server sample_server.o sample.ss.o ${LIBS}
-
-sample_client.o: sample.h
-sample_server.o: sample.h
-sample.cs.c sample.ss.c sample.er.c sample.h: sample.xg
- rxgen sample.xg
/* RX: Extended Remote Procedure Call */
+#include <afsconfig.h>
#ifdef KERNEL
#include "../afs/param.h"
#else
#include <afs/param.h>
#endif
-#include <afsconfig.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx.c,v 1.7 2001/07/11 04:03:29 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx.c,v 1.8 2001/09/11 15:48:34 hartmans Exp $");
#ifdef KERNEL
#include "../afs/sysincludes.h"
# include <netinet/in.h>
# include <sys/time.h>
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#else
#ifdef HAVE_STRING_H
#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
#endif
#endif
# include "rx.h"
rxi_nCalls = 0;
rx_connDeadTime = 12;
rx_tranquil = 0; /* reset flag */
- bzero((char *)&rx_stats, sizeof(struct rx_stats));
+ memset((char *)&rx_stats, 0, sizeof(struct rx_stats));
htable = (char *)
osi_Alloc(rx_hashTableSize*sizeof(struct rx_connection *));
PIN(htable, rx_hashTableSize*sizeof(struct rx_connection *)); /* XXXXX */
- bzero(htable, rx_hashTableSize*sizeof(struct rx_connection *));
+ memset(htable, 0, rx_hashTableSize*sizeof(struct rx_connection *));
ptable = (char *) osi_Alloc(rx_hashTableSize*sizeof(struct rx_peer *));
PIN(ptable, rx_hashTableSize*sizeof(struct rx_peer *)); /* XXXXX */
- bzero(ptable, rx_hashTableSize*sizeof(struct rx_peer *));
+ memset(ptable, 0, rx_hashTableSize*sizeof(struct rx_peer *));
/* Malloc up a bunch of packets & buffers */
rx_nFreePackets = 0;
p = (char *) osi_Alloc(size);
#endif
if (!p) osi_Panic("rxi_Alloc error");
- bzero(p, size);
+ memset(p, 0, size);
return p;
}
* set the ack bits in the packets and have rxi_Start remove the packets
* when it's done transmitting.
*/
- if (!tp->acked) {
+ if (!(tp->flags & RX_PKTFLAG_ACKED)) {
newAckCount++;
}
if (call->flags & RX_CALL_TQ_BUSY) {
#ifdef RX_ENABLE_LOCKS
- tp->acked = 1;
+ tp->flags |= RX_PKTFLAG_ACKED;
call->flags |= RX_CALL_TQ_SOME_ACKED;
#else /* RX_ENABLE_LOCKS */
break;
* out of sequence. */
if (tp->header.seq < first) {
/* Implicit ack information */
- if (!tp->acked) {
+ if (!(tp->flags & RX_PKTFLAG_ACKED)) {
newAckCount++;
}
- tp->acked = 1;
+ tp->flags |= RX_PKTFLAG_ACKED;
}
else if (tp->header.seq < first + nAcks) {
/* Explicit ack information: set it in the packet appropriately */
if (ap->acks[tp->header.seq - first] == RX_ACK_TYPE_ACK) {
- if (!tp->acked) {
+ if (!(tp->flags & RX_PKTFLAG_ACKED)) {
newAckCount++;
- tp->acked = 1;
+ tp->flags |= RX_PKTFLAG_ACKED;
}
if (missing) {
nNacked++;
call->nSoftAcked++;
}
} else {
- tp->acked = 0;
+ tp->flags &= ~RX_PKTFLAG_ACKED;
missing = 1;
}
}
else {
- tp->acked = 0;
+ tp->flags &= ~RX_PKTFLAG_ACKED;
missing = 1;
}
* ie, this should readjust the retransmit timer for all outstanding
* packets... So we don't just retransmit when we should know better*/
- if (!tp->acked && !clock_IsZero(&tp->retryTime)) {
+ if (!(tp->flags & RX_PKTFLAG_ACKED) && !clock_IsZero(&tp->retryTime)) {
tp->retryTime = tp->timeSent;
clock_Add(&tp->retryTime, &peer->timeout);
/* shift by eight because one quarter-sec ~ 256 milliseconds */
* so we will retransmit as soon as the window permits*/
for(acked = 0, queue_ScanBackwards(&call->tq, tp, nxp, rx_packet)) {
if (acked) {
- if (!tp->acked) {
+ if (!(tp->flags & RX_PKTFLAG_ACKED)) {
clock_Zero(&tp->retryTime);
}
- } else if (tp->acked) {
+ } else if (tp->flags & RX_PKTFLAG_ACKED) {
acked = 1;
}
}
for (queue_Scan(&call->tq, p, tp, rx_packet)) {
if (!p)
break;
- p->acked = 1;
+ p->flags |= RX_PKTFLAG_ACKED;
someAcked = 1;
}
if (someAcked) {
for (queue_Scan(&call->tq, p, tp, rx_packet)) {
if (!p)
break;
- p->acked = 1;
+ p->flags |= RX_PKTFLAG_ACKED;
someAcked = 1;
}
if (someAcked) {
/* Does the current packet force us to flush the current list? */
if (cnt > 0
&& (list[i]->header.serial
- || list[i]->acked
+ || (list[i]->flags & RX_PKTFLAG_ACKED)
|| list[i]->length > RX_JUMBOBUFFERSIZE)) {
if (lastCnt > 0) {
rxi_SendList(call, lastP, lastCnt, istack, 1, now, retryTime, resending);
}
/* Add the current packet to the list if it hasn't been acked.
* Otherwise adjust the list pointer to skip the current packet. */
- if (!list[i]->acked) {
+ if (!(list[i]->flags & RX_PKTFLAG_ACKED)) {
cnt++;
/* Do we need to flush the list? */
if (cnt >= (int)peer->maxDgramPackets
* an acked packet. Since we always send retransmissions
* in a separate packet, we only need to check the first
* packet in the list */
- if (cnt > 0 && !listP[0]->acked) {
+ if (cnt > 0 && !(listP[0]->flags & RX_PKTFLAG_ACKED)) {
morePackets = 1;
}
if (lastCnt > 0) {
* than recovery rates.
*/
for(queue_Scan(&call->tq, p, nxp, rx_packet)) {
- if (!p->acked) {
+ if (!(p->flags & RX_PKTFLAG_ACKED)) {
clock_Zero(&p->retryTime);
}
}
/* Only send one packet during fast recovery */
break;
}
- if ((p->header.flags == RX_FREE_PACKET) ||
+ if ((p->flags & RX_PKTFLAG_FREE) ||
(!queue_IsEnd(&call->tq, nxp)
- && (nxp->header.flags == RX_FREE_PACKET)) ||
+ && (nxp->flags & RX_PKTFLAG_FREE)) ||
(p == (struct rx_packet *)&rx_freePacketQueue) ||
(nxp == (struct rx_packet *)&rx_freePacketQueue)) {
osi_Panic("rxi_Start: xmit queue clobbered");
}
- if (p->acked) {
+ if (p->flags & RX_PKTFLAG_ACKED) {
MUTEX_ENTER(&rx_stats_mutex);
rx_stats.ignoreAckedPacket++;
MUTEX_EXIT(&rx_stats_mutex);
* the transmit queue.
*/
for (missing = 0, queue_Scan(&call->tq, p, nxp, rx_packet)) {
- if (p->header.seq < call->tfirst && p->acked) {
+ if (p->header.seq < call->tfirst && (p->flags & RX_PKTFLAG_ACKED)) {
queue_Remove(p);
rxi_FreePacket(p);
}
break;
}
- if (!p->acked && !clock_IsZero(&p->retryTime)) {
+ if (!(p->flags & RX_PKTFLAG_ACKED) && !clock_IsZero(&p->retryTime)) {
haveEvent = 1;
retryTime = p->retryTime;
break;
theader.flags = RX_CLIENT_INITIATED | RX_LAST_PACKET;
theader.serviceId = 0;
- bcopy(&theader, tbuffer, sizeof(theader));
- bcopy(inputData, tp, inputLength);
+ memcpy(tbuffer, &theader, sizeof(theader));
+ memcpy(tp, inputData, inputLength);
code = sendto(socket, tbuffer, inputLength+sizeof(struct rx_header), 0,
(struct sockaddr *) &taddr, sizeof(struct sockaddr_in));
code = recvfrom(socket, tbuffer, sizeof(tbuffer), 0,
(struct sockaddr *) &faddr, &faddrLen);
- bcopy(tbuffer, &theader, sizeof(struct rx_header));
+ memcpy(&theader, tbuffer, sizeof(struct rx_header));
if (counter == ntohl(theader.callNumber)) break;
}
}
code -= sizeof(struct rx_header);
if (code > outputLength) code = outputLength;
- bcopy(tp, outputData, code);
+ memcpy(outputData, tp, code);
return code;
}
#include <afs/param.h>
#endif
-RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx_packet.c,v 1.4 2001/09/11 14:23:02 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx_packet.c,v 1.5 2001/09/11 15:48:35 hartmans Exp $");
#ifdef KERNEL
#if defined(UKERNEL)
#include "rx_globals.h"
#include <lwp.h>
#include "rx_internal.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#else
#ifdef HAVE_STRING_H
#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
#endif
#endif
#ifdef HAVE_UNISTD_H
r = resid;
while ((resid > 0) && (i < packet->niovecs)) {
j = MIN (resid, packet->wirevec[i].iov_len - (offset - l));
- bcopy ((char *)(packet->wirevec[i].iov_base) + (offset - l), out, j);
+ memcpy(out, (char *)(packet->wirevec[i].iov_base) + (offset - l), j);
resid -= j;
l += packet->wirevec[i].iov_len;
i++;
b = (char*)(packet->wirevec[i].iov_base) + (offset - l);
j = MIN (resid, packet->wirevec[i].iov_len - (offset - l));
- bcopy (in, b, j);
+ memcpy(b, in, j);
resid -= j;
l += packet->wirevec[i].iov_len;
i++;
rx_nFreePackets--;
c = queue_First(&rx_freePacketQueue, rx_packet);
queue_Remove(c);
- if (c->header.flags != RX_FREE_PACKET)
+ if (!(c->flags & RX_PKTFLAG_FREE))
osi_Panic("rxi_AllocPacket: packet not free\n");
+ c->flags &= ~RX_PKTFLAG_FREE;
c->header.flags = 0;
#ifdef KERNEL
p = rx_mallocedP = (struct rx_packet *) osi_Alloc(getme);
PIN(p, getme); /* XXXXX */
- bzero((char *)p, getme);
+ memset((char *)p, 0, getme);
NETPRI;
AFS_RXGLOCK();
MUTEX_ENTER(&rx_freePktQ_lock);
p->wirevec[0].iov_len = RX_HEADER_SIZE;
p->wirevec[1].iov_base = (char *) (p->localdata);
p->wirevec[1].iov_len = RX_FIRSTBUFFERSIZE;
- p->header.flags = RX_FREE_PACKET;
+ p->flags |= RX_PKTFLAG_FREE;
p->niovecs = 2;
queue_Append(&rx_freePacketQueue, p);
getme = apackets * sizeof(struct rx_packet);
p = rx_mallocedP = (struct rx_packet *) osi_Alloc(getme);
- bzero((char *)p, getme);
+ memset((char *)p, 0, getme);
for (e = p + apackets; p<e; p++) {
p->wirevec[0].iov_base = (char *) (p->wirehead);
p->wirevec[0].iov_len = RX_HEADER_SIZE;
p->wirevec[1].iov_base = (char *) (p->localdata);
p->wirevec[1].iov_len = RX_FIRSTBUFFERSIZE;
- p->header.flags = RX_FREE_PACKET;
+ p->flags |= RX_PKTFLAG_FREE;
p->niovecs = 2;
queue_Append(&rx_freePacketQueue, p);
{
dpf(("Free %x\n", p));
- if (p->header.flags & RX_FREE_PACKET)
+ if (p->flags & RX_PKTFLAG_FREE)
osi_Panic("rxi_FreePacketNoLock: packet already free\n");
rx_nFreePackets++;
- p->header.flags = RX_FREE_PACKET;
+ p->flags |= RX_PKTFLAG_FREE;
queue_Append(&rx_freePacketQueue, p);
}
rx_nFreePackets--;
p = queue_First(&rx_freePacketQueue, rx_packet);
- if (p->header.flags != RX_FREE_PACKET)
+ if (!(p->flags & RX_PKTFLAG_FREE))
osi_Panic("rxi_AllocPacket: packet not free\n");
dpf(("Alloc %x, class %d\n", p, class));
queue_Remove(p);
+ p->flags &= ~RX_PKTFLAG_FREE;
p->header.flags = 0;
/* have to do this here because rx_FlushWrite fiddles with the iovs in
savelen = p->wirevec[p->niovecs].iov_len;
p->wirevec[p->niovecs].iov_len += RX_EXTRABUFFERSIZE;
- bzero((char *)&msg, sizeof(msg));
+ memset((char *)&msg, 0, sizeof(msg));
msg.msg_name = (char *) &from;
msg.msg_namelen = sizeof(struct sockaddr_in);
msg.msg_iov = p->wirevec;
return -1;
}
n = MIN(len, (mp->b_wptr - mp->b_rptr));
- bcopy((char *)mp->b_rptr, cp, n);
+ memcpy(cp, (char *)mp->b_rptr, n);
cp += n;
len -= n;
mp->b_rptr += n;
t = iovs[i].iov_len;
}
m = MIN(n,t);
- bcopy((char *)mp->b_rptr, iovs[i].iov_base + o, m);
+ memcpy(iovs[i].iov_base + o, (char *)mp->b_rptr, m);
mp->b_rptr += m;
o += m;
t -= m;
while (len) {
t = MIN(l1, MIN(l2, (unsigned int)len));
- bcopy (p1, p2, t);
+ memcpy(p2, p1, t);
p1 += t; p2 += t;
l1 -= t; l2 -= t;
len -= t;
afs_int32 tl;
struct rx_serverQueueEntry *np, *nqe;
+ /*
+ * Only respond to client-initiated Rx debug packets,
+ * and clear the client flag in the response.
+ */
+ if (ap->header.flags & RX_CLIENT_INITIATED) {
+ ap->header.flags = ap->header.flags & ~RX_CLIENT_INITIATED;
+ rxi_EncodePacketHeader(ap);
+ } else {
+ return ap;
+ }
+
rx_packetread(ap, 0, sizeof(struct rx_debugIn), (char *)&tin);
/* all done with packet, now set length to the truth, so we can
* reuse this packet */
struct rx_debugStats tstat;
/* get basic stats */
- bzero ((char *)&tstat, sizeof(tstat)); /* make sure spares are zero */
+ memset((char *)&tstat, 0, sizeof(tstat)); /* make sure spares are zero */
tstat.version = RX_DEBUGI_VERSION;
#ifndef RX_ENABLE_LOCKS
tstat.waitingForPackets = rx_waitingForPackets;
if (tl > 0)
return ap;
- bzero ((char *)&tconn, sizeof(tconn)); /* make sure spares are zero */
+ memset((char *)&tconn, 0, sizeof(tconn)); /* make sure spares are zero */
/* get N'th (maybe) "interesting" connection info */
for(i=0;i<rx_hashTableSize;i++) {
#if !defined(KERNEL)
if (tl > 0)
return ap;
- bzero ((char *)&tpeer, sizeof(tpeer));
+ memset((char *)&tpeer, 0, sizeof(tpeer));
for(i=0;i<rx_hashTableSize;i++) {
#if !defined(KERNEL)
/* the time complexity of the algorithm used here
register struct rx_packet *ap;
int istack;
{
- afs_int32 tl;
- rx_packetwrite(ap, 0, 65, cml_version_number+4);
- tl = ap->length;
+ afs_int32 tl;
+
+ /*
+ * Only respond to client-initiated version requests, and
+ * clear that flag in the response.
+ */
+ if (ap->header.flags & RX_CLIENT_INITIATED) {
+ char buf[66];
+
+ ap->header.flags = ap->header.flags & ~RX_CLIENT_INITIATED;
+ rxi_EncodePacketHeader(ap);
+ memset(buf, 0, sizeof(buf));
+ strncpy(buf, cml_version_number+4, sizeof(buf)-1);
+ rx_packetwrite(ap, 0, 65, buf);
+ tl = ap->length;
ap->length = 65;
rxi_SendDebugPacket(ap, asocket, ahost, aport, istack);
- ap->length = tl;
- return ap;
+ ap->length = tl;
+ }
+
+ return ap;
}
{
register afs_uint32 *buf = (afs_uint32 *)(p->wirevec[0].iov_base); /* MTUXXX */
- bzero((char *)buf, RX_HEADER_SIZE);
+ memset((char *)buf, 0, RX_HEADER_SIZE);
*buf++ = htonl(p->header.epoch);
*buf++ = htonl(p->header.cid);
*buf++ = htonl(p->header.callNumber);
int i, j;
ssize_t len; /* len must be a signed type; it can go negative */
- p->acked = 0;
+ p->flags &= ~RX_PKTFLAG_ACKED;
p->header.cid = (conn->cid | call->channel);
p->header.serviceId = conn->serviceId;
p->header.securityIndex = conn->securityIndex;
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SRCDIR=/usr/andy/
-LIBRX=${SRCDIR}lib/librx.a
-DESTDIR=/usr/andy/
-INSTALL=${SRCDIR}bin/install
-LIBS=${LIBRX} ${SRCDIR}lib/liblwp.a
-CFLAGS=-g -I. -I${SRCDIR}include -DDEBUG ${XCFLAGS}
-
-all: sample_client sample_server
-
-sample_client: sample_client.o ${LIBS} sample.cs.o
- ${CC} ${CFLAGS} -o sample_client sample_client.o sample.cs.o ${LIBS}
-
-sample_server: sample_server.o sample.ss.o ${LIBS}
- ${CC} ${CFLAGS} -o sample_server sample_server.o sample.ss.o ${LIBS}
-
-sample_client.o: sample.h
-sample_server.o: sample.h
-sample.cs.c sample.ss.c sample.er.c sample.h: sample.xg
- rxgen sample.xg
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-COMPONENT=rxtest
-include ../../config/Makefile.${SYS_NAME}
-OPTIMIZE=-g
-
-INCDIRS= -I${DESTDIR}include -I..
-LDIRS= -L.. -L${DESTDIR}lib -L${DESTDIR}lib/afs
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= ${DESTDIR}lib/afs/libcmd.a ../librx.a ${DESTDIR}lib/liblwp.a \
- ${utilib} ${DESTDIR}/lib/afs/libsys.a ${XLIBS}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} -DRXDEBUG ${LDIRS} ${LIBS} ${XCFLAGS}
-
-RXTESTOBJS = testclient.o testserver.o kstest.o kctest.o
-
-BASICINCLS = ../rx_clock.h ../rx_queue.h ../rx_event.h
-
-LINK = ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
-
-TESTS = testclient testserver kstest kctest testqueue tableGen generator
-
-TH_TESTS = th_testserver th_testclient
-
-.IGNORE:
-
-system all: test
-
-test tests: ${TESTS}
-
-th_test th_tests: ${TH_TESTS}
-
-testclient: ../librx.a testclient.o
- -${LINK}
-
-testserver: ../librx.a testserver.o
- -${LINK}
-
-kstest: ../librx.a kstest.o
- -${LINK}
-
-kctest: ../librx.a kctest.o
- -${LINK}
-
-# th_ versions only have link lines for Solaris now.
-th_testclient: th_testclient.o ../../libafsrpc/libafsrpc.so
- ${CC} ${CFLAGS} -mt -o th_testclient th_testclient.o \
- ../../libafsrpc/libafsrpc.so -lpthread
-
-th_testclient.o: testclient.c
- ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testclient.o \
- testclient.c
-
-th_testserver: th_testserver.o ../../libafsrpc/libafsrpc.so
- ${CC} ${CFLAGS} -mt -o th_testserver th_testserver.o \
- ../../libafsrpc/libafsrpc.so -lpthread
-
-th_testserver.o: testserver.c
- ${CC} ${CFLAGS} -DAFS_PTHREAD_ENV -mt -c -o th_testserver.o \
- testserver.c
-
-testqueue: ../librx.a testqueue.o
- -${LINK}
-
-${RXTESTOBJS}: ${BASICINCLS} ../rx.h
-
-clean:
- rm -f *.o *.a ${TESTS} ${TH_TESTS} core
+++ /dev/null
-#
-# @(#)Makefile 1.2 87/11/09 3.9 RPCSRC
-#
-# Makefile for rpc protocol compiler
-# Copyright (C) 1987, Sun Microsystems, Inc.
-#
-SHELL = /bin/sh
-COMPONENT=rxgen
-include ../config/Makefile.${SYS_NAME}
-
-UKERNELDIR=../libuafs/
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-SRCS= rpc_main.c rpc_hout.c rpc_cout.c rpc_parse.c rpc_scan.c rpc_util.c \
- rpc_svcout.c rpc_clntout.c
-HDRS= rpc_util.h rpc_parse.h rpc_scan.h
-OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
- rpc_svcout.o rpc_clntout.o
-
-GOAL=rxgen
-CFLAGS = ${DBUG} -I. -I${DESTDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
-
-USNS=cellname
-SD=../../../src/CML
-VN=AFS_component_version_number
-ID=``
-
-include ../config/Makefile.version
-
-$(VN).o: $(VN).c
-
-.c.o:
- $(SPEW) $(CC) $(CFLAGS) -c $<
-
-$(GOAL): $(OBJS) AFS_component_version_number.c
- $(SPEW) $(CC) $(CFLAGS) $(OBJS) $(XLIBS) -o $@
-
-all: $(GOAL)
-
-system: install0
-
-kinstall: install0
-
-ukinstall webinstall: install0
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- $(INSTALL) rxgen_consts.h $(UKERNELDIR)afs
-
-$(DESTDIR)/bin/$(GOAL): $(GOAL)
- @echo "Installing the Rx Protocol Compiler (rxgen)"
- $(INSTALL) rxgen $(DESTDIR)bin
-
-install0: $(DESTDIR)/bin/$(GOAL)
- $(INSTALL) rxgen_consts.h $(DESTDIR)include/afs
-
-install: install0 ukinstall
-
-lint: $(SRCS) $(HDRS)
- lint $(SRCS)
-
-clean:
- rm -f $(GOAL) $(OBJS) core AFS_component_version_number.c
-
-depend: $(SRCS) $(HDRS)
- @${CC} ${CFLAGS} -M ${SRCS} > makedep
- @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
- @echo '$$r makedep' >>eddep
- @echo 'w' >>eddep
- @cp Makefile makefile.bak
- @ed - Makefile < eddep
- @rm eddep makedep makefile.bak
-
-rpc_main.o: AFS_component_version_number.c
-# DO NOT DELETE THIS LINE
-rpc_main.o: rpc_main.c
-rpc_main.o: ./rpc_util.h
-rpc_main.o: ./rpc_parse.h
-rpc_main.o: ./rpc_scan.h
-rpc_hout.o: rpc_hout.c
-rpc_hout.o: ./rpc_util.h
-rpc_hout.o: ./rpc_parse.h
-rpc_cout.o: rpc_cout.c
-rpc_cout.o: ./rpc_util.h
-rpc_cout.o: ./rpc_parse.h
-rpc_parse.o: rpc_parse.c
-rpc_parse.o: ./rpc_util.h
-rpc_parse.o: ./rpc_scan.h
-rpc_parse.o: ./rpc_parse.h
-rpc_scan.o: rpc_scan.c
-rpc_scan.o: ./rpc_scan.h
-rpc_scan.o: ./rpc_util.h
-rpc_util.o: rpc_util.c
-rpc_util.o: ./rpc_scan.h
-rpc_util.o: ./rpc_parse.h
-rpc_util.o: ./rpc_util.h
-rpc_svcout.o: rpc_svcout.c
-rpc_svcout.o: ./rpc_parse.h
-rpc_svcout.o: ./rpc_util.h
-rpc_clntout.o: rpc_clntout.c
-rpc_clntout.o: ./rpc_parse.h
-rpc_clntout.o: ./rpc_util.h
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-
-SHELL = /bin/sh
-COMPONENT=rxkad
-include ../config/Makefile.${SYS_NAME}
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-COMPILE_ET = ${SRCDIR}bin/compile_et
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-INCLS= ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- rxkad.h
-
-OBJS= rxkad_client.o rxkad_server.o rxkad_common.o ticket.o rxkad_errs.o
-
-REGOBJS=fcrypt.o crypt_conn.o
-
-KSRCS=private_data.h fcrypt.h fcrypt.c crypt_conn.c rxkad_client.c rxkad_common.c rxkad.h sboxes.h
-
-UKSRCS=$(KSRCS) rxkad.h ticket.c rxkad_server.c lifetimes.h private_data.h rxkad_errs.c
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: librxkad.a
-
-system: install
-
-clean:
- rm -f *.o tcrypt core *.a rxkad_errs.c rxkad.h AFS_component_version_number.c crypt_conn.c fcrypt.c fcrypt.h sboxes.h
-
-librxkad.a: $(OBJS) ${REGOBJS} AFS_component_version_number.o
- -rm -f librxkad.a
- $(AR) rv librxkad.a $(OBJS) ${REGOBJS} AFS_component_version_number.o
- $(RANLIB) librxkad.a
-
-crypt_conn.o: fcrypt.h private_data.h crypt_conn.c ${INCLS}
-
-rxkad_client.o: fcrypt.h private_data.h rxkad_client.c ${INCLS}
-
-rxkad_server.o: fcrypt.h private_data.h rxkad_server.c ${INCLS}
-
-rxkad_common.o: fcrypt.h private_data.h rxkad_common.c ${INCLS}
-
-rxkad_errs.o: rxkad_errs.c
-
-rxkad_errs.c rxkad.h: rxkad_errs.et rxkad.p.h
- rm -f rxkad.h rxkad_errs.c; ${COMPILE_ET} rxkad_errs -h rxkad
-
-ticket.o: ticket.c lifetimes.h ${INCLS}
-
-fcrypt.o: fcrypt.c fcrypt.h sboxes.h rxkad.h
- ${CC} ${CFLAGS} -c fcrypt.c
-
-kinstall: ${KSRCS}
- ${INSTALL} $(KSRCS) ${KERNELDIR}afs
-
-ukinstall webinstall: ${UKSRCS}
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- set ${UKERNELDIR}rx; $(MKDIR_IF_NEEDED)
- ${INSTALL} $(UKSRCS) ${UKERNELDIR}afs
- ${INSTALL} rxkad.h ${UKERNELDIR}rx
-
-install: all kinstall ukinstall
- rm -f ${DESTDIR}lib/librxkad.a
- ${INSTALL} librxkad.a ${DESTDIR}lib
- ${INSTALL} rxkad.h ${DESTDIR}include/rx
-
-tcrypt: tcrypt.o librxkad.a
- ${CC} -o tcrypt tcrypt.o librxkad.a
-tcrypt.o: tcrypt.c AFS_component_version_number.o
-
-test:
- cd test; $(MAKE)
-
-# These sources are kept in a separate directory so that we can use an
-# ACL to comply with source export restrictions.
-
-crypt_conn.c: domestic/crypt_conn.c
- rm -f $@
- cp domestic/crypt_conn.c $@
-
-fcrypt.c: domestic/fcrypt.c
- rm -f $@
- cp domestic/fcrypt.c $@
-
-fcrypt.h: domestic/fcrypt.h
- rm -f $@
- cp domestic/fcrypt.h $@
-
-sboxes.h: domestic/sboxes.h
- rm -f $@
- cp domestic/sboxes.h $@
-
-tcrypt.c: domestic/tcrypt.c
- rm -f $@
- cp domestic/tcrypt.c $@
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-BACKDIR=../../../../PARENT/dest/
-include ../../config/Makefile.${SYS_NAME}
-
-OPTIMIZE=-g
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-
-HEADERS = ../rxkad.h stress.h stress_internal.h stress_errs.h
-
-LDIR= ${DESTDIR}lib/
-ULIBS = ${LDIR}afs/libcmd.a ${LDIR}afs/libcom_err.a ${DESTDIR}lib/afs/util.a
-
-LIBS = ../librxkad.a ${LDIR}librx.a ${LDIR}libdes.a \
- ${LDIR}liblwp.a ${ULIBS} ${XLIBS}
-
-LIBRPC = ../../librpc/libafsrpc.so
-THLIBS= ${LDIR}afs/libcmd.a ${LDIR}afs/libcom_err.a \
- ${ULIBS} ${XLIBS} ${LIBRPC} -lpthread
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${XCFLAGS}
-
-
-THFLAGS = -mt -DAFS_PTHREAD_ENV
-
-THRULE = ${CC} ${CFLAGS} ${THFLAGS} -c $?
-
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-noversion all test system: stress
-
-clean:
- rm -f *.o stress.cs.c stress.ss.c stress.xdr.c stress.h \
- stress_errs.c stress_errs.h stress th_*
-
-stress.ss.o: stress.ss.c
-stress.cs.o: stress.cs.c
-stress.xdr.o: stress.xdr.c stress.h
-
-th_stress.ss.o: stress.ss.c
- ${THRULE} -o th_stress.ss.o
-
-th_stress.cs.o: stress.cs.c
- ${THRULE} -o th_stress.cs.o
-
-th_stress.xdr.o: stress.xdr.c stress.h
- ${THRULE} -o th_stress.xdr.o
-
-stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
- ${SRCDIR}bin/rxgen stress.rg
-
-stress_errs.o: stress_errs.c
-
-th_stress_errs.o: stress_errs.c
- ${THRULE} -o th_stress_errs.o
-
-stress_errs.c stress_errs.h: stress_errs.et
- rm -f stress_errs.h stress_errs.c; ${COMPILE_ET} stress_errs -h stress_errs
-
-stress.o stress_c.o stress_s.o: ${HEADERS}
-
-th_stress.o: stress.c ${HEADERS}
- ${THRULE} -o th_stress.o
-
-th_stress_c.o: stress_c.c ${HEADERS}
- ${THRULE} -o th_stress_c.o
-
-th_stress_s.o: stress_s.c ${HEADERS}
- ${THRULE} -o th_stress_s.o
-
-stress: stress.o stress.xdr.o stress_c.o stress_s.o stress.cs.o \
- stress.ss.o stress_errs.o
- $(CC) $(CFLAGS) -o stress stress.o stress.xdr.o stress_c.o \
- stress_s.o stress.cs.o stress.ss.o stress_errs.o ${LIBS}
-
-th_stress: th_stress.o th_stress.xdr.o th_stress_c.o th_stress_s.o \
- th_stress.cs.o th_stress.ss.o stress_errs.o \
- ${LIBRPC}
- ${CC} ${CFLAGS} ${THFLAGS} -o th_stress th_stress.o th_stress.xdr.o \
- th_stress_c.o th_stress_s.o th_stress.cs.o th_stress.ss.o \
- stress_errs.o ${THLIBS}
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-KERNELDIR = ../libafs/
-UKERNELDIR = ../libuafs/
-RXGEN=${SRCDIR}bin/rxgen
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
-
-CFLAGS = $(DBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
-
-all: librxstat.a includes
-
-rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
- ${RXGEN} -x rxstat.xg
-
-librxstat.a: ${LIBOBJS} AFS_component_version_number.o
- -rm -f $@
- $(AR) rv $@ AFS_component_version_number.o ${LIBOBJS}
- $(RANLIB) $@
-
-kinstall: ${KSRCS}
- set ${KERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${KSRCS} ${KERNELDIR}afsint
-
-ukinstall webinstall: ${KSRCS}
- set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${KSRCS} ${UKERNELDIR}afsint
-
-Krxstat.cs.c: rxstat.xg
- ${RXGEN} -x -k -C -o $@ rxstat.xg
-
-Krxstat.ss.c: rxstat.xg
- ${RXGEN} -x -k -S -o $@ rxstat.xg
-
-Krxstat.xdr.c: rxstat.xg
- ${RXGEN} -x -k -c -o $@ rxstat.xg
-
-install: librxstat.a includes kinstall ukinstall
- ${INSTALL} librxstat.a ${DESTDIR}lib
-
-includes: rxstat.h
- ${INSTALL} rxstat.h ${DESTDIR}include/rx
-
-clean:
- rm -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core *_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for Scout, the AFS navigation and monitoring tool.
-SHELL = /bin/sh
-COMPONENT=scout
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS= ${DBUG} -I. \
- -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include \
- -I${SRCDIR}include/afs \
- -I${SRCDIR} ${XCFLAGS}
-LDFLAGS = ${XLDFLAGS}
-
-#RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h bosint.h
-RPCINCLS=
-
-INCLS=${SRCDIR}include/afs/gtxobjects.h \
- ${SRCDIR}include/afs/gtxwindows.h \
- ${SRCDIR}include/afs/gtxcurseswin.h \
- ${SRCDIR}include/afs/gtxdumbwin.h \
- ${SRCDIR}include/afs/gtxX11win.h \
- ${SRCDIR}include/afs/gtxobjects.h \
- ${SRCDIR}include/afs/gtxlightobj.h \
- ${SRCDIR}include/afs/gtxtextobj.h \
- ${SRCDIR}include/afs/gtxobjdict.h \
- ${RPCINCLS} \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/afs/cmd.h
-
-LIBS= ${SRCDIR}lib/afs/libgtx.a \
- ${SRCDIR}lib/afs/libfsprobe.a \
- ${SRCDIR}lib/afs/libvolser.a \
- ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libafsint.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libaudit.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/util.a
-
-EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a ${XLIBS}
-
-include ../config/Makefile.version
-
-all: scout
-
-scout.o: scout.c ${INCLS} AFS_component_version_number.c
-
-scout: scout.o $(LIBS)
- ${CC} ${LDFLAGS} -o scout scout.o $(LIBS) ${EXTRA_LIBS}
-
-#
-# Misc others
-#
-system: install
-
-install: all
- ${INSTALL} scout ${DESTDIR}bin
-
-clean:
- rm -f *.o scout core AFS_component_version_number.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-#
-# This must be built after inetd has built ta-rauth.o and after rsh
-# XXX want these to end up in /usr/afsws ...
-# Note that if afskauthlib.so gets installed on a client
-# machine then that will be used ..
-#
-include ../config/Makefile.${SYS_NAME}
-OPTIMIZE=-g
-CFLAGS = ${OPTIMIZE} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LDFLAGS = ${OPTIMIZE} ${XLDFLAGS}
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-KAFSLIBS = ${LIBDIR}afs/libkauth.krb.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.krb.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
-AUTHFILES=../inetd/ta-rauth.o ../rsh/rcmd.o ../rsh/herror.o
-AUTHLIBS=afsauthlib.so afskauthlib.so
-TARGETS=$(AUTHLIBS)
-
-default:$(TARGETS)
- ${INSTALL} afsauthlib.so ${DESTDIR}root.client/usr/vice/etc
- ${INSTALL} afskauthlib.so ${DESTDIR}root.client/usr/vice/etc
-
-all:$(TARGETS)
-
-install install.noversion: all default
-
-clean:
- rm -f $(AUTHLIBS) $(AUTHFILES)
-
-afsauthlib.so: sgi_auth.o ${AFSLIBS} ${AUTHFILES}
- $(LD) ${LDFLAGS} -shared -all -o afsauthlib.so sgi_auth.o $(AFSLIBS) ${AUTHFILES}
-
-afskauthlib.so: sgi_auth.o ${KAFSLIBS} ${AUTHFILES}
- $(LD) ${LDFLAGS} -shared -all -o afskauthlib.so sgi_auth.o $(KAFSLIBS) ${AUTHFILES}
-
-../inetd/ta-rauth.o: ../inetd/ta-rauth.c
- (cd ../inetd ; $(MAKE) ta-rauth.o )
-
-../rsh/rcmd.o: ../rsh/rcmd.c
- (cd ../rsh ; $(MAKE) rcmd.o )
-
-../rsh/herror.o: ../rsh/herror.c
- (cd ../rsh ; $(MAKE) herror.o )
-
-sgi_auth.o: sgi_auth.c
- ${CC} ${CFLAGS} -c sgi_auth.c
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-
-SHELL = /bin/sh
-COMPONENT=sia
-DEBUG =
-#UNRESOLVED = -expect_unresolved \*
-UNRESOLVED =
-include ../config/Makefile.${SYS_NAME}
-
-LIBS1 = ${DESTDIR}/lib/libubik.a ${DESTDIR}/lib/afs/libprot.a
-LIBS2 = ${DESTDIR}/lib/librxkad.a ${DESTDIR}/lib/afs/libaudit.a \
- ${DESTDIR}/lib/librx.a ${DESTDIR}/lib/liblwp.a \
- ${DESTDIR}/lib/libdes.a ${DESTDIR}/lib/afs/libcmd.a \
- ${DESTDIR}/lib/afs/libcom_err.a ${DESTDIR}/lib/afs/util.a \
- ${DESTDIR}/lib/afs/libsys.a
-
-LIBS = ${DESTDIR}/lib/afs/libkauth.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.a ${LIBS2}
-KLIBS = ${DESTDIR}/lib/afs/libkauth.krb.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.krb.a ${LIBS2}
-
-all: test-reauth ${DESTDIR}/lib/afs/libafssiad.so ${DESTDIR}/lib/afs/libafssiad.krb.so
-
-clean:
- rm -f test-reauth libafssiad.so libafssiad.krb.so *.s *.o *.b core *~ *.com *.ld AFS_component_version_number.c
-
-CFLAGS = $(DEBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-${DESTDIR}/lib/afs/libafssiad.so: libafssiad.so
- ${INSTALL} $? $@
-
-${DESTDIR}/lib/afs/libafssiad.krb.so: libafssiad.krb.so
- ${INSTALL} $? $@
-
-siad.o: siad.c
- $(CC) $(CFLAGS) -c -g siad.c -o siad.o
-
-siad_krb.o: siad.c
- $(CC) $(CFLAGS) -DAFS_KERBEROS_ENV -c -g siad.c -o siad_krb.o
-
-libafssiad.so: siad.o
- $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.so \
- ${UNRESOLVED} siad.o ${LIBS} -none -lc
-
-libafssiad.krb.so: siad_krb.o
- $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.krb.so \
- ${UNRESOLVED} siad_krb.o ${KLIBS} ${LIBS} -none -lc
-
-test-reauth: test-reauth.o
- $(CC) $(CFLAGS) -g -o test-reauth test-reauth.o -lc
-
-install: all
-
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# System calls.
-
-SHELL = /bin/sh
-COMPONENT=sys
-include ../config/Makefile.${SYS_NAME}
-
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-UKERNELDIR=../libuafs/
-CFLAGS= ${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS} ${DBG_DEFS}
-SFLAGS=-P -I${SRCDIR}include
-LIBS= libsys.a ${SRCDIR}lib/librx.a libsys.a ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/util.a ${XLIBS}
-UKSRCS=afsl.exp
-
-OBJECTS= afssyscalls.o syscall.o
-RMTOBJS=rmtsysnet.o rmtsysc.o rmtsys.cs.o rmtsys.xdr.o rmtsys.ss.o rmtsyss.o
-
-include ../config/Makefile.version
-
-all: libsys.a ${DESTDIR}etc/rmtsysd ${DESTDIR}include/afs/afssyscalls.h \
- ${DESTDIR}bin/pagsh ${DESTDIR}bin/pagsh.krb
-
-${DESTDIR}etc/rmtsysd: rmtsysd
- ${INSTALL} -s rmtsysd ${DESTDIR}etc/rmtsysd
-
-${DESTDIR}bin/pagsh: pagsh
- ${INSTALL} -s pagsh ${DESTDIR}bin/pagsh
-
-${DESTDIR}bin/pagsh.krb: pagsh.krb
- ${INSTALL} -s pagsh.krb ${DESTDIR}bin/pagsh.krb
-
-${DESTDIR}include/afs/afssyscalls.h: afssyscalls.h
- ${INSTALL} afssyscalls.h ${DESTDIR}include/afs/afssyscalls.h
-
-libsys.a: ${OBJECTS} ${RMTOBJS} AFS_component_version_number.o
- -rm -f libsys.a
- ${AR} r libsys.a ${OBJECTS} ${RMTOBJS} AFS_component_version_number.o
- $(RANLIB) libsys.a
- case "${SYS_NAME}" in \
- rs_aix*) \
- ${AR} r libsys.a afsl.exp;; \
- esac
-
-system: install
-
-kinstall:
- case "${SYS_NAME}" in \
- rs_aix*) \
- ${INSTALL} afs.exp ${DESTDIR}lib/afs;; \
- sgi_6? ) \
- ${INSTALL} xfsattrs.h ../libafs/afs;; \
- *) \
- echo No $@ source here;; \
- esac
-
-install: all kinstall ukinstall
- ${INSTALL} libsys.a ${DESTDIR}lib/afs
- case "${SYS_NAME}" in \
- sgi_6? ) \
- ${INSTALL} xfsattrs.h ${DESTDIR}include/afs;; \
- esac
-
-ukinstall webinstall: ${UKSRCS}
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-tests: pagsh pagsh.krb fixit iinc idec icreate iopen istat rmtsysd
-
-syscall.o: syscall.s
- case "$(SYS_NAME)" in \
- sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5? | sunx86_54) \
- /usr/ccs/lib/cpp ${SFLAGS} syscall.s syscall.ss; \
- as -o syscall.o syscall.ss; \
- rm syscall.ss;; \
- sgi_* |ppc_darwin* ) \
- ${CC} ${CFLAGS} -c syscall.s;; \
- alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
- ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER syscall.s; \
- ${AS} -o syscall.o syscall.i; \
- rm -f syscall.ss syscall.i;; \
- hp_ux11? ) \
- touch syscall.o;; \
- i386_fbsd* ) \
- touch syscall.o;; \
- *) \
- /lib/cpp ${SFLAGS} syscall.s syscall.ss; \
- as -o syscall.o syscall.ss; \
- rm syscall.ss;; \
- esac
-
-
-afssyscalls.o: afssyscalls.c afssyscalls.h
- ${CC} ${CFLAGS} -c afssyscalls.c
-
-rmtsysnet.o rmtsysc.o rmtsyss.o rmtsysd.o: rmtsys.h
-rmtsysd: AFS_component_version_number.o
-
-rmtsys.cs.c rmtsys.ss.c rmtsys.xdr.c rmtsys.h: rmtsys.xg
- ${SRCDIR}bin/rxgen rmtsys.xg
-
-rmtsysd: rmtsysd.o libsys.a
- ${CC} ${CFLAGS} -o rmtsysd rmtsysd.o ${LIBS}
-
-
-pagsh: libsys.a AFS_component_version_number.o
- ${CC} ${CFLAGS} -c pagsh.c
- ${CC} ${CFLAGS} -o pagsh pagsh.o ${LIBS}
-
-pagsh.krb: libsys.a
- ${CC} ${CFLAGS} -c pagsh.c -DAFS_KERBEROS_ENV
- ${CC} ${CFLAGS} -o pagsh.krb pagsh.o ${LIBS}
-
-# Test programs.
-
-iinc: iinc.c
- case "${SYS_NAME}" in \
- sgi_6*) \
- $(CC) -o iinc ${CFLAGS} iinc.c libsys.a;; \
- *) \
- $(CC) -o iinc -I${SRCDIR}include iinc.c ${LIBS} ${XLIBS};; \
- esac
-idec: idec.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- $(CC) -o idec ${CFLAGS} idec.c libsys.a;; \
- *) \
- $(CC) -o idec -I${SRCDIR}include idec.c ${LIBS} ${XLIBS};; \
- esac
-icreate:icreate.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- $(CC) -o icreate ${CFLAGS} icreate.c libsys.a;; \
- *) \
- $(CC) -o icreate -I${SRCDIR}include icreate.c ${XLIBS};; \
- esac
-iopen: iopen.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- $(CC) -o iopen ${CFLAGS} iopen.c libsys.a;; \
- *) \
- $(CC) -o iopen -I${SRCDIR}include iopen.c ${XLIBS};; \
- esac
-iread: iread.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- ${CC} -o iread ${CFLAGS} iread.c libsys.a;; \
- *) \
- ${CC} -o iread -I${SRCDIR}include iread.c ${XLIBS};; \
- esac
-iwrite: iwrite.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- ${CC} -o iwrite ${CFLAGS} iwrite.c libsys.a;; \
- *) \
- ${CC} -o iwrite -I${SRCDIR}include iwrite.c ${XLIBS};; \
- esac
-istat: istat.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_6* ) \
- $(CC) -o istat ${CFLAGS} istat.c libsys.a;; \
- *) \
- $(CC) -o istat -I${SRCDIR}include istat.c ${XLIBS};; \
- esac
-fixit: fixit.c AFS_component_version_number.c
- $(CC) -o fixit -IDEST/include fixit.c libsys.a
-
-
-xfsinode: xfsinode.c AFS_component_version_number.c
- case "${SYS_NAME}" in \
- sgi_62 | sgi_64 ) \
- $(CC) -o xfsinode ${CFLAGS} xfsinode.c libsys.a;; \
- esac
-
-
-
-clean:
- rm -f *.o libsys.a xfsinode iinc idec icreate iopen istat core \
- rmtsysc rmtsyss *.o rmtsys.ss.c rmtsys.cs.c rmtsys.xdr.c rmtsys.h \
- rmtsysd AFS_component_version_number.c pagsh pagsh.krb
-
-beancount:
- wc -l *.c *.s
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# */
-
-SHELL =/bin/sh
-SRCDIR =DEST/
-DESTDIR =DEST/
-COMPONENT=tbutc
-
-include ../config/Makefile.${SYS_NAME}
-
-CC =${MT_CC}
-CFLAGS = ${DBG} -w -I${TOP_SRCDIR}/config ${MT_CFLAGS}
-
-LDFLAGS = ${DBG} ${XLDFLAGS}
-
-VICED =../viced
-VLSERVER=../vlserver
-LWP =../lwp
-LIBACL =../libacl
-UTIL =../util
-DIR =../dir
-VOL =../vol
-FSINT =../fsint
-BUTM =../butm
-BUTC =../butc
-BUCOORD = ../bucoord
-VOLSER = ../volser
-
-# ----------------------------------------------------------------
-# The default is to build butc without using the TSM API libraries.
-# To build with TSM support, set XBSA_NOBUILD="". Be sure you have
-# the TSM API version 3.7.1 installed.
-# ----------------------------------------------------------------
-XBSA_NOBUILD="true"
-
-BUCOORDOBJS=ubik_db_if.o ${BUCOORD}/volstub.o ${BUCOORD}/dlq.o \
- ${BUCOORD}/status.o ${BUCOORD}/bucoord_errs.o
-
-VOLSERLIBOBJ=${VOLSER}/volint.cs.o vsprocs.o ${VOLSER}/vsutils.o \
- ${VOLSER}/lockprocs.o ${VOLSER}/volint.xdr.o ${VOLSER}/volerr.o \
- ${VOLSER}/volint.ss.o AFS_component_version_number.o
-VOLSERLIBS=libvolser.a
-
-LWPOBJS =lock.o
-
-BUTMOBJS =file_tm.o
-BUTMLIBS =libbutm.a
-BUTMINCLS =${SRCDIR}include/afs/com_err.h ${SRCDIR}include/afs/butm.h
-BUTMINCLUDE=-I${SRCDIR}include
-
-BUTCOBJS =dbentries.o tcprocs.o lwps.o tcmain.o list.o recoverDb.o \
- tcudbprocs.o dump.o tcstatus.o butc_xbsa.o \
- ${LWPOBJS} ${BUCOORDOBJS}
-BUTCINCLS =${SRCDIR}include/afs/partition.h \
- ${SRCDIR}include/afs/volume.h \
- ${SRCDIR}include/afs/vlserver.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/ubik.h \
- ${SRCDIR}include/afs/cmd.h \
- ${SRCDIR}include/afs/butc.h \
- ${SRCDIR}include/afs/tcdata.h \
- ${SRCDIR}include/afs/bubasics.h \
- ${SRCDIR}include/afs/butm.h
-BUTCINCLUDE=-I. -I${SRCDIR}include
-BUTCLIBS =${SRCDIR}lib/afs/libbudb.a \
- ${SRCDIR}lib/afs/libbubasics.a \
- ${VOLSERLIBS} \
- ${BUTMLIBS} \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}/lib/libafsauthent.a \
- ${SRCDIR}/lib/libafsrpc.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libusd.a \
- ${SRCDIR}lib/afs/libprocmgmt.a \
- ${SRCDIR}lib/librx.a
-
-include ../config/Makefile.version
-
-#----------------------------------------------- BUTC
-
-butc: pre ${BUTCOBJS} ${BUTCLIBS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCOBJS} ${BUTCLIBS} $$hdrdir ${MTLIBS} ${XLIBS} -o butc
-
-dbentries.o: ${BUTC}/dbentries.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/dbentries.c
-
-tcprocs.o: ${BUTC}/tcprocs.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/tcprocs.c
-
-lwps.o: ${BUTC}/lwps.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/lwps.c
-
-tcmain.o: ${BUTC}/tcmain.c ${BUTCINCLS} AFS_component_version_number.c
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/tcmain.c
-
-list.o: ${BUTC}/list.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/list.c
-
-recoverDb.o: ${BUTC}/recoverDb.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/recoverDb.c
-
-tcudbprocs.o: ${BUTC}/tcudbprocs.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/tcudbprocs.c
-
-dump.o: ${BUTC}/dump.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/dump.c
-
-tcstatus.o: ${BUTC}/tcstatus.c ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/tcstatus.c
-
-butc_xbsa.o: ${BUTC}/butc_xbsa.c ${BUTC}/butc_xbsa.h ${BUTCINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUTC}/butc_xbsa.c
-
-#----------------------------------------------- BUCOORD
-
-ubik_db_if.o: ${BUCOORD}/ubik_db_if.c
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${BUCOORD}/ubik_db_if.c
-
-#----------------------------------------------- VOLSER
-# Build the libvolser.a library here. The file compiled
-# for is is vsprocs.c. The rest are from the VOLSER dir.
-
-libvolser.a: vsprocs.o ${VOLSERLIBOBJ}
- -rm -f libvolser.a
- ar rv libvolser.a ${VOLSERLIBOBJ}
- $(RANLIB) libvolser.a
-
-vsprocs.o: ${VOLSER}/vsprocs.c
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${VOLSER}/vsprocs.c
-
-#----------------------------------------------- LWP
-
-lock.o: ${LWP}/lock.c
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTCINCLUDE} $$hdrdir -c ${LWP}/lock.c
-
-#----------------------------------------------- BUTC
-
-file_tm.o: ${BUTM}/file_tm.c ${BUTMINCLS}
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir=-I"${XBSADIR}" ; \
- else hdrdir=-I"${XBSA_HDRDIR}" ; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then hdrdir="" ; fi; \
- ${CC} ${CFLAGS} $$xbsaflags ${BUTMINCLUDE} $$hdrdir -c ${BUTM}/file_tm.c
-
-libbutm.a: ${BUTMOBJS} AFS_component_version_number.o
- -rm -f libbutm.a
- ${AR} rv libbutm.a $(BUTMOBJS) AFS_component_version_number.o
- ${RANLIB} libbutm.a
-
-#-----------------------------------------------
-clean:
- rm -f *.o *.a core AFS_component_version_number.c butc
-
-pre:
- if [ "${XBSA_NOBUILD}" = "" ]; then xbsaflags="${XBSA_FLAGS}" ; \
- else xbsaflags=""; \
- fi; \
- if [ "$$xbsaflags" = "" ]; then \
- echo 'Will not build with XBSA'; \
- else \
- if [ "${XBSA_HDRDIR}" = "" ]; then hdrdir="${XBSADIR}" ; \
- else hdrdir="${XBSA_HDRDIR}" ; \
- fi; \
- if test "$$hdrdir" != "" -a ! -f "$$hdrdir/xbsa.h"; then \
- echo '*** This build of butc cannot support XBSA because'; \
- echo '*** the required header file "'$$hdrdir'/xbsa.h"'; \
- echo '*** does not exist. If you know the pathname to the'; \
- echo '*** header file, then use XBSA_HDRDIR="<path>" as a make'; \
- echo '*** argument.'; \
- echo '*** If you do not want to build an XBSA version of butc,'; \
- echo '*** then use XBSA_NOBUILD="true" as a make argument.'; \
- exit 2; \
- else \
- echo 'Will use XBSA header files from "'$$hdrdir'" (XBSA_HDRDIR)'; \
- fi; \
- fi;
-
-all: butc ${BUTMLIBS}
-install install.noversion: all
- ${INSTALL} butc ${DESTDIR}etc/butc
-
-noversion: install
-system: install
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../config/Makefile.${SYS_NAME}
-OPTIMIZE=-g
-CFLAGS = ${OPTIMIZE} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LIBDIR = ${DESTDIR}lib/
-AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a ${LIBDIR}afs/libaudit.a
-KAFSLIBS = ${LIBDIR}afs/libkauth.krb.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a \
- ${LIBDIR}afs/libauth.krb.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
- ${DESTDIR}lib/libdes.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
- ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a ${LIBDIR}afs/libaudit.a
-AUTHLIBS=afs_dynamic_auth afs_dynamic_kerbauth
-IMPORTS = -bI:/lib/aio.exp -bI:/lib/netinet.exp -bI:/lib/sockets.exp -bI:/lib/statcmd.exp
-LDFLAGS = -eafs_initialize ${IMPORTS} -lsys -lcsys -lc
-
-install install.noversion: $(AUTHLIBS)
- ${INSTALL} afs_dynamic_auth ${DESTDIR}root.client/usr/vice/etc
- ${INSTALL} afs_dynamic_kerbauth ${DESTDIR}root.client/usr/vice/etc
-clean:
- rm -f $(AUTHLIBS) $(AUTHFILES) so_locations
-
-afs_dynamic_auth: aix41_auth.o ${AFSLIBS} ${AUTHFILES}
- $(LD) -o afs_dynamic_auth aix41_auth.o $(AFSLIBS) ${AUTHFILES} ${XLIBS} ${LDFLAGS}
-
-afs_dynamic_kerbauth: aix41_auth_krb.o ${KAFSLIBS} ${AUTHFILES}
- $(LD) -o afs_dynamic_kerbauth aix41_auth_krb.o $(KAFSLIBS) ${AUTHFILES} ${XLIBS} ${LDFLAGS}
-
-aix41_auth.o: aix41_auth.c
- ${CC} ${CFLAGS} -c aix41_auth.c
-
-aix41_auth_krb.o: aix41_auth.c
- ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c aix41_auth.c -o aix41_auth_krb.o
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=tviced
-include ../config/Makefile.${SYS_NAME}
-
-CC=${MT_CC}
-INCLUDES=-I${TOP_SRCDIR}/config -I. -I.. -I${SRCDIR}include -I${SRCDIR}include/afs
-CFLAGS=${DBG} ${OPTMZ} -DNINTERFACE ${INCLUDES} ${MT_CFLAGS} -DRXDEBUG
-LDFLAGS=${DBG} ${XLDFLAGS}
-
-VICED=../viced
-VLSERVER=../vlserver
-LWP=../lwp
-LIBACL=../libacl
-UTIL=../util
-DIR=../dir
-VOL=../vol
-FSINT=../fsint
-
-VICEDOBJS=viced.o afsfileprocs.o host.o physio.o callback.o
-
-VLSERVEROBJS=vldbint.cs.o vldbint.xdr.o
-
-LWPOBJS=lock.o fasttime.o threadname.o
-
-LIBACLOBJS=aclprocs.o netprocs.o
-
-UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o \
- volparse.o flipbase64.o
-
-DIROBJS=buffer.o dir.o salvage.o
-
-VOLOBJS= vnode.o volume.o vutil.o partition.o fssync.o purge.o \
- clone.o devname.o common.o ihandle.o listinodes.o namei_ops.o
-
-FSINTOBJS= afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o
-
-objects= ${VICEDOBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \
- ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS}
-
-LIBS= ${SRCDIR}lib/libafsauthent.a \
- ${SRCDIR}lib/libafsrpc.a \
- ${SRCDIR}lib/afs/util.a
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: fileserver
-
-CRULE1=${CC} ${CFLAGS} -c $?
-
-viced.o: ${VICED}/viced.c
- ${CRULE1}
-
-afsfileprocs.o: ${VICED}/afsfileprocs.c
- ${CRULE1}
-
-host.o: ${VICED}/host.c
- ${CRULE1}
-
-physio.o: ${VICED}/physio.c
- ${CRULE1}
-
-callback.o: ${VICED}/callback.c
- ${CRULE1}
-
-assert.o: ${UTIL}/assert.c
- ${CRULE1};
-
-uuid.o: ${UTIL}/uuid.c
- ${CRULE1};
-
-serverLog.o: ${UTIL}/serverLog.c
- ${CRULE1};
-
-fileutil.o: ${UTIL}/fileutil.c
- ${CRULE1};
-
-volparse.o: ${UTIL}/volparse.c
- ${CRULE1};
-
-flipbase64.o: ${UTIL}/flipbase64.c
- ${CRULE1};
-
-netutils.o: ${UTIL}/netutils.c
- ${CRULE1};
-
-dirpath.o: ${UTIL}/dirpath.c
- ${CRULE1};
-
-lock.o: ${LWP}/lock.c
- ${CRULE1};
-
-fasttime.o: ${LWP}/fasttime.c
- ${CRULE1};
-
-threadname.o: ${LWP}/threadname.c
- ${CRULE1};
-
-aclprocs.o: ${LIBACL}/aclprocs.c
- ${CRULE1}
-
-netprocs.o: ${LIBACL}/netprocs.c
- ${CRULE1}
-
-vldbint.cs.o: ${VLSERVER}/vldbint.cs.c
- ${CRULE1}
-
-vldbint.xdr.o: ${VLSERVER}/vldbint.xdr.c
- ${CRULE1}
-
-buffer.o: ${DIR}/buffer.c
- ${CRULE1}
-
-dir.o: ${DIR}/dir.c
- ${CRULE1}
-
-salvage.o: ${DIR}/salvage.c
- ${CRULE1}
-
-vnode.o: ${VOL}/vnode.c
- ${CC} -c ${CFLAGS} ${VOL}/vnode.c
-
-volume.o: ${VOL}/volume.c
- ${CC} -c ${CFLAGS} ${VOL}/volume.c
-
-vutil.o: ${VOL}/vutil.c
- ${CC} -c ${CFLAGS} ${VOL}/vutil.c
-
-partition.o: ${VOL}/partition.c
- ${CC} -c ${CFLAGS} ${VOL}/partition.c
-
-fssync.o: ${VOL}/fssync.c
- ${CC} -c ${CFLAGS} ${VOL}/fssync.c
-
-purge.o: ${VOL}/purge.c
- ${CC} -c ${CFLAGS} ${VOL}/purge.c
-
-clone.o: ${VOL}/clone.c
- ${CC} -c ${CFLAGS} ${VOL}/clone.c
-
-nuke.o: ${VOL}/nuke.c
- ${CC} -c ${CFLAGS} ${VOL}/nuke.c
-
-devname.o: ${VOL}/devname.c
- ${CC} -c ${CFLAGS} ${VOL}/devname.c
-
-common.o: ${VOL}/common.c
- ${CC} -c ${CFLAGS} ${VOL}/common.c
-
-listinodes.o: ${VOL}/listinodes.c
- ${CC} -c ${CFLAGS} ${VOL}/listinodes.c
-
-ihandle.o: ${VOL}/ihandle.c
- ${CC} -c ${CFLAGS} ${VOL}/ihandle.c
-
-namei_ops.o: ${VOL}/namei_ops.c
- ${CC} -c ${CFLAGS} ${VOL}/namei_ops.c
-
-afsaux.o: ${FSINT}/afsaux.c
- ${CC} -c ${CFLAGS} ${FSINT}/afsaux.c
-
-afscbint.cs.o: ${FSINT}/afscbint.cs.c
- ${CC} -c ${CFLAGS} ${FSINT}/afscbint.cs.c
-
-afscbint.ss.o: ${FSINT}/afscbint.ss.c
- ${CC} -c ${CFLAGS} ${FSINT}/afscbint.ss.c
-
-afsint.cs.o: ${FSINT}/afsint.cs.c
- ${CC} -c ${CFLAGS} ${FSINT}/afsint.cs.c
-
-afsint.ss.o: ${FSINT}/afsint.ss.c
- ${CC} -c ${CFLAGS} ${FSINT}/afsint.ss.c
-
-afsint.xdr.o: ${FSINT}/afsint.xdr.c
- ${CC} -c ${CFLAGS} ${FSINT}/afsint.xdr.c
-
-fileserver: callback_clean1 viced.o ${objects} ${LIBS}
- ${CC} ${LDFLAGS} -o fileserver ${objects} ${LIBS} ${MTLIBS} ${XLIBS}
-
-${DESTDIR}root.server/usr/afs/bin/fileserver : fileserver
- ${INSTALL} -ns fileserver ${DESTDIR}root.server/usr/afs/bin/fileserver
-
-install: all ${DESTDIR}root.server/usr/afs/bin/fileserver
-
-system: install
-
-callback_clean1 callback_clean2:
- case ${SYS_NAME} in \
- ncrx86_*) \
- ${RM} -f callback.o;\
- echo ${RM} callback.o;;\
- esac;
-
-lint:
-
-clean:
- rm -f *.o fileserver core AFS_component_version_number.c
-
-beancount:
- wc -l *.c *.h
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=ubik
-include ../config/Makefile.${SYS_NAME}
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I./ -I${SRCDIR}include ${XCFLAGS}
-UKERNELDIR=../libuafs/
-LIBOBJS=disk.o remote.o beacon.o recovery.o ubik.o vote.o lock.o phys.o \
- ubik_int.cs.o ubik_int.ss.o ubik_int.xdr.o ubikcmd.o \
- ubikclient.o uerrors.o
-INCLS= ${SRCDIR}include/lwp.h ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/lock.h ubik.h ubik_int.h
-LIBS=${SRCDIR}lib/librx.a ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/util.a ${SRCDIR}lib/afs/libsys.a ${XLIBS}
-RXGEN=${SRCDIR}bin/rxgen
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-UKSRCS=ubik.h ubikclient.c uerrors.c
-
-include ../config/Makefile.version
-
-all: libubik.a test
-
-test: utst_server utst_client udebug
- ${INSTALL} udebug ${DESTDIR}bin
- ${INSTALL} udebug ${DESTDIR}root.server/usr/afs/bin
-
-clean:
- rm -f *.o utst_server utst_client udebug *.a *.cs.c *.ss.c *.xdr.c
- rm -f utst_int.h ubik_int.h uerrors.c ubik.h core AFS_component_version_number.c Kubik_int.h
-
-system: install
-
-kinstall:
- @echo No $@ source here.
-
-ukinstall webinstall: ${UKSRCS} Kubik_int.h Kubik_int.xdr.c Kubik_int.cs.c
- set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
- set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} Kubik_int.h ${UKERNELDIR}afsint/ubik_int.h
- ${INSTALL} Kubik_int.cs.c ${UKERNELDIR}afsint/ubik_int.cs.c
- ${INSTALL} Kubik_int.xdr.c ${UKERNELDIR}afsint/ubik_int.xdr.c
- ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
-
-beancount:
- wc *.[ch] *.xg
-
-install: libubik.a ukinstall
- ${INSTALL} libubik.a ${DESTDIR}lib
- ${INSTALL} ubik.h ubik_int.h ${DESTDIR}include
-
-utst_server: utst_server.o utst_int.ss.o utst_int.xdr.o libubik.a
- ${CC} ${CFLAGS} -o utst_server utst_server.o utst_int.ss.o utst_int.xdr.o libubik.a $(LIBS)
-
-utst_client: utst_client.o utst_int.cs.o utst_int.xdr.o libubik.a
- ${CC} ${CFLAGS} -o utst_client utst_client.o utst_int.cs.o utst_int.xdr.o libubik.a $(LIBS)
-
-udebug: udebug.o libubik.a
- ${CC} ${CFLAGS} -o udebug udebug.o libubik.a $(LIBS)
-
-ubik_int.ss.c ubik_int.cs.c ubik_int.xdr.c ubik_int.h: ubik_int.xg
- ${RXGEN} -x ubik_int.xg
-
-Kubik_int.cs.c: ubik_int.xg Kubik_int.h
- ${RXGEN} -x -k -C -o Kubik_int.cs.c ubik_int.xg
-
-Kubik_int.xdr.c: ubik_int.xg
- ${RXGEN} -x -k -c -o Kubik_int.xdr.c ubik_int.xg
-
-Kubik_int.h: ubik_int.xg
- ${RXGEN} -x -k -h -o Kubik_int.h ubik_int.xg
-
-utst_int.ss.o: utst_int.ss.c utst_int.xdr.c
-utst_int.cs.o: utst_int.cs.c utst_int.xdr.c
-utst_int.xdr.o: utst_int.xdr.c utst_int.h
-utst_int.ss.c utst_int.cs.c utst_int.xdr.c utst_int.h: utst_int.xg
- ${RXGEN} utst_int.xg
-
-utst_server.o: utst_server.c ${INCLS} utst_int.h AFS_component_version_number.c
-utst_client.o: utst_client.c ${INCLS} utst_int.h AFS_component_version_number.c
-
-udebug.o: udebug.c ${INCLS} AFS_component_version_number.c
- ${CC} ${CFLAGS} -g -I. -I${DESTDIR}/include -I${DESTDIR}/include/afs -I${DESTDIR}/ -c udebug.c
-
-uerrors.o: uerrors.c
-
-uerrors.c ubik.h: uerrors.et ubik.p.h
- rm -f ubik.h uerrors.c; ${COMPILE_ET} uerrors -h ubik
-
-libubik.a: ${LIBOBJS} AFS_component_version_number.o
- -rm -f $@
- ar rv $@ ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) $@
-
-disk.o: disk.c ${INCLS}
-remote.o: remote.c ${INCLS}
-beacon.o: beacon.c ${INCLS}
-lock.o: lock.c ${INCLS}
-recovery.o: recovery.c ${INCLS}
-ubik.o: ubik.c ${INCLS}
-phys.o: phys.c ${INCLS}
-vote.o: vote.c ${INCLS}
-ubikcmd.o: ubikcmd.c ${INCLS}
-ubikclient.o: ubikclient.c ${INCLS}
-ubik_int.ss.o: ubik_int.ss.c ${INCLS}
-ubik_int.cs.o: ubik_int.cs.c ${INCLS}
-ubik_int.xdr.o: ubik_int.xdr.c ${INCLS}
-utst_int.ss.o: utst_int.ss.c ${INCLS} utst_int.h
-utst_int.cs.o: utst_int.cs.c ${INCLS} utst_int.h
-utst_int.xdr.o: utst_int.xdr.c ${INCLS} utst_int.h
-
-
-
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=update
-include ../config/Makefile.${SYS_NAME}
-
-LIBRX=${SRCDIR}lib/librx.a
-LIBS = ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a ${LIBRX} ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libsys.a
-CFLAGS= ${DBUG} -I${SRCDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
-
-PROGS=upclient upserver
-
-include ../config/Makefile.version
-
-all: ${PROGS}
-
-upclient: client.o update.cs.o utils.o ${LIBS}
- ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
-
-upserver: server.o utils.o update.ss.o ${LIBS}
- ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
-
-utils.o: utils.c update.h global.h
-
-client.o server.o: update.h global.h AFS_component_version_number.c
-
-update.cs.c update.ss.c update.er.c update.h: update.xg
- ${SRCDIR}bin/rxgen update.xg
-clean:
- rm -f upclient upserver *.o update.ss.c update.cs.c update.xdr.c update.h core\
- AFS_component_version_number.c
-
-system: install
-install : all
- ${INSTALL} upserver ${DESTDIR}root.server/usr/afs/bin
- ${INSTALL} upclient ${DESTDIR}root.server/usr/afs/bin
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=ptserver
-include ../config/Makefile.${SYS_NAME}
-
-RXGEN=${SRCDIR}bin/rxgen
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-CFLAGS = $(DBG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-#####################################################################
-# include files
-INCLS=${SRCDIR}include/afs/param.h \
- usd.h
-
-LINCLS=usd.h
-
-#####################################################################
-include ../config/Makefile.version
-
-clean:
- $(RM) -f *.o libusd.a \
- core AFS_component_version_number.c
-
-########################################################################
-# build libusd.a
-LIBOBJS=usd_file.o
-
-libusd.a: ${LIBOBJS} AFS_component_version_number.o
- $(RM) -f libusd.a
- $(AR) r libusd.a ${LIBOBJS} AFS_component_version_number.o
- $(RANLIB) libusd.a
-
-usd_file.o: usd_file.c $(LINCLS)
-
-#######################################################################
-system: install
-
-kinstall:
- @echo No kernel source here.
-
-
-${DESTDIR}lib/afs/libusd.a: libusd.a
- ${INSTALL} $? $@
-
-
-install: ${DESTDIR}lib/afs/libusd.a
- ${INSTALL} usd.h ${DESTDIR}include/afs
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-include ../../config/Makefile.${SYS_NAME}
-#include ../../config/Makefile.version
-
-INSTALL=${SRCDIR}bin/install
-RXGEN=${SRCDIR}bin/rxgen
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
-CFLAGS = $(DBUG) -I${SRCDIR}include ${INCDIRS} ${XCFLAGS}
-LIBUSD=DEST/lib/afs/libusd.a
-
-#####################################################################
-# include files
-INCLS=${SRCDIR}include/afs/param.h ${SRCDIR}include/afs/usd.h
-
-
-# build usd_test
-usd_test: usd_test.o ${LIBUSD} $(INCLS)
- $(CC) ${CFLAGS} -o usd_test usd_test.o ${LIBUSD} ${XLIBS}
-
-usd_test.o: usd_test.c
-
-clean:
- -rm -f *.o usd_test \
- core AFS_component_version_number.c
-
-#######################################################################
-
-test tests: usd_test
-
-kinstall:
- @echo No kernel source here.
-
-
-
-
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# uss Makefile
-
-
-SHELL=/bin/sh
-COMPONENT=uss
-include ../config/Makefile.${SYS_NAME}
-
-#
-# This makefile creates the following things:
-#
-PROGRAMS = uss
-
-#
-# and here's what it uses to do so:
-#
-LIBS = ${SRCDIR}lib/afs/libvolser.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libprot.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/afs/libcom_err.a\
- ${SRCDIR}lib/afs/util.a \
- ${XLIBS}
-
-CFLAGS = ${DBUG} -I/usr/include -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include -I. ${XCFLAGS}
-OBJS = uss_procs.o \
- uss_common.o \
- uss_vol.o \
- uss_acl.o \
- uss_ptserver.o \
- uss_kauth.o \
- uss_fs.o \
- lex.yy.o \
- y.tab.o
-
-include ../config/Makefile.version
-
-#
-# Top-level options:
-#
-all : ${PROGRAMS}
-
-install: all
- ${INSTALL} uss ${DESTDIR}etc
-
-system: install
-
-clean:
- rm -f *.o ${PROGRAMS} y.tab.c y.tab.h lex.yy.c core AFS_component_version_number.c
-
-###### uss program ######
-
-uss: uss.o ${OBJS}
- ${CC} ${CFLAGS} -o uss uss.o ${OBJS} ${LIBS}
-
-uss.o: uss.c AFS_component_version_number.c
- ${CC} -c ${CFLAGS} uss.c
-
-###### common stuff ######
-
-uss_procs.o : uss_procs.c
- ${CC} -c ${CFLAGS} uss_procs.c
-
-uss_common.o : uss_common.c
- ${CC} -c ${CFLAGS} uss_common.c
-
-uss_vol.o : uss_vol.c
- ${CC} -c ${CFLAGS} uss_vol.c
-
-uss_acl.o : uss_acl.c
- ${CC} -c ${CFLAGS} uss_acl.c
-
-uss_ptserver.o : uss_ptserver.c
- ${CC} -c ${CFLAGS} uss_ptserver.c
-
-uss_kauth.o : uss_kauth.c
- ${CC} -c ${CFLAGS} uss_kauth.c
-
-uss_fs.o : uss_fs.c
- ${CC} -c ${CFLAGS} uss_fs.c
-
-lex.yy.o : lex.yy.c y.tab.c
- ${CC} -c ${CFLAGS} lex.yy.c
-
-lex.yy.c : lex.c
- ${LEX} lex.c
-
-y.tab.o : y.tab.c
- ${CC} -c ${CFLAGS} y.tab.c
-
-uss.c: uss_common.h uss_procs.h uss_kauth.h uss_fs.h
-
-uss_procs.c : uss_procs.h uss_common.h uss_acl.h
-
-uss_common.c : uss_common.h
-
-uss_vol.c : uss_vol.h uss_common.h uss_fs.h
-
-uss_acl.c : uss_acl.h uss_common.h uss_fs.h
-
-uss_ptserver.c: uss_ptserver.h
-
-uss_kauth.c: uss_kauth.h uss_common.h
-
-uss_fs.c: uss_fs.h
-
-y.tab.c : grammar.y
- ${YACC} -d grammar.y
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=util
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I. -I$(SRCDIR)include ${XCFLAGS}
-LDFLAGS = ${OPTMZ} ${XLDFLAGS}
-
-objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
- hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
- dirpath.o fileutil.o netutils.o flipbase64.o \
- afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
-
-headers = assert.h potpourri.h itc.h errors.h afsutil.h pthread_glock.h \
- dirpath.h afs_atomlist.h afs_lhash.h
-
-include ../config/Makefile.version
-
-system noversion: install
-
-all: util.a sys
-
-${DESTDIR}bin/sys: sys
- ${INSTALL} sys ${DESTDIR}bin/sys
-
-install0: ${DESTDIR}include/afs/dirpath.h \
- ${DESTDIR}include/afs/pthread_nosigs.h \
- ${objects} util.a ${DESTDIR}bin/sys ${someheaders} doc
- ${INSTALL} util.a ${DESTDIR}lib/afs
- ${INSTALL} util.a ${DESTDIR}lib/afs/libafsutil.a
- ${INSTALL} assert.h errors.h vice.h remote.h ktime.h fileutil.h \
- netutils.h packages.h afsutil.h pthread_glock.h \
- afs_atomlist.h afs_lhash.h \
- ${DESTDIR}include/afs
- ${INSTALL} potpourri.h ${DESTDIR}include
-
-install: install0 kinstall ukinstall
-
-install_headers:
- ${INSTALL} assert.h errors.h vice.h remote.h ktime.h fileutil.h \
- netutils.h packages.h afsutil.h pthread_glock.h \
- afs_atomlist.h afs_lhash.h \
- ${DESTDIR}include/afs
-
-kinstall:
- ${INSTALL} vice.h ../libafs/afs
- ${INSTALL} base64.c ../libafs/afs/afs_base64.c
- ${INSTALL} uuid.c ../libafs/afs/afs_uuid.c
- ${INSTALL} afs_atomlist.c ../libafs/afs
- ${INSTALL} afs_atomlist.h ../libafs/afs
- ${INSTALL} afs_lhash.c ../libafs/afs
- ${INSTALL} afs_lhash.h ../libafs/afs
-
-ukinstall webinstall: install0
- ${INSTALL} pthread_glock.h vice.h errors.h afsutil.h dirpath.h fileutil.h netutils.h casestrcpy.c dirpath.c hostparse.c fileutil.c netutils.c ../libuafs/afs
- ${INSTALL} uuid.c ../libuafs/afs/afs_uuid.c
- ${INSTALL} afs_atomlist.c ../libuafs/afs
- ${INSTALL} afs_atomlist.h ../libuafs/afs
- ${INSTALL} afs_lhash.c ../libuafs/afs
- ${INSTALL} afs_lhash.h ../libuafs/afs
-
-${DESTDIR}include/afs/dirpath.h: dirpath.h
- ${INSTALL} dirpath.h ${DESTDIR}include/afs
-
-${DESTDIR}include/afs/pthread_nosigs.h: pthread_nosigs.h
- ${INSTALL} pthread_nosigs.h ${DESTDIR}include/afs
-
-doc:
- echo no documents in this directory
-
-util.a: ${objects} AFS_component_version_number.o
- rm -f util.a
- $(AR) r util.a ${objects} AFS_component_version_number.o
- $(RANLIB) util.a
-
-volparse.o: volparse.c
- ${CC} ${CFLAGS} -c volparse.c
-
-snprintf.o: snprintf.c
- ${CC} ${CFLAGS} -c snprintf.c
-
-base64.o: base64.c
- ${CC} ${CFLAGS} -c base64.c
-
-hostparse.o: hostparse.c afsutil.h
- ${CC} ${CFLAGS} -c hostparse.c
-
-ktime.o: ktime.c
- ${CC} ${CFLAGS} -c ktime.c
-
-kreltime.o: kreltime.c
- ${CC} ${CFLAGS} -c kreltime.c
-
-get_krbrlm.o: get_krbrlm.c
- ${CC} ${CFLAGS} -c get_krbrlm.c
-
-uuid.o: uuid.c
- ${CC} ${CFLAGS} -c uuid.c
-
-sys.o: sys.c ${SRCDIR}include/afs/param.h AFS_component_version_number.c
- ${CC} ${CFLAGS} -c sys.c
-
-sys: sys.o
- ${CC} ${LDFLAGS} -o sys sys.o
-
-isathing.o: isathing.c
- ${CC} ${CFLAGS} -c isathing.c
-
-serverLog.o: serverLog.c
- ${CC} ${CFLAGS} -c serverLog.c
-
-dirpath.o: dirpath.c dirpath.h
- ${CC} ${CFLAGS} -c dirpath.c
-
-fileutil.o: fileutil.c fileutil.h
- ${CC} ${CFLAGS} -c fileutil.c
-
-netutils.o: netutils.c netutils.h
- ${CC} ${CFLAGS} -c netutils.c
-
-afs_atomlist.o: afs_atomlist.c afs_atomlist.h
- ${CC} ${CFLAGS} -c afs_atomlist.c
-
-afs_lhash.o: afs_lhash.c afs_lhash.h afs_atomlist.h
- ${CC} ${CFLAGS} -c afs_lhash.c
-
-clean:
- rm -f ${objects} sys
- rm -f util.a *.o core AFS_component_version_number.c
-
-beancount:
- wc -l *.c *.h
-
-test:
- cd test; $(MAKE)
-
-/* Changed for Debian by Sam Hartman <hartmans@mit.edu>
- * conform to FHS
- */
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/util/dirpath.c,v 1.9 2001/07/15 07:22:31 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/util/dirpath.c,v 1.10 2001/09/11 15:48:47 hartmans Exp $");
#include <stddef.h>
#include <stdlib.h>
/* Additional macros for ease of use */
/* buf is expected to be atleast AFS_PATH_MAX bytes long */
#define AFSDIR_SERVER_DIRPATH(buf, dir) \
- strcompose(buf, AFSDIR_PATH_MAX, dirPathArray[AFSDIR_SERVER_AFS_DIRPATH_ID], "/", dir, NULL)
+ strcompose(buf, AFSDIR_PATH_MAX, serverPrefix, dir, NULL)
#define AFSDIR_SERVER_FILEPATH(buf, dir, file) \
- strcompose(buf, AFSDIR_PATH_MAX, dir, "/", file, NULL)
+ strcompose(buf, AFSDIR_PATH_MAX, serverPrefix, dir, "/", file, NULL)
#define AFSDIR_CLIENT_DIRPATH(buf, dir) \
- strcompose(buf, AFSDIR_PATH_MAX, dirPathArray[AFSDIR_CLIENT_VICE_DIRPATH_ID], "/", dir, NULL)
+ strcompose(buf, AFSDIR_PATH_MAX, clientPrefix, dir, NULL)
#define AFSDIR_CLIENT_FILEPATH(buf, dir, file) \
- strcompose(buf, AFSDIR_PATH_MAX, dirPathArray[AFSDIR_CLIENT_VICE_DIRPATH_ID], "/", dir, "/", file, NULL)
+ strcompose(buf, AFSDIR_PATH_MAX, clientPrefix, dir, "/", file, NULL)
/* initAFSDirPath() -- External users call this function to initialize
static void initDirPathArray(void)
{
char *pathp;
-
+ const char * clientPrefix = "";
+ const char * serverPrefix = "";
+
#ifdef AFS_NT40_ENV
char *buf;
int status;
strcpy(ntClientConfigDirShort, ntClientConfigDirLong);
}
FilepathNormalize(ntClientConfigDirShort);
+ clientPrefix = ntClientConfigDirShort;
/* setup the root server directory path (/usr/afs equivalent) */
strcpy(afsSrvDirPath, ntServerInstallDirShort);
/* setup top level dirpath (/usr equivalent); valid for server ONLY */
strcpy(dirPathArray[AFSDIR_USR_DIRPATH_ID], ntServerInstallDirShort);
+ serverPrefix = ntServerInstallDirShort;
strcat(dirPathArray[AFSDIR_USR_DIRPATH_ID], AFSDIR_CANONICAL_USR_DIRPATH);
#else /* AFS_NT40_ENV */
strcpy(dirPathArray[AFSDIR_SERVER_AFS_DIRPATH_ID], afsSrvDirPath);
pathp = dirPathArray[AFSDIR_SERVER_ETC_DIRPATH_ID];
- strcompose(pathp, AFSDIR_PATH_MAX, "/etc/openafs/server", NULL);
+ AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_SERVER_ETC_DIR);
pathp = dirPathArray[AFSDIR_SERVER_BIN_DIRPATH_ID];
- strcompose(pathp, AFSDIR_PATH_MAX, "/usr/lib/openafs", NULL);
+ AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_SERVER_BIN_DIR);
pathp = dirPathArray[AFSDIR_SERVER_CORES_DIRPATH_ID];
- strcompose(pathp, AFSDIR_PATH_MAX, "/var/lib/openafs/cores", NULL);
-
+ AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_CORES_DIR);
pathp = dirPathArray[AFSDIR_SERVER_DB_DIRPATH_ID];
- strcompose(pathp, AFSDIR_PATH_MAX, "/var/lib/openafs/db", NULL);
+ AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_DB_DIR);
pathp = dirPathArray[AFSDIR_SERVER_LOGS_DIRPATH_ID];
- strcompose(pathp, AFSDIR_PATH_MAX, "/var/log/openafs", NULL);
+ AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_LOGS_DIR);
pathp = dirPathArray[AFSDIR_SERVER_LOCAL_DIRPATH_ID];
AFSDIR_SERVER_DIRPATH(pathp, AFSDIR_LOCAL_DIR);
strcpy(dirPathArray[AFSDIR_CLIENT_VICE_DIRPATH_ID], afsClntDirPath);
pathp = dirPathArray[AFSDIR_CLIENT_ETC_DIRPATH_ID];
- AFSDIR_CLIENT_DIRPATH(pathp, AFSDIR_ETC_DIR);
+ AFSDIR_CLIENT_DIRPATH(pathp, AFSDIR_CLIENT_ETC_DIR);
#endif /* AFS_NT40_ENV */
/* server file paths */
pathp = dirPathArray[AFSDIR_SERVER_THISCELL_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_THISCELL_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_THISCELL_FILE);
pathp = dirPathArray[AFSDIR_SERVER_CELLSERVDB_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_CELLSERVDB_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_CELLSERVDB_FILE);
pathp = dirPathArray[AFSDIR_SERVER_NOAUTH_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_NOAUTH_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_NOAUTH_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BUDBLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_BUDBLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_BUDBLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_TAPECONFIG_FILEPATH_ID];
AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BACKUP_DIR, AFSDIR_TAPECONFIG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_KALOGDB_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_KALOGDB_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_KALOGDB_FILE);
pathp = dirPathArray[AFSDIR_SERVER_KALOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_KALOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_KALOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_KADB_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, "/var/lib/openafs/db", AFSDIR_KADB_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_DB_DIR, AFSDIR_KADB_FILE);
pathp = dirPathArray[AFSDIR_SERVER_NTPD_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BIN_DIR, AFSDIR_NTPD_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_BIN_DIR, AFSDIR_NTPD_FILE);
pathp = dirPathArray[AFSDIR_SERVER_PRDB_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, "/var/lib/openafs/db", AFSDIR_PRDB_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_DB_DIR, AFSDIR_PRDB_FILE);
pathp = dirPathArray[AFSDIR_SERVER_PTLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_PTLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_PTLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_KCONF_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_KCONF_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_KCONF_FILE);
pathp = dirPathArray[AFSDIR_SERVER_VLDB_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, "/var/lib/openafs/db", AFSDIR_VLDB_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_DB_DIR, AFSDIR_VLDB_FILE);
pathp = dirPathArray[AFSDIR_SERVER_VLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_VLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_VLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_CORELOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_CORE_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_CORE_FILE);
pathp = dirPathArray[AFSDIR_SERVER_SLVGLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_SLVGLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_SLVGLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_SALVAGER_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_BIN_DIRPATH, AFSDIR_SALVAGER_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_BIN_DIR, AFSDIR_SALVAGER_FILE);
pathp = dirPathArray[AFSDIR_SERVER_SLVGLOCK_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_SLVGLOCK_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_SLVGLOCK_FILE);
pathp = dirPathArray[AFSDIR_SERVER_KEY_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_KEY_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_KEY_FILE);
pathp = dirPathArray[AFSDIR_SERVER_ULIST_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_ULIST_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_ULIST_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BOZCONF_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_BOZCONF_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BOSCONFIG_DIR, AFSDIR_BOZCONF_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BOZCONFNEW_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_BOZCONFNEW_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BOSCONFIG_DIR, AFSDIR_BOZCONFNEW_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BOZLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_BOZLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_BOZLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BOZINIT_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_BOZINIT_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BOSCONFIG_DIR, AFSDIR_BOZINIT_FILE);
pathp = dirPathArray[AFSDIR_SERVER_BOSVR_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, "/usr/sbin", AFSDIR_BOSVR_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_BOSSERVER_DIR, AFSDIR_BOSVR_FILE);
pathp = dirPathArray[AFSDIR_SERVER_VOLSERLOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_VOLSERLOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_VOLSERLOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_ROOTVOL_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_ROOTVOL_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_SERVER_ETC_DIR, AFSDIR_ROOTVOL_FILE);
pathp = dirPathArray[AFSDIR_SERVER_HOSTDUMP_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_HOSTDUMP_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_HOSTDUMP_FILE);
pathp = dirPathArray[AFSDIR_SERVER_CLNTDUMP_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_CLNTDUMP_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_CLNTDUMP_FILE);
pathp = dirPathArray[AFSDIR_SERVER_CBKDUMP_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_CBKDUMP_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_CBKDUMP_FILE);
pathp = dirPathArray[AFSDIR_SERVER_OLDSYSID_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_OLDSYSID_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_OLDSYSID_FILE);
pathp = dirPathArray[AFSDIR_SERVER_SYSID_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_SYSID_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_SYSID_FILE);
pathp = dirPathArray[AFSDIR_SERVER_FILELOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_FILELOG_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOGS_DIR, AFSDIR_FILELOG_FILE);
pathp = dirPathArray[AFSDIR_SERVER_AUDIT_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_AUDIT_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_AUDIT_FILE);
pathp = dirPathArray[AFSDIR_SERVER_NETINFO_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH,
- AFSDIR_NETINFO_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_NETINFO_FILE);
pathp = dirPathArray[AFSDIR_SERVER_NETRESTRICT_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_NETRESTRICT_FILE);
-
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_LOCAL_DIR, AFSDIR_NETRESTRICT_FILE);
pathp = dirPathArray[AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_AFS_DIRPATH"/"AFSDIR_MIGR_DIR, AFSDIR_WEIGHTINGCONST_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_MIGR_DIR, AFSDIR_WEIGHTINGCONST_FILE);
pathp = dirPathArray[AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_CANONICAL_SERVER_AFS_DIRPATH"/"AFSDIR_MIGR_DIR, AFSDIR_THRESHOLDCONST_FILE);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_MIGR_DIR, AFSDIR_THRESHOLDCONST_FILE);
pathp = dirPathArray[AFSDIR_SERVER_MIGRATELOG_FILEPATH_ID];
- AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_MIGR_DIR, AFSDIR_CANONICAL_SERVER_AFS_DIRPATH"/"AFSDIR_MIGRATE_LOGNAME);
+ AFSDIR_SERVER_FILEPATH(pathp, AFSDIR_MIGR_DIR, AFSDIR_MIGRATE_LOGNAME);
-
/* client file paths */
#ifdef AFS_NT40_ENV
ntClientConfigDirShort, AFSDIR_CELLSERVDB_FILE_NTCLIENT);
#else
pathp = dirPathArray[AFSDIR_CLIENT_THISCELL_FILEPATH_ID];
- AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_ETC_DIR, AFSDIR_THISCELL_FILE);
+ AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_CLIENT_ETC_DIR, AFSDIR_THISCELL_FILE);
pathp = dirPathArray[AFSDIR_CLIENT_CELLSERVDB_FILEPATH_ID];
- AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_ETC_DIR, AFSDIR_CELLSERVDB_FILE);
+ AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_CLIENT_ETC_DIR, AFSDIR_CELLSERVDB_FILE);
#endif /* AFS_NT40_ENV */
pathp = dirPathArray[AFSDIR_CLIENT_NETINFO_FILEPATH_ID];
- AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_ETC_DIR, AFSDIR_NETINFO_FILE);
+ AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_CLIENT_ETC_DIR, AFSDIR_NETINFO_FILE);
pathp = dirPathArray[AFSDIR_CLIENT_NETRESTRICT_FILEPATH_ID];
- AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_ETC_DIR, AFSDIR_NETRESTRICT_FILE);
+ AFSDIR_CLIENT_FILEPATH(pathp, AFSDIR_CLIENT_ETC_DIR, AFSDIR_NETRESTRICT_FILE);
initFlag = 1; /* finished dirpath initialization */
return;
}
return (const char *)dirPathArray[string_id];
}
+/*
+ * LocalizePathHead() -- Make path relative to local part
+ *
+ * ConstructLocalPath takes a path and a directory that path should
+ * be considered relative to. This function checks the given path
+ * for a prefix that represents a canonical path. If such a prefix
+ * is found, the path is adjusted to remove the prefix and the path
+ * is considered relative to the local version of that path.
+ */
+
+/* The following array maps cannonical parts to local parts. It
+ * might seem reasonable to simply construct an array in parallel to
+ * dirpatharray but it turns out you don't want translations for all
+ local paths.
+*/
+
+struct canonmapping {
+ const char * canonical;
+ const char * local;
+};
+static struct canonmapping CanonicalTranslations[] = {
+ {AFSDIR_CANONICAL_SERVER_ETC_DIRPATH, AFSDIR_SERVER_ETC_DIR},
+ { AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH, AFSDIR_LOGS_DIR},
+ { AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH, AFSDIR_LOCAL_DIR},
+ {AFSDIR_CANONICAL_SERVER_BIN_DIRPATH, AFSDIR_SERVER_BIN_DIR },
+ { NULL, NULL }
+};
+
+static void LocalizePathHead ( const char **path, const char **relativeTo)
+{
+ struct canonmapping *current;
+ for (current = CanonicalTranslations; current->local != NULL ; current++) {
+ int canonlength = strlen (current->canonical);
+ if (strncmp (*path, current->canonical, canonlength) == 0 ) {
+ (*path) += canonlength;
+ if (**path == '/')
+ (*path)++;
+ *relativeTo = current->local;
+ return;
+ }
+ }
+}
#ifdef AFS_NT40_ENV
* 2) If cpath begins with a drive letter but is not fully qualified,
* i.e., it is drive relative, then the function fails with EINVAL.
* 3) If cpath begins with '/' (or '\') then the path returned is the
- * concatenation AFS-server-install-dir + cpath.
+ * concatenation AFS-server-install-dir + cpath after translating for localization.
* 4) Otherwise the path returned is the concatenation
* AFS-server-install-dir + relativeTo + cpath.
*
cpath++;
}
+ LocalizePathHead (&cpath,&relativeTo);
if ((((*cpath >= 'a') && (*cpath <= 'z')) ||
((*cpath >= 'A') && (*cpath <= 'Z'))) &&
(*(cpath+1) == ':')) {
cpath++;
}
+ LocalizePathHead (&cpath, &relativeTo);
if (*cpath == '/') {
newPath = (char *)malloc(strlen(cpath) + 1);
if (!newPath) {
+++ /dev/null
-/* Changed for Debian by Sam Hartman <hartmans@mit.edu>
- * conform to FHS
- */
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License. For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
-
- */
-
-/* Copyright (C) 1998 Transarc Corporation - All rights reserved.
- */
-
-#ifndef _DIRPATH_H
-#define _DIRPATH_H
-
-/* Dirpath package: Rationale and Usage
- *
- * With the port of AFS to Windows NT, it becomes necessary to support
- * storing AFS system files (binaries, logs, etc.) in a user-specified
- * installation directory. This breaks from the traditional notion of
- * all AFS system files being stored under /usr/afs or /usr/vice.
- *
- * The core concept is that there is a dynamically determined installation
- * directory that is the prefix to a well-known AFS tree. The structure
- * of this well-known AFS tree remains unchanged. For example, AFS server
- * binaries reside in <install dir>/usr/afs/bin, server configuration files
- * reside in <install dir>/usr/afs/etc, etcetera. This scheme allows the
- * flexibility required by NT, without requiring file-location changes
- * on Unix (for which <install dir> can simply be null).
- *
- * Thus file paths can no longer be hard-coded; rather, all file paths are
- * specified via the macros provided by this package.
- *
- * Utilizing a dynamically determined installation directory forces the
- * notion of local versus canonical (wire-format) paths. A local path is
- * fully qualified (with a syntax determined by the native filesystem type)
- * whereas a canonical path specifies location only within the well-known AFS
- * tree. Supporting the notion of canonical paths allows the same path to
- * be sent to servers on different machines, having different installation
- * directories, with the desired result.
- *
- * For example, 'bos create <mach> kaserver simple /usr/afs/bin/kasever' will
- * work both on a Unix machine, where the kaserver executable actually resides
- * in /usr/afs/bin, and on a NT machine, where the kaserver may reside in
- * C:/Program Files/Transarc/AFS Server/usr/afs/bin.
- *
- * Conversion functions are provided that translate canonical (wire-format)
- * paths to fully qualified local paths; see the documentation in dirpath.c
- * for details. Note that these conversion functions also accomodate fully
- * qualified paths on the wire, for exceptional cases where this feature
- * may be required. Again, these conversion functions have been implemented
- * such that no file-location changes are required on Unix.
- *
- * The path macros provided here are divided into local (AFSDIR_*) and
- * canonical (AFSDIR_CANONICAL_*). The canonical macros MUST be used by
- * commands that send a non-user-specified path to a server (i.e., over
- * the wire). The local macros MUST be used in all other cases.
- */
-
-
-
-#include <afs/param.h>
-
-#ifdef AFS_NT40_ENV
-#include <windef.h>
-#endif
-#include <limits.h>
-
-/* Max dir path size for afs install dirs */
-#ifdef AFS_NT40_ENV
-#define AFSDIR_PATH_MAX MAX_PATH
-#else /* unices */
-#define AFSDIR_PATH_MAX _POSIX_PATH_MAX
-#endif
-
-
-/* --------------------- Exported functions ---------------------- */
-
-
-#define AFSDIR_CLIENT_PATHS_OK 0x1 /* client paths initialized correctly */
-#define AFSDIR_SERVER_PATHS_OK 0x2 /* server paths initialized correctly */
-extern unsigned int initAFSDirPath(void);
-
-extern int
-ConstructLocalPath(const char *cpath,
- const char *relativeTo,
- char **fullPathBufp);
-extern int
-ConstructLocalBinPath(const char *cpath,
- char **fullPathBufp);
-extern int
-ConstructLocalLogPath(const char *cpath,
- char **fullPathBufp);
-
-
-
-/* ----------------- Directory/file name macros ------------------ */
-
-/* afs installation dir names */
-#define AFSDIR_ETC_DIR ""
-#define AFSDIR_BIN_DIR ""
-#define AFSDIR_CORES_DIR "cores"
-#define AFSDIR_DB_DIR "db"
-#define AFSDIR_LOGS_DIR "logs"
-#define AFSDIR_LOCAL_DIR "server-local"
-#define AFSDIR_BACKUP_DIR "backup"
-#define AFSDIR_MIGR_DIR "server-local/migrate"
-#define AFSDIR_BIN_FILE_DIR "server-local/migrate/bin_files"
-
-/* file names */
-#define AFSDIR_THISCELL_FILE "ThisCell"
-#define AFSDIR_CELLSERVDB_FILE "CellServDB"
-#define AFSDIR_KEY_FILE "KeyFile"
-#define AFSDIR_ULIST_FILE "UserList"
-#define AFSDIR_NOAUTH_FILE "NoAuth"
-#define AFSDIR_BUDBLOG_FILE "BackupLog"
-#define AFSDIR_TAPECONFIG_FILE "tapeconfig"
-#define AFSDIR_KALOGDB_FILE "AuthLog"
-#define AFSDIR_KALOG_FILE "AuthLog"
-#define AFSDIR_KADB_FILE "kaserver"
-#define AFSDIR_NTPD_FILE "ntpd"
-#define AFSDIR_PRDB_FILE "prdb"
-#define AFSDIR_PTLOG_FILE "PtLog"
-#define AFSDIR_KCONF_FILE "krb.conf"
-#define AFSDIR_VLDB_FILE "vldb"
-#define AFSDIR_VLOG_FILE "VLLog"
-#define AFSDIR_CORE_FILE "core"
-#define AFSDIR_SLVGLOG_FILE "SalvageLog"
-#define AFSDIR_SALVAGER_FILE "salvager"
-#define AFSDIR_SLVGLOCK_FILE "salvage.lock"
-#define AFSDIR_BOZCONF_FILE "BosConfig"
-#define AFSDIR_BOZCONFNEW_FILE "BosConfig.new"
-#define AFSDIR_BOZINIT_FILE "BozoInit"
-#define AFSDIR_BOZLOG_FILE "BosLog"
-#define AFSDIR_BOSVR_FILE "bosserver"
-#define AFSDIR_VOLSERLOG_FILE "VolserLog"
-#define AFSDIR_AUDIT_FILE "Audit"
-
-#define AFSDIR_ROOTVOL_FILE "RootVolume"
-#define AFSDIR_HOSTDUMP_FILE "hosts.dump"
-#define AFSDIR_CLNTDUMP_FILE "client.dump"
-#define AFSDIR_CBKDUMP_FILE "callback.dump"
-#define AFSDIR_OLDSYSID_FILE "sysid.old"
-#define AFSDIR_SYSID_FILE "sysid"
-#define AFSDIR_FILELOG_FILE "FileLog"
-#define AFSDIR_MIGRATE_LOGNAME "wtlog."
-
-#define AFSDIR_CELLSERVDB_FILE_NTCLIENT "afsdcell.ini"
-
-#define AFSDIR_NETINFO_FILE "NetInfo"
-#define AFSDIR_NETRESTRICT_FILE "NetRestrict"
-
-#define AFSDIR_LOCALRESIDENCY_FILE "LocalResidency"
-#define AFSDIR_WEIGHTINGCONST_FILE "Weight.LocalConstants"
-#define AFSDIR_THRESHOLDCONST_FILE "Thershold.LocalConstants"
-
-/* -------------- Canonical (wire-format) path macros -------------- */
-
-/* Each of the following is a canonical form of the corresponding
- * local (AFSDIR_*) path macro.
- */
-
-#define AFSDIR_CANONICAL_USR_DIRPATH "/usr"
-#define AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/etc/openafs"
-#define AFSDIR_CANONICAL_CLIENT_VICE_DIRPATH "/etc/openafs"
-#ifdef AFS_DARWIN_ENV
-#define AFSDIR_ALTERNATE_CLIENT_VICE_DIRPATH "/var/db/openafs"
-#endif
-
-
-#define AFSDIR_CANONICAL_SERVER_BIN_DIRPATH \
- "/usr/lib/openafs/" AFSDIR_BIN_DIR
-
-#define AFSDIR_CANONICAL_SERVER_ETC_DIRPATH \
-AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/server"
-
-#define AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH \
-"/var/log/openafs/"
-#define AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH \
- "/etc/openafs/server-local"
-
-#define AFSDIR_CANONICAL_SERVER_SALVAGER_FILEPATH \
-AFSDIR_CANONICAL_SERVER_BIN_DIRPATH "/" AFSDIR_SALVAGER_FILE
-
-#define AFSDIR_CANONICAL_SERVER_SLVGLOG_FILEPATH \
-AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH "/" AFSDIR_SLVGLOG_FILE
-
-
-/* --------------------- Local path macros ---------------------- */
-
-/* Note: On NT, these should be used only after calling initAFSDirPath().
- * On Unix, the paths are implicitly initialized.
- */
-
-/* enums for indexes into the pathname array */
-typedef enum afsdir_id {
- AFSDIR_USR_DIRPATH_ID,
- AFSDIR_SERVER_AFS_DIRPATH_ID,
- AFSDIR_SERVER_ETC_DIRPATH_ID,
- AFSDIR_SERVER_BIN_DIRPATH_ID,
- AFSDIR_SERVER_CORES_DIRPATH_ID,
- AFSDIR_SERVER_DB_DIRPATH_ID,
- AFSDIR_SERVER_LOGS_DIRPATH_ID,
- AFSDIR_SERVER_LOCAL_DIRPATH_ID,
- AFSDIR_SERVER_BACKUP_DIRPATH_ID,
- AFSDIR_CLIENT_VICE_DIRPATH_ID,
- AFSDIR_CLIENT_ETC_DIRPATH_ID,
- AFSDIR_SERVER_THISCELL_FILEPATH_ID,
- AFSDIR_SERVER_CELLSERVDB_FILEPATH_ID,
- AFSDIR_SERVER_NOAUTH_FILEPATH_ID,
- AFSDIR_SERVER_KEY_FILEPATH_ID,
- AFSDIR_SERVER_ULIST_FILEPATH_ID,
- AFSDIR_SERVER_BUDBLOG_FILEPATH_ID,
- AFSDIR_SERVER_TAPECONFIG_FILEPATH_ID,
- AFSDIR_SERVER_KALOGDB_FILEPATH_ID,
- AFSDIR_SERVER_KALOG_FILEPATH_ID,
- AFSDIR_SERVER_KADB_FILEPATH_ID,
- AFSDIR_SERVER_NTPD_FILEPATH_ID,
- AFSDIR_SERVER_PRDB_FILEPATH_ID,
- AFSDIR_SERVER_PTLOG_FILEPATH_ID,
- AFSDIR_SERVER_KCONF_FILEPATH_ID,
- AFSDIR_SERVER_VLDB_FILEPATH_ID,
- AFSDIR_SERVER_VLOG_FILEPATH_ID,
- AFSDIR_SERVER_CORELOG_FILEPATH_ID,
- AFSDIR_SERVER_SLVGLOG_FILEPATH_ID,
- AFSDIR_SERVER_SALVAGER_FILEPATH_ID,
- AFSDIR_SERVER_BOZCONF_FILEPATH_ID,
- AFSDIR_SERVER_BOZCONFNEW_FILEPATH_ID,
- AFSDIR_SERVER_BOZINIT_FILEPATH_ID,
- AFSDIR_SERVER_BOZLOG_FILEPATH_ID,
- AFSDIR_SERVER_BOSVR_FILEPATH_ID,
- AFSDIR_SERVER_SLVGLOCK_FILEPATH_ID,
- AFSDIR_SERVER_VOLSERLOG_FILEPATH_ID,
- AFSDIR_SERVER_ROOTVOL_FILEPATH_ID,
- AFSDIR_SERVER_HOSTDUMP_FILEPATH_ID,
- AFSDIR_SERVER_CLNTDUMP_FILEPATH_ID,
- AFSDIR_SERVER_CBKDUMP_FILEPATH_ID,
- AFSDIR_SERVER_OLDSYSID_FILEPATH_ID,
- AFSDIR_SERVER_SYSID_FILEPATH_ID,
- AFSDIR_SERVER_FILELOG_FILEPATH_ID,
- AFSDIR_SERVER_AUDIT_FILEPATH_ID,
- AFSDIR_CLIENT_THISCELL_FILEPATH_ID,
- AFSDIR_CLIENT_CELLSERVDB_FILEPATH_ID,
- AFSDIR_CLIENT_NETINFO_FILEPATH_ID,
- AFSDIR_CLIENT_NETRESTRICT_FILEPATH_ID,
- AFSDIR_SERVER_NETINFO_FILEPATH_ID,
- AFSDIR_SERVER_NETRESTRICT_FILEPATH_ID,
- AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH_ID,
- AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH_ID,
- AFSDIR_SERVER_MIGRATE_DIRPATH_ID,
- AFSDIR_SERVER_MIGRATELOG_FILEPATH_ID,
- AFSDIR_SERVER_BIN_FILE_DIRPATH_ID,
- AFSDIR_PATHSTRING_MAX } afsdir_id_t;
-
-/* getDirPath() returns a pointer to a string from an internal array of path strings
- */
-const char *getDirPath(afsdir_id_t string_id);
-
-/* Top level usr dir */
-#define AFSDIR_USR_DIRPATH getDirPath(AFSDIR_USR_DIRPATH_ID)
-
-/* server subdir paths */
-#define AFSDIR_SERVER_AFS_DIRPATH getDirPath(AFSDIR_SERVER_AFS_DIRPATH_ID)
-#define AFSDIR_SERVER_ETC_DIRPATH getDirPath(AFSDIR_SERVER_ETC_DIRPATH_ID)
-#define AFSDIR_SERVER_BIN_DIRPATH getDirPath(AFSDIR_SERVER_BIN_DIRPATH_ID)
-#define AFSDIR_SERVER_CORES_DIRPATH getDirPath(AFSDIR_SERVER_CORES_DIRPATH_ID)
-#define AFSDIR_SERVER_DB_DIRPATH getDirPath(AFSDIR_SERVER_DB_DIRPATH_ID)
-#define AFSDIR_SERVER_LOGS_DIRPATH getDirPath(AFSDIR_SERVER_LOGS_DIRPATH_ID)
-#define AFSDIR_SERVER_LOCAL_DIRPATH getDirPath(AFSDIR_SERVER_LOCAL_DIRPATH_ID)
-#define AFSDIR_SERVER_BACKUP_DIRPATH getDirPath(AFSDIR_SERVER_BACKUP_DIRPATH_ID)
-#define AFSDIR_SERVER_LOCAL_DIRPATH getDirPath(AFSDIR_SERVER_LOCAL_DIRPATH_ID)
-#define AFSDIR_SERVER_MIGRATE_DIRPATH getDirPath(AFSDIR_SERVER_MIGRATE_DIRPATH_ID)
-#define AFSDIR_SERVER_MIGRATE_DIRPATH getDirPath(AFSDIR_SERVER_MIGRATE_DIRPATH_ID)
-
-/* client subdir paths */
-#define AFSDIR_CLIENT_VICE_DIRPATH getDirPath(AFSDIR_CLIENT_VICE_DIRPATH_ID)
-#define AFSDIR_CLIENT_ETC_DIRPATH getDirPath(AFSDIR_CLIENT_ETC_DIRPATH_ID)
-#define AFSDIR_SERVER_BIN_FILE_DIRPATH getDirPath(AFSDIR_SERVER_BIN_FILE_DIRPATH_ID)
-
-/* server file paths */
-#define AFSDIR_SERVER_THISCELL_FILEPATH getDirPath(AFSDIR_SERVER_THISCELL_FILEPATH_ID)
-#define AFSDIR_SERVER_CELLSERVDB_FILEPATH getDirPath(AFSDIR_SERVER_CELLSERVDB_FILEPATH_ID)
-#define AFSDIR_SERVER_NOAUTH_FILEPATH getDirPath(AFSDIR_SERVER_NOAUTH_FILEPATH_ID)
-#define AFSDIR_SERVER_KEY_FILEPATH getDirPath(AFSDIR_SERVER_KEY_FILEPATH_ID)
-#define AFSDIR_SERVER_ULIST_FILEPATH getDirPath(AFSDIR_SERVER_ULIST_FILEPATH_ID)
-#define AFSDIR_SERVER_BUDBLOG_FILEPATH getDirPath(AFSDIR_SERVER_BUDBLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_TAPECONFIG_FILEPATH getDirPath(AFSDIR_SERVER_TAPECONFIG_FILEPATH_ID)
-#define AFSDIR_SERVER_KALOGDB_FILEPATH getDirPath(AFSDIR_SERVER_KALOGDB_FILEPATH_ID)
-#define AFSDIR_SERVER_KALOG_FILEPATH getDirPath(AFSDIR_SERVER_KALOG_FILEPATH_ID)
-#define AFSDIR_SERVER_KADB_FILEPATH getDirPath(AFSDIR_SERVER_KADB_FILEPATH_ID)
-#define AFSDIR_SERVER_NTPD_FILEPATH getDirPath(AFSDIR_SERVER_NTPD_FILEPATH_ID)
-#define AFSDIR_SERVER_PRDB_FILEPATH getDirPath(AFSDIR_SERVER_PRDB_FILEPATH_ID)
-#define AFSDIR_SERVER_PTLOG_FILEPATH getDirPath(AFSDIR_SERVER_PTLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_KCONF_FILEPATH getDirPath(AFSDIR_SERVER_KCONF_FILEPATH_ID)
-#define AFSDIR_SERVER_VLDB_FILEPATH getDirPath(AFSDIR_SERVER_VLDB_FILEPATH_ID)
-#define AFSDIR_SERVER_VLOG_FILEPATH getDirPath(AFSDIR_SERVER_VLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_CORELOG_FILEPATH getDirPath(AFSDIR_SERVER_CORELOG_FILEPATH_ID)
-#define AFSDIR_SERVER_SLVGLOG_FILEPATH getDirPath(AFSDIR_SERVER_SLVGLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_SALVAGER_FILEPATH getDirPath(AFSDIR_SERVER_SALVAGER_FILEPATH_ID)
-#define AFSDIR_SERVER_BOZCONF_FILEPATH getDirPath(AFSDIR_SERVER_BOZCONF_FILEPATH_ID)
-#define AFSDIR_SERVER_BOZCONFNEW_FILEPATH getDirPath(AFSDIR_SERVER_BOZCONFNEW_FILEPATH_ID)
-#define AFSDIR_SERVER_BOZINIT_FILEPATH getDirPath(AFSDIR_SERVER_BOZINIT_FILEPATH_ID)
-#define AFSDIR_SERVER_BOZLOG_FILEPATH getDirPath(AFSDIR_SERVER_BOZLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_BOSVR_FILEPATH getDirPath(AFSDIR_SERVER_BOSVR_FILEPATH_ID)
-#define AFSDIR_SERVER_SLVGLOCK_FILEPATH getDirPath(AFSDIR_SERVER_SLVGLOCK_FILEPATH_ID)
-#define AFSDIR_SERVER_VOLSERLOG_FILEPATH getDirPath(AFSDIR_SERVER_VOLSERLOG_FILEPATH_ID)
-#define AFSDIR_SERVER_ROOTVOL_FILEPATH getDirPath(AFSDIR_SERVER_ROOTVOL_FILEPATH_ID)
-#define AFSDIR_SERVER_HOSTDUMP_FILEPATH getDirPath(AFSDIR_SERVER_HOSTDUMP_FILEPATH_ID)
-#define AFSDIR_SERVER_CLNTDUMP_FILEPATH getDirPath(AFSDIR_SERVER_CLNTDUMP_FILEPATH_ID)
-#define AFSDIR_SERVER_CBKDUMP_FILEPATH getDirPath(AFSDIR_SERVER_CBKDUMP_FILEPATH_ID)
-#define AFSDIR_SERVER_OLDSYSID_FILEPATH getDirPath(AFSDIR_SERVER_OLDSYSID_FILEPATH_ID)
-#define AFSDIR_SERVER_SYSID_FILEPATH getDirPath(AFSDIR_SERVER_SYSID_FILEPATH_ID)
-#define AFSDIR_SERVER_FILELOG_FILEPATH getDirPath(AFSDIR_SERVER_FILELOG_FILEPATH_ID)
-#define AFSDIR_SERVER_AUDIT_FILEPATH getDirPath(AFSDIR_SERVER_AUDIT_FILEPATH_ID)
-#define AFSDIR_SERVER_NETINFO_FILEPATH getDirPath(AFSDIR_SERVER_NETINFO_FILEPATH_ID)
-#define AFSDIR_SERVER_NETRESTRICT_FILEPATH getDirPath(AFSDIR_SERVER_NETRESTRICT_FILEPATH_ID)
-#define AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH getDirPath(AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH_ID)
-#define AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH getDirPath(AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH_ID)
-#define AFSDIR_SERVER_MIGRATELOG_FILEPATH getDirPath(AFSDIR_SERVER_MIGRATELOG_FILEPATH_ID)
-
-/* client file paths */
-#define AFSDIR_CLIENT_THISCELL_FILEPATH getDirPath(AFSDIR_CLIENT_THISCELL_FILEPATH_ID)
-#define AFSDIR_CLIENT_CELLSERVDB_FILEPATH getDirPath(AFSDIR_CLIENT_CELLSERVDB_FILEPATH_ID)
-#define AFSDIR_CLIENT_NETINFO_FILEPATH getDirPath(AFSDIR_CLIENT_NETINFO_FILEPATH_ID)
-#define AFSDIR_CLIENT_NETRESTRICT_FILEPATH getDirPath(AFSDIR_CLIENT_NETRESTRICT_FILEPATH_ID)
-
-#endif /* _DIRPATH_H */
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-CFLAGS = -I. -I.. -I${SRCDIR}include ${XCFLAGS} -g
-
-tests: test_ktime ktest dirpath_test
-
-ktests.o: ktests.c ../ktime.h
- ${CC} ${CFLAGS} -c ktests.c
-
-ktest: ktest.o ../util.a
- ${CC} ${CFLAGS} -o ktest ktest.o ../util.a ${XLIBS}
-
-test_ktime.o: test_ktime.c ../ktime.h
- ${CC} ${CFLAGS} -c test_ktime.c
-
-test_ktime: test_ktime.o ../util.a
- ${CC} ${CFLAGS} -o test_ktime test_ktime.o ../util.a ${XLIBS}
-
-dirpath_test: dirpath_test.o ../util.a
- ${CC} dirpath_test.o ${CFLAGS} -o dirpath_test ../util.a ${XLIBS}
-
-b64: b64.o ../util.a
- ${CC} b64.o ${CFLAGS} -o b64 ../util.a ${XLIBS}
-
-fb64: fb64.o ../util.a
- ${CC} fb64.o ${CFLAGS} -o fb64 ../util.a ${XLIBS}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=venus
-LINUX_VERS=dummy
-include ../config/Makefile.${SYS_NAME}
-
-INSTALLex = ${INSTALL} -m 755
-CCXPG2= /usr/xpg2bin/cc
-
-CFLAGS = ${OPTMZ} -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-
-INCLS = ${DESTDIR}include/afs/afsint.h \
- ${DESTDIR}include/afs/cmd.h \
- ${DESTDIR}include/afs/afsutil.h
-
-VLIB = ${DESTDIR}lib/afs/
-
-LIB = ${DESTDIR}lib/
-
-FSLIBS = ${VLIB}libsys.a \
- ${VLIB}libvldb.a \
- ${LIB}libubik.a \
- ${VLIB}vlib.a \
- ${VLIB}libauth.a \
- ${DESTDIR}lib/librxkad.a \
- ${VLIB}libcom_err.a \
- ${VLIB}libcmd.a \
- ${VLIB}libkauth.a \
- ${DESTDIR}lib/libdes.a \
- ${LIB}librx.a \
- ${VLIB}libsys.a \
- $(VLIB)util.a \
- ${LIB}liblwp.a \
- ${VLIB}libaudit.a
-
-CMLIBS = ${VLIB}libsys.a \
- ${VLIB}libafsint.a \
- ${DESTDIR}lib/librxkad.a \
- ${VLIB}libauth.a \
- ${VLIB}libcom_err.a \
- ${VLIB}libcmd.a \
- ${LIB}librx.a \
- ${VLIB}libsys.a \
- $(VLIB)util.a \
- ${LIB}liblwp.a
-
-LIBS = ${FSLIBS}
-
-include ../config/Makefile.version
-
-cacheout: cacheout.o
- $(CC) ${CFLAGS} -o cacheout cacheout.o ${LIBS} ${XLIBS} ${CMLIBS}
-
-cacheout.o: cacheout.c
-
-all: fs up cmdebug fstrace gcpags
-
-${DESTDIR}bin/fs ${DESTDIR}root.server/usr/afs/bin/fs: fs
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/up: up
- ${INSTALL} -s $? $@
-
-${DESTDIR}etc/fstrace: fstrace
- ${INSTALL} -s $? $@
-
-${DESTDIR}bin/cmdebug: cmdebug
- ${INSTALL} -s $? $@
-# ${DESTDIR}etc/kdump: kdump
-# set -x; \
-# case ${SYS_NAME} in \
-# sgi_6? ) \
-# ${INSTALLex} kdump.sh.sgi_ipnos $@; \
-# ln -fs kdump ${DESTDIR}etc/kdump32; \
-# ln -fs kdump.IP20 ${DESTDIR}etc/kdump.IP22; \
-# ln -fs kdump.IP20 ${DESTDIR}etc/kdump.IP32; \
-# for f in kdump.IP??; \
-# do ${INSTALL} -s $$f ${DESTDIR}etc/$$f || exit $$? ; \
-# done ;; \
-# sun4x_57 ) \
-# ${INSTALLex} kdump.sh.solaris7 $@; \
-# ${INSTALL} -s -f $? ${DESTDIR}etc/kdump32;; \
-# *linux* ) \
-# for lv in ${LINUX_VERS}; do \
-# ${INSTALL} -s kdump-$$lv ${DESTDIR}etc/kdump-$$lv ; \
-# done ;; \
-# hp_ux11* ) \
-# ${INSTALLex} kdump.sh.hp_ux11 $@; \
-# ${INSTALL} -s -f $? ${DESTDIR}etc/kdump32;; \
-# *) \
-# ${INSTALL} -s $? $@ ;; \
-# esac
-
-${DESTDIR}etc/kdump: kdump
- -set -x; \
- case ${SYS_NAME} in \
- sgi_6? ) \
- ${INSTALLex} kdump.sh.sgi_ipnos $@; \
- ln -fs kdump ${DESTDIR}etc/kdump32; \
- ln -fs kdump.IP20 ${DESTDIR}etc/kdump.IP22; \
- ln -fs kdump.IP20 ${DESTDIR}etc/kdump.IP32; \
- for f in kdump.IP??; \
- do ${INSTALL} -s $$f ${DESTDIR}etc/$$f || exit $$? ; \
- done ;; \
- sun4x_57 ) \
- ${INSTALLex} kdump.sh.solaris7 $@; \
- ${INSTALL} -s -f $? ${DESTDIR}etc/kdump32;; \
- *linux* ) \
- for lv in ${LINUX_VERS}; do \
- ${INSTALL} -s kdump-$$lv ${DESTDIR}etc/kdump-$$lv ; \
- done ;; \
- hp_ux11* ) \
- ${INSTALLex} kdump.sh.hp_ux11 $@; \
- ${INSTALL} -s -f $? ${DESTDIR}etc/kdump32;; \
- *) \
- ${INSTALL} -s $? $@ ;; \
- esac
-
-${DESTDIR}etc/kdump64: kdump64
- -set -x; \
- case ${SYS_NAME} in \
- sun4x_57 | hp_ux11* ) \
- ${INSTALL} -s $? $@ ;;\
- * ) \
- echo skipping kdump64 for ${SYS_NAME} ;; \
- esac
-
-install: all ${DESTDIR}bin/fs ${DESTDIR}root.server/usr/afs/bin/fs \
- ${DESTDIR}bin/up ${DESTDIR}etc/fstrace ${DESTDIR}bin/cmdebug \
-
-
-system: install
-
-up.o: up.c AFS_component_version_number.c
-
-up: up.o
- ${CC} ${CFLAGS} -g -o up up.o ${LIBS} ${XLIBS}
-
-fs.o: fs.c ${INCLS} AFS_component_version_number.c
-
-fs: fs.o $(LIBS)
- ${CC} ${CFLAGS} -g -o fs fs.o ${DESTDIR}lib/afs/libprot.a $(LIBS) ${XLIBS}
-
-twiddle: twiddle.c $(LIBS)
- ${CC} -g -o twiddle $(CFLAGS) twiddle.c $(LIBS) ${XLIBS}
-
-gcpags: gcpags.c $(LIBS)
- ${CC} -g -o gcpags $(CFLAGS) gcpags.c $(LIBS) ${XLIBS}
-
-whatfid.o: whatfid.c ${INCLS} AFS_component_version_number.c
-
-whatfid: whatfid.o ${LIBS}
- ${CC} ${CFLAGS} -g -o whatfid whatfid.o ${LIBS} ${XLIBS}
-
-fstrace.o: fstrace.c AFS_component_version_number.c
- case ${SYS_NAME} in \
- sun4_411 | sun4c_411 | sun4m_412 ) \
- ${CCXPG2} -g -I${TOP_SRCDIR}/config -I${DESTDIR}include -I${SRCDIR}include -c fstrace.c ;; \
- * ) \
- ${CC} ${CFLAGS} -g -I${TOP_SRCDIR}/config -I${DESTDIR}include -I${SRCDIR}include -c fstrace.c ;; \
- esac
-
-fstrace: fstrace.o
- case ${SYS_NAME} in \
- pmax_ul43 | pmax_ul43a ) \
- ${CC} ${CFLAGS} -o fstrace fstrace.o ${VLIB}/libsys.a ${VLIB}libcmd.a ${VLIB}util.a /usr/lib/libi.a ;; \
- sun4_411 | sun4c_411 | sun4m_412 ) \
- ${CCXPG2} ${CFLAGS} -g -o fstrace fstrace.o ${VLIB}/libsys.a ${VLIB}libcmd.a ${VLIB}util.a ;; \
- hp700_ux100 | hp800_ux100 | hp?00_ux10? | hp_ux10? | hp_ux11?) \
- ${CC} -I${TOP_SRCDIR}/config -o fstrace fstrace.o ${VLIB}/libsys.a ${VLIB}libcmd.a ${VLIB}util.a ;; \
- * ) \
- ${CC} ${CFLAGS} -o fstrace fstrace.o ${VLIB}/libsys.a ${VLIB}libcmd.a ${VLIB}util.a ;; \
- esac
-
-cmdebug.o: cmdebug.c ${INCLS} AFS_component_version_number.c
-
-cmdebug: cmdebug.o ${CMLIBS}
- $(CC) -o cmdebug cmdebug.o ${CFLAGS} ${CMLIBS} ${XLIBS}
-
-kdump.o: kdump.c ${INCLS} AFS_component_version_number.c
- -set -x; \
- case ${SYS_NAME} in \
- alpha_linux* ) \
- for lv in ${LINUX_VERS}; do \
- ${CC} -g -I${LINUX_SRCDIR}$$lv/include -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS} -mno-fp-regs -ffixed-8 -o kdump-$$lv.o -c kdump.c ; \
- done ;; \
- *linux* ) \
- for lv in ${LINUX_VERS}; do \
- ${CC} -g -I${LINUX_SRCDIR}$$lv/include -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS} -o kdump-$$lv.o -c kdump.c ; \
- done ;; \
- alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c| alpha_dux?? ) \
- ${CC} -g ${CFLAGS} -I/usr/sys/include -I/usr/sys/BINARY -I/usr/sys/AFS -DDEBUGGER -c kdump.c ;;\
- sgi_6? ) \
- for f in ../libafs/STATIC.IP*/CPU_KDEFS; \
- do IP=`expr "$$f" : '../libafs/STATIC.\(IP..\)'`; \
- CPU_KDEFS=`sed 's/-mips.//' $$f`; \
- echo IP = $$IP; \
- echo CPU_KDEFS = $$CPU_KDEFS; \
- case $$CPU_KDEFS in \
- *-64*) ${CC} -D_KMEMUSER -woff 1178 \
- -g -I${DESTDIR}include \
- -I${TOP_SRCDIR}/config \
- $$CPU_KDEFS \
- ${XCFLAGS64} \
- -c kdump.c -o kdump.$$IP.o \
- ;; \
- *) ${CC} -D_KMEMUSER -woff 1178 \
- -g -I${DESTDIR}include \
- -I${TOP_SRCDIR}/config \
- $$CPU_KDEFS \
- ${XCFLAGS} -DAFS_32BIT_KERNEL_ENV \
- -c kdump.c -o kdump.$$IP.o \
- ;; \
- esac || exit $$?; \
- done \
- ;; \
- *) \
- ${CC} -g -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS} -c kdump.c ;; \
- esac ;
-
-kdump64.o : kdump.c ${INCLS} AFS_component_version_number.c
- -set -x; \
- case ${SYS_NAME} in \
- sun4x_57 | hp_ux11* ) \
- ${CC} -g -I${DESTDIR}include -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS64} -o kdump64.o -c kdump.c ;; \
- esac
-
-kdump: kdump.o
- -set -x; \
- case ${SYS_NAME} in \
- sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_54 | sun4c_54 | sun4m_54 | sunx86_54) \
- ${CC} -g -o kdump kdump.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a /usr/lib/libkvm.a -lelf ${XLIBS} ;; \
- sun4x_5? ) \
- ${CC} -g -o kdump kdump.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
- sgi_6? ) \
- for f in ../libafs/STATIC.IP*/CPU_KDEFS; \
- do IP=`expr "$$f" : '../libafs/STATIC.\(IP..\)'`; \
- CPU_KDEFS=`sed 's/-mips.//' $$f`; \
- echo IP = $$IP; \
- echo CPU_KDEFS = $$CPU_KDEFS; \
- case $$CPU_KDEFS in \
- *-64*) ${CC} ${XCFLAGS64} -g \
- $$CPU_KDEFS \
- -o kdump.$$IP kdump.$$IP.o \
- ${DESTDIR}lib/afs/libcmd64.a -lelf \
- ;; \
- *) ${CC} ${XCFLAGS} -g \
- $$CPU_KDEFS \
- -o kdump.$$IP kdump.$$IP.o \
- ${DESTDIR}lib/afs/libcmd.a -lelf \
- ;; \
- esac || exit $$? ; \
- done ;; \
- *linux* ) \
- for lv in ${LINUX_VERS}; do \
- ${CC} -g -o kdump-$$lv kdump-$$lv.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a ${XLIBS} ; \
- done ;; \
- alpha_osf1 | alpha_osf20 | alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux??) \
- ${CC} -g -o kdump kdump.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a ${XLIBS} -ll -lmld;; \
- ncrx86_* ) ${CC} -g -o kdump kdump.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a -lelf ${XLIBS} ;; \
- * ) ${CC} -g -o kdump kdump.o ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a ${XLIBS} ;; \
- esac
-
-## kdump to read from 64 bit kernel dumps
-
-kdump64 : kdump64.o
- -set -x; \
- case ${SYS_NAME} in \
- sun4x_57 | hp_ux11* ) \
- ${CC} -g ${XCFLAGS64} -o kdump64 kdump64.o ${DESTDIR}lib/afs/libcmd64.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
- esac
-
-clean:
- rm -f *.o *.a up fs core cmdebug AFS_component_version_number.c fstrace gcpags
-
-beancount:
- wc -l *.c *.h
-
-test:
- cd test; $(MAKE)
-
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/venus/fstrace.c,v 1.5 2001/07/15 07:22:32 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/venus/fstrace.c,v 1.6 2001/09/11 15:48:53 hartmans Exp $");
#include <stdio.h>
#include <sys/types.h>
if (dummy > bufferSize) /* find biggest log */
bufferSize = dummy;
lip = (struct logInfo *) malloc(sizeof(struct logInfo));
- bzero((char *)lip, sizeof(*lip));
+ memset((char *)lip, 0, sizeof(*lip));
lip->nextp = allInfo;
allInfo = lip;
lip->name = (char *) malloc(strlen(tname)+1);
if (dummy > bufferSize) /* find biggest log */
bufferSize = dummy;
lip = (struct logInfo *) malloc(sizeof(struct logInfo));
- bzero((char *)lip, sizeof(*lip));
+ memset((char *)lip, 0, sizeof(*lip));
lip->nextp = allInfo;
allInfo = lip;
lip->name = (char *) malloc(strlen(tname)+1);
states |= ICL_SETF_PERSISTENT;
setp = (struct afs_icl_set *) osi_Alloc(sizeof(struct afs_icl_set));
- bzero((caddr_t)setp, sizeof(*setp));
+ memset((caddr_t)setp, 0, sizeof(*setp));
setp->refCount = 1;
if (states & ICL_SETF_FREED)
states &= ~ICL_SETF_ACTIVE; /* if freed, can't be active */
exit (1);
}
}
- bzero((char *)setInfo, infoSize);
+ memset((char *)setInfo, 0, infoSize);
return setInfo;
}
}
}
- bzero((char *)logInfo, infoSize);
+ memset((char *)logInfo, 0, infoSize);
return logInfo;
}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-include ../../config/Makefile.${SYS_NAME}
-
-# SRCDIR=DEST/
-# DESTDIR=DEST/
-OPTIMIZE=-O
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include -I..
-LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L..
-utilib=${DESTDIR}lib/afs/util.a
-LIBS= -lsys -lubik -lvldb -lauth -lrxkad -ldes -lcom_err -lcmd -lrx -llwp ${utilib}
-
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${XCFLAGS}
-
-install all system test: fulltest owntest idtest getinitparams
-
-fulltest: fulltest.o
- $(CC) $(CFLAGS) -o $@ $@.o $(LDIRS) $(LIBS)
-owntest: owntest.o
- $(CC) $(CFLAGS) -o $@ $@.o $(LDIRS) $(LIBS)
-idtest: idtest.o
- $(CC) $(CFLAGS) -o $@ $@.o $(LDIRS) $(LIBS)
-getinitparams: getinitparams.o
- $(CC) $(CFLAGS) -o $@ $@.o $(LDIRS) $(LIBS)
-
-clean:
- rm -f *.o fulltest owntest idtest getinitparams
-
+++ /dev/null
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley. The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.12 (Berkeley) 6/26/89
-#
-COMPONENT=vfsck
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS= ${DBUG} -w -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-LIBC= /lib/libc.a
-SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
- pass5.c setup.c utilities.c ufs_subr.c ufs_tables.c dirutils.c\
- vprintf.c proplist.c
-LOCOBJS=dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
- pass5.o setup.o utilities.o dirutils.o vprintf.o proplist.o
-SYSOBJS=ufs_subr.o ufs_tables.o
-OBJS= ${LOCOBJS} ${SYSOBJS}
-MAN =
-#MAN= fsck.0
-
-include ../config/Makefile.version
-
-all: vfsck
-
-vfsck: main.o ${OBJS}
-
-${OBJS}: ${SRCS}
- case ${SYS_NAME} in \
- hp_ux11? ) \
- ${CC} -o vfsck -I/usr/old/usr/include ${DBUG} -w -I${SRCDIR}include ${SRCS} ${NON_SHARED} +DA1.0 -Wl,-a,archive -D_FILE64 \
- ;; \
- hp?00_ux101 | hp_ux10? ) \
- ${CC} -o vfsck ${CFLAGS} ${SRCS} ${NON_SHARED} ${XLIBS} -D_FILE64\
- ;; \
- * ) \
- ${CC} -o vfsck ${CFLAGS} ${SRCS} ${NON_SHARED} ${XLIBS}\
- ;; \
- esac
-
-main.o: main.c AFS_component_version_number.c
-
-#${LOCOBJS}:
-# ${CC} ${CFLAGS} -c $*.c
-
-clean:
- rm -f ${OBJS} vfsck core AFS_component_version_number.c
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep ${CFLAGS} ${SRCS}
-
-system: install
-
-install: all ${MAN}
- ${INSTALL} -s -c vfsck ${DESTDIR}/root.server/etc
- ${INSTALL} -s -c vfsck ${DESTDIR}/root.server/usr/afs/bin
- case ${SYS_NAME} in \
- hp_ux10? ) \
- ${CP} bcheckrc ${DESTDIR}/root.server/etc; \
- ;; \
- hp_ux11? ) \
- ${CP} bcheckrc-hp_ux110 ${DESTDIR}/root.server/etc/bcheckrc; \
- ;; \
- esac
- case ${SYS_NAME} in \
- hp_ux10? | hp_ux11? ) \
- ${CP} mount ${DESTDIR}/root.server/etc ;\
- ${CP} umount ${DESTDIR}/root.server/etc; \
- chmod 755 ${DESTDIR}/root.server/etc/bcheckrc ${DESTDIR}/root.server/etc/mount ${DESTDIR}/root.server/etc/umount ;\
- ;; \
- esac
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=viced
-include ../config/Makefile.${SYS_NAME}
-
-DBUG = -g
-CFLAGS = -DNINTERFACE ${DBUG} \
- -I${TOP_SRCDIR}/config -I. -I${SRCDIR}include -I${SRCDIR}include/afs \
- ${XCFLAGS} ${DBG_DEFS} -DRXDEBUG
-LDFLAGS = ${DBUG} ${XLDFLAGS}
-
-UTILLIB=${SRCDIR}lib/afs/util.a
-auditlib=${SRCDIR}lib/afs/libaudit.a
-
-LIBS= ${SRCDIR}lib/afs/libacl.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/afs/libprot.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/vlib.a \
- ${SRCDIR}lib/afs/libdir.a \
- ${UTILLIB} \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libafsint.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/liblwp.a
-
-headers=${SRCDIR}include/lwp.h \
- ${SRCDIR}include/afs/acl.h \
- ${SRCDIR}include/afs/errors.h \
- ${SRCDIR}include/afs/ptclient.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/afs/volume.h \
- ${SRCDIR}include/afs/vnode.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/auth.h \
- ${SRCDIR}include/afs/afsint.h \
- viced.h \
- host.h \
- fs_stats.h
-
-objects=viced.o \
- afsfileprocs.o \
- host.o \
- physio.o \
- callback.o
-
-include ../config/Makefile.version
-
-noversion: install
-
-all: cbd fsprobe check_sysid
-
-${objects}:${headers}
-viced.o: AFS_component_version_number.o
-
-check_sysid: check_sysid.c
- ${CC} ${CFLAGS} -IDEST/include -o check_sysid check_sysid.c
-
-fileserver: viced.o ${objects} ${headers} ${LIBS}
- set -x; \
- case ${SYS_NAME} in \
- *linux* | *fbsd* ) \
- ${CC} ${LDFLAGS} -o fileserver ${objects} \
- ${auditlib} ${LIBS} ${XLIBS} ;; \
- rs_aix*) \
- ${CC} -K ${LDFLAGS} -o fileserver ${objects} \
- ${auditlib} ${LIBS} ${XLIBS} ;; \
- *) \
- ${CC} ${LDFLAGS} -o fileserver ${objects} \
- ${auditlib} ${LIBS} ${XLIBS} ;; \
- esac
-
-fsprobe.o: fsprobe.c AFS_component_version_number.c
- ${CC} ${CFLAGS} -DINTERPRET_DUMP -c fsprobe.c
-
-fsprobe: fsprobe.o
- ${CC} ${CFLAGS} -o fsprobe fsprobe.o ${LIBS} ${XLIBS}
-
-cbd.o: callback.c AFS_component_version_number.c
- ${CC} ${CFLAGS} -DINTERPRET_DUMP -c -o cbd.o callback.c
-
-cbd: cbd.o
- ${CC} ${CFLAGS} -DINTERPRET_DUMP -o cbd cbd.o ${LIBS} ${XLIBS}
-
-lint:
- lint -uvn -I${SRCDIR}include viced.c afsfileprocs.c host.c physio.c callback.c ${SRCDIR}lib/afs/llib-lutil.ln
-
-${DESTDIR}root.server/usr/afs/bin/fileserver : fileserver
- @case ${SYS_NAME} in \
- alpha_dux4*|*linux*|rs_aix*|sgi_6*|sun4x*) \
- echo "Don't install fileserver for ${SYS_NAME}" ;; \
- *) \
- echo ${INSTALL} -ns fileserver ${DESTDIR}root.server/usr/afs/bin/fileserver ; \
- ${INSTALL} -ns fileserver ${DESTDIR}root.server/usr/afs/bin/fileserver ;; \
- esac
-
-install: all ${DESTDIR}root.server/usr/afs/bin/fileserver
- ${INSTALL} fs_stats.h ${DESTDIR}/include/afs
-
-system: install
-
-clean:
- rm -f *.o llib-lvice.ln fileserver core AFS_component_version_number.c cbd check_sysid fsprobe
-
-beancount:
- wc -l *.c *.h
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.3 2001/09/11 14:23:06 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.4 2001/09/11 15:48:55 hartmans Exp $");
#include <stdio.h>
#include <stdlib.h>
SetCallBackStruct(AddCallBack(client->host, Fid), CallBack);
else {
struct AFSFid myFid;
- bzero(&myFid, sizeof(struct AFSFid));
+ memset(&myFid, 0, sizeof(struct AFSFid));
myFid.Volume = Fid->Volume;
SetCallBackStruct(AddVolCallBack(client->host, &myFid), CallBack);
}
SetCallBackStruct(AddCallBack(client->host, Fid), CallBack);
else {
struct AFSFid myFid;
- bzero(&myFid, sizeof(struct AFSFid));
+ memset(&myFid, 0, sizeof(struct AFSFid));
myFid.Volume = Fid->Volume;
SetCallBackStruct(AddVolCallBack(client->host, &myFid), CallBack);
}
&CallBacks->AFSCBs_val[i]);
else {
struct AFSFid myFid;
- bzero(&myFid, sizeof(struct AFSFid));
+ memset(&myFid, 0, sizeof(struct AFSFid));
myFid.Volume = tfid->Volume;
SetCallBackStruct(AddVolCallBack(client->host, &myFid),
&CallBacks->AFSCBs_val[i]);
assert((SetAccessList(&targetptr, &volptr, &newACL, &newACLSize,
&parentwhentargetnotdir, (AFSFid *)0, 0)) == 0);
assert(parentwhentargetnotdir == 0);
- bcopy((char *)VVnodeACL(parentptr), (char *)newACL, VAclSize(parentptr));
+ memcpy((char *)newACL, (char *)VVnodeACL(parentptr), VAclSize(parentptr));
/* update the status for the target vnode */
Update_TargetVnodeStatus(targetptr, TVS_MKDIR, client, InStatus,
FS_LOCK
AFSCallStats.GetStatistics++, AFSCallStats.TotalCalls++;
FS_UNLOCK
- bzero(Statistics, sizeof(*Statistics));
+ memset(Statistics, 0, sizeof(*Statistics));
SetAFSStats(Statistics);
SetVolumeStats(Statistics);
SetSystemStats(Statistics);
*/
dataBytes = sizeof(struct afs_Stats);
dataBuffP = (afs_int32 *)malloc(dataBytes);
- bcopy(&afs_cmstats, dataBuffP, dataBytes);
+ memcpy(dataBuffP, &afs_cmstats, dataBytes);
a_dataP->AFS_CollData_len = dataBytes>>2;
a_dataP->AFS_CollData_val = dataBuffP;
#else
dataBytes = sizeof(struct afs_PerfStats);
dataBuffP = (afs_int32 *)osi_Alloc(dataBytes);
- bcopy(&afs_perfstats, dataBuffP, dataBytes);
+ memcpy(dataBuffP, &afs_perfstats, dataBytes);
a_dataP->AFS_CollData_len = dataBytes>>2;
a_dataP->AFS_CollData_val = dataBuffP;
break;
dataBytes = sizeof(struct fs_stats_FullPerfStats);
dataBuffP = (afs_int32 *)osi_Alloc(dataBytes);
- bcopy(&afs_FullPerfStats, dataBuffP, dataBytes);
+ memcpy(dataBuffP, &afs_FullPerfStats, dataBytes);
a_dataP->AFS_CollData_len = dataBytes>>2;
a_dataP->AFS_CollData_val = dataBuffP;
#endif
return(EINVAL);
if ((newACL->size + 4) > VAclSize(targetptr))
return(E2BIG);
- bcopy((char *) newACL,(char *) VVnodeACL(targetptr),(int)(newACL->size));
+ memcpy((char *) VVnodeACL(targetptr), (char *) newACL, (int)(newACL->size));
acl_FreeACL(&newACL);
return(0);
return(EINVAL);
if ((newACL->size + 4) > VAclSize(targetptr))
return(E2BIG);
- bcopy((char *) newACL,(char *) VVnodeACL(targetptr),(int)(newACL->size));
+ memcpy((char *) VVnodeACL(targetptr), (char *) newACL, (int)(newACL->size));
acl_FreeACL(&newACL);
return(0);
rc = IH_DEC(V_linkHandle(volptr), ino,
V_parentId(volptr));
if (!rc ) {
- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
- V_id(volptr), volptr->partition->name));
+ ViceLog(0,("CopyOnWrite failed: error %u after i_dec on disk full, volume %u in partition %s needs salvage\n",
+ rc, V_id(volptr),
+ volptr->partition->name));
VTakeOffline (volptr);
}
free(buff);
return ENOSPC;
}
else {
- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
- V_id(volptr), volptr->partition->name));
- /* Decrement this inode so salvager doesn't find it. */
+ ViceLog(0,("CopyOnWrite failed: volume %u in partition %s (tried reading %u, read %u, wrote %u, errno %u) volume needs salvage\n",
+ V_id(volptr), volptr->partition->name, length,
+ rdlen, wrlen, errno));
+ /* Decrement this inode so salvager doesn't find it. */
FDH_REALLYCLOSE(newFdP);
IH_RELEASE(newH);
FDH_REALLYCLOSE(targFdP);
for (part = DiskPartitionList; part && i < AFS_MSTATDISKS; part = part->next) {
stats->Disks[i].TotalBlocks = part->totalUsable;
stats->Disks[i].BlocksAvailable = part->free;
- bzero(stats->Disks[i].Name, AFS_DISKNAMESIZE);
+ memset(stats->Disks[i].Name, 0, AFS_DISKNAMESIZE);
strncpy(stats->Disks[i].Name, part->name, AFS_DISKNAMESIZE);
i++;
}
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL = /bin/sh
-COMPONENT=vlserver
-include ../config/Makefile.${SYS_NAME}
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
-KERNELDIR=../libafs/
-UKERNELDIR=../libuafs/
-COMPILE_ET = ${SRCDIR}bin/compile_et
-
-CFLAGS = ${DBUG} -I. -I.. -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
-INCLS=${SRCDIR}include/ubik.h \
- ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h \
- ${SRCDIR}include/rx/rx.h \
- ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/keys.h \
- ${SRCDIR}include/afs/cellconfig.h \
- vlserver.h vlclient.h vldbint.h
-
-LIBS = \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/util.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/util.a
-
-auditlib=${SRCDIR}lib/afs/libaudit.a
-
-RXGEN=${SRCDIR}bin/rxgen
-KSRCS=Kvldbint.cs.c Kvldbint.xdr.c vl_opcodes.h vldbint.h
-UKSRCS=$(KSRCS)
-
-OBJS=vldbint.xdr.o vldbint.cs.o vl_errors.o
-
-CDIR=../../../src/${COMPONENT}
-include ../config/Makefile.version
-
-noversion: install
-
-all:
-
-clean:
- $(RM) -f *.o vlserver vlclient cnvldb vldbint.cs.c vldbint.ss.c \
- vldbint.xdr.c vldbint.h Kvldbint.cs.c Kvldbint.xdr.c \
- core *.a *.otl vlserver.h vldb_check\
- vl_errors.c AFS_component_version_number.c
-
-vldb_check: vldb_check.c
- $(CC) ${CFLAGS} -o vldb_check vldb_check.c ${XLIBS} \
- ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/util.a
-
-cnvldb: cnvldb.o
- $(CC) ${CFLAGS} -o cnvldb cnvldb.o ${XLIBS} ${DESTDIR}lib/afs/libcmd.a\
- ${DESTDIR}lib/afs/util.a
-
-cnvldb.o: cnvldb.c cnvldb.h AFS_component_version_number.o
-
-sascnvldb: sascnvldb.o
- $(CC) ${CFLAGS} -o sascnvldb sascnvldb.o ${XLIBS}
-
-sascnvldb.o: sascnvldb.c cnvldb.h AFS_component_version_number.o
-
-vlserver: vlserver.o vlutils.o vlprocs.o vldbint.ss.o vldbint.xdr.o $(LIBS)
- $(CC) ${CFLAGS} -o vlserver vlserver.o vlutils.o vlprocs.o vldbint.ss.o vldbint.xdr.o $(LIBS) ${XLIBS} ${auditlib}
-
-vlserver.o: vlserver.c ${INCLS} AFS_component_version_number.o
-vlutils.o: vlutils.c ${INCLS}
-vlprocs.o: vlprocs.c ${INCLS}
-vldbint.ss.o: vldbint.ss.c vldbint.xdr.c
-vldbint.cs.o: vldbint.cs.c vldbint.xdr.c
-vldbint.xdr.o: vldbint.xdr.c vldbint.h
-vldbint.ss.c vldbint.cs.c vldbint.xdr.c vldbint.h: vldbint.xg
- ${RXGEN} -x vldbint.xg
-
-Kvldbint.cs.c: vldbint.xg
- ${RXGEN} -x -k -C -o $@ vldbint.xg
-Kvldbint.xdr.c: vldbint.xg
- ${RXGEN} -x -k -c -o $@ vldbint.xg
-
-libvldb.a: $(OBJS) AFS_component_version_number.o
- -$(RM) -f libvldb.a
- $(AR) r libvldb.a $(OBJS) AFS_component_version_number.o
- $(RANLIB) libvldb.a
-
-vlclient: vlclient.o libvldb.a $(LIBS)
- $(CC) ${CFLAGS} -o vlclient vlclient.o libvldb.a $(LIBS) ${XLIBS} ${DESTDIR}lib/afs/libcmd.a
-
-vlclient.o: vlclient.c ${INCLS} AFS_component_version_number.o
-
-vl_errors.o: vl_errors.c
-vlserver.h vl_errors.c: vl_errors.et vlserver.p.h
- $(RM) -f vlserver.h vl_errors.c; ${COMPILE_ET} vl_errors -h vlserver
-
-system: install
-
-kinstall: $(KSRCS)
- ${INSTALL} $(KSRCS) ${KERNELDIR}afsint
-
-ukinstall webinstall: $(UKSRCS)
- set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
- ${INSTALL} $(UKSRCS) ${UKERNELDIR}afsint
-
-${DESTDIR}root.server/usr/afs/bin/vlserver: vlserver
- ${INSTALL} vlserver ${DESTDIR}root.server/usr/afs/bin
-
-${DESTDIR}/etc/vldb_convert: cnvldb
- ${INSTALL} -f cnvldb ${DESTDIR}/etc/vldb_convert
-
-install: kinstall ukinstall vlserver vlclient libvldb.a cnvldb ${DESTDIR}root.server/usr/afs/bin/vlserver ${DESTDIR}/etc/vldb_convert vldb_check
- ${INSTALL} libvldb.a ${DESTDIR}lib/afs
- ${INSTALL} vl_opcodes.h vlserver.h vldbint.h ${DESTDIR}include/afs
- ${INSTALL} cnvldb.h ${DESTDIR}include/afs
- ${INSTALL} vldb_check ${DESTDIR}/etc
-
-libinstall: libvldb.a
- ${INSTALL} libvldb.a ${DESTDIR}lib/afs
- ${INSTALL} vl_opcodes.h vlserver.h vldbint.h ${DESTDIR}include/afs
- ${INSTALL} cnvldb.h ${DESTDIR}include/afs
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=vol
-include ../config/Makefile.${SYS_NAME}
-include ../config/Makefile.version
-
-INCDIRS= -I${TOP_SRCDIR}/config -I. -I${DESTDIR}include ${FSINCLUDES}
-LDFLAGS = ${OPTMZ} ${PROF} ${LDIRS} ${XLDFLAGS}
-
-LIBS= ${DESTDIR}lib/afs/libcmd.a vlib.a ${SRCDIR}lib/afs/util.a \
- ${DESTDIR}lib/afs/libsys.a ${DESTDIR}lib/afs/libdir.a \
- ${DESTDIR}lib/liblwp.a ${DESTDIR}lib/afs/libacl.a ${XLIBS}
-
-CFLAGS = -D${SYS_NAME} ${OPTMZ} ${INCDIRS} ${XCFLAGS} ${DBG} ${DBG_DEFS}
-
-PROGS = salvager volinfo
-
-PUBLICHEADERS=nfs.h vnode.h viceinode.h volume.h voldefs.h partition.h\
- fssync.h ihandle.h namei_ops.h
-
-VLIBOBJS=vnode.o volume.o vutil.o partition.o fssync.o purge.o \
- clone.o nuke.o devname.o listinodes.o common.o ihandle.o \
- namei_ops.o
-
-
-OBJECTS=${VLIBOBJS} physio.o vol-salvage.o vol-info.o
-
-all: ${DESTDIR}lib/afs/vlib.a \
- ${DESTDIR}lib/afs/libvlib.a \
- ${DESTDIR}root.server/usr/afs/bin/salvager \
- ${DESTDIR}root.server/usr/afs/bin/volinfo \
- gi
-
-system: install
-
-kinstall ukinstall webinstall:
- @echo No kernel source here.
-
-${DESTDIR}root.server/usr/afs/bin/salvager: salvager
- ${INSTALL} -s $? $@
-
-${DESTDIR}root.server/usr/afs/bin/volinfo: volinfo
- ${INSTALL} -s $? $@
-
-${DESTDIR}lib/afs/vlib.a: vlib.a
- ${INSTALL} $? $@
-
-${DESTDIR}lib/afs/libvlib.a: vlib.a
- ${INSTALL} $? $@
-
-$(DESTDIR)root.server/usr/afs/bin/fs_conv_dux40D: fs_conv_dux40D
- ${INSTALL} -s $? $@
-
-$(DESTDIR)root.server/usr/afs/bin/xfs_size_check: xfs_size_check
- ${INSTALL} -s $? $@
-
-$(DESTDIR)root.server/usr/afs/bin/fs_conv_sol26: fs_conv_sol26
- ${INSTALL} -s $? $@
-
-install: all $(FS_CONV_OSF40D) $(XFS_SIZE_CHECK) $(FS_CONV_SOL26)
- ${INSTALL} ${PUBLICHEADERS} ${DESTDIR}include/afs
-
-
-${OBJECTS}: ${PUBLICHEADERS} ${SRCDIR}include/lwp.h ${SRCDIR}include/lock.h \
- ${SRCDIR}include/afs/afsint.h vutils.h salvage.h\
- AFS_component_version_number.c
-
-vol-salvage.o vutil.o: volinodes.h
-
-vlib.a: ${VLIBOBJS} AFS_component_version_number.o
- rm -f vlib.a
- $(AR) r vlib.a ${VLIBOBJS} AFS_component_version_number.o
- $(RANLIB) vlib.a
-
-# new salvager: remove references to /vice by linking with novice.o
-salvager: vol-salvage.o physio.o vlib.a
- ${CC} ${LDFLAGS} -o salvager vol-salvage.o physio.o ${LIBS}
-
-vol-salvage: vol-salvage.o
-vol-info: vol-info.o physio.o ihandle.o
-
-listinodes.o: listinodes.c AFS_component_version_number.c
- case ${SYS_NAME} in \
- hp?00_ux101 | hp_ux10? ) \
- ${CC} ${CFLAGS} -D_FILE64 -c listinodes.c \
- ;; \
- * ) ${CC} ${CFLAGS} -c listinodes.c \
- ;; \
- esac
-
-gi: ${DESTDIR}/lib/afs/libsys.a
- case ${SYS_NAME} in \
- *linux* | sgi_* | *fbsd* ) \
- echo "Don't build gi on ${SYS_NAME}";; \
- *) \
- ${CC} ${CFLAGS} -c gi.c ; \
- ${CC} ${LDFLAGS} -o gi gi.o ${DESTDIR}/lib/afs/libsys.a;; \
- esac
-
-volinfo: vol-info.o physio.o ihandle.o
- case ${SYS_NAME} in \
- *linux* | *fbsd*) \
- ${CC} ${CFLAGS} ${DBG} -o volinfo vol-info.o physio.o \
- ihandle.o ${LIBS} ;; \
- *) \
- ${CC} ${CFLAGS} ${DBG} -o volinfo vol-info.o physio.o \
- ihandle.o ${LIBS} ;; \
- esac
-
-
-fs_conv_dux40D: fs_conv_411.o
- ${CC} ${CFLAGS} ${DESTDIR}lib/afs/libcmd.a -o fs_conv_dux40D fs_conv_411.o ${LIBS}
-
-fs_conv_sol26: fs_conv_411.o vlib.a
- ${CC} ${CFLAGS} ${DESTDIR}lib/afs/libcmd.a -o fs_conv_sol26 fs_conv_411.o ${LIBS}
-
-fs_conv_411.o: fs_conv_411.c AFS_component_version_number.c
- ${CC} ${CFLAGS} -c fs_conv_411.c
-
-xfs_size_check: xfs_size_check.c
- ${CC} ${CFLAGS} -o xfs_size_check xfs_size_check.c
-
-clean:
- rm -f *.o *.a AFS_component_version_number.c
- rm -f ${SCMPROGS} ${STAGEPROGS} core salvager volinfo gi fs_conv_sol26 fs_conv_dux40D
-
-
-beancount:
- wc -l *.c *.h
-
-test:
- cd test; $(MAKE)
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=vol
-include ../../config/Makefile.${SYS_NAME}
-
-INCDIRS= -I. -I.. -I${DESTDIR}include ${FSINCLUDES}
-INSTALL = ${SRCDIR}bin/install
-LDFLAGS = ${OPTMZ} ${PROF} ${LDIRS} ${XLDFLAGS}
-
-LIBS= ${DESTDIR}lib/afs/libcmd.a ${DESTDIR}lib/afs/vlib.a \
- ${SRCDIR}lib/afs/util.a \
- ${DESTDIR}lib/afs/libsys.a ${DESTDIR}lib/afs/libdir.a \
- ${DESTDIR}lib/liblwp.a ${DESTDIR}lib/afs/libacl.a ${XLIBS}
-
-NAMEI_LIBS = ../vlib.a ${SRCDIR}lib/afs/util.a ${DESTDIR}lib/liblwp.a
-
-CFLAGS = -D${SYS_NAME} ${OPTMZ} ${INCDIRS} ${XCFLAGS} -g
-
-PROGS = listVicepx
-
-PUBLICHEADERS=../nfs.h ../vnode.h ../viceinode.h ../volume.h ../vldb.h \
- ../voldefs.h ../partition.h ../fssync.h ../inodeops.h
-
-OBJECTS=listVicepx.o utilities.o updateDirInode.o
-
-all system: install
-
-kinstall:
- @echo No kernel source here.
-
-install: listVicepx updateDirInode testpart
-
-${OBJECTS}: ${PUBLICHEADERS} ${SRCDIR}include/lwp.h \
- ${SRCDIR}include/lock.h ${SRCDIR}include/afs/afsint.h \
- ../filesignal.h ../vutils.h ../vldb.h ../salvage.h \
- ../volinodes.h ../qiin.h
-
-listVicepx.o: listVicepx.c utilities.c
- ${CC} ${CFLAGS} -c listVicepx.c
- ${CC} ${CFLAGS} -c utilities.c
-
-testpart: testpart.c ../vlib.a
- ${CC} ${CFLAGS} ${LDFLAGS} -o $@ testpart.c \
- ${DESTDIR}lib/afs/vlib.a ${DESTDIR}lib/liblwp.a \
- ${DESTDIR}lib/afs/util.a ${XLIBS}
-
-
-listVicepx: listVicepx.o utilities.o
- ${CC} ${LDFLAGS} -o listVicepx listVicepx.o utilities.o ${LIBS}
-
-updateDirInode.o: updateDirInode.c
- ${CC} ${CFLAGS} -c updateDirInode.c
-
-updateDirInode: updateDirInode.o
- ${CC} ${LDFLAGS} -o updateDirInode updateDirInode.o ${LIBS}
-
-
-NAMEI_PROGS = nicreate nincdec nino nilist
-namei: ${NAMEI_PROGS}
-
-nicreate: nicreate.o nsubr.o
- ${CC} ${CFLAGS} -o nicreate nicreate.o nsubr.o ${NAMEI_LIBS}
-
-nincdec: nincdec.o nsubr.o
- ${CC} ${CFLAGS} -o nincdec nincdec.o nsubr.o ${NAMEI_LIBS}
-
-nilist: nilist.o nsubr.o
- ${CC} ${CFLAGS} -o nilist nilist.o nsubr.o ${NAMEI_LIBS}
-
-nino: nino.o
- ${CC} ${CFLAGS} -o nino nino.o ${DESTDIR}lib/afs/util.a
-
-clean:
- rm -f *.o *.a
- rm -f ${SCMPROGS} ${STAGEPROGS} core listVicepx updateDirInode
-
-beancount:
- wc -l *.c *.h
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-SHELL=/bin/sh
-COMPONENT=volser
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET=${SRCDIR}bin/compile_et
-CFLAGS=${DBG} ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}include \
- ${XCFLAGS} ${DBG_DEFS}
-LDFLAGS=${DBG} ${OPTMZ} ${XLDFLAGS}
-
-INCDIRS= -I${TOP_SRCDIR}/config -I${SRCDIR}include/afs -I${SRCDIR}include
-INCLIBS=-L${SRCDIR}lib/afs -L${SRCDIR}lib
-
-VINCLS=${SRCDIR}include/afs/partition.h ${SRCDIR}include/afs/volume.h \
- ${SRCDIR}include/afs/vlserver.h vol.h dump.h volser.h lockdata.h
-
-RINCLS=${SRCDIR}include/rx/rx.h ${SRCDIR}include/rx/xdr.h \
- ${SRCDIR}include/afs/keys.h ${SRCDIR}include/afs/cellconfig.h \
- ${SRCDIR}include/ubik.h ${SRCDIR}include/afs/cmd.h
-
-TARGETS= ${DESTDIR}include/afs/volser.h \
- ${DESTDIR}include/afs/volint.h \
- ${DESTDIR}etc/vos \
- ${DESTDIR}root.server/usr/afs/bin/vos \
- ${DESTDIR}root.server/usr/afs/bin/volserver \
- ${DESTDIR}lib/afs/libvolser.a
-
-INTINCLS=volint.h volser.h
-
-HACKS=${SRCDIR}lib/afs/libdir.a
-
-LIBS= \
- ${SRCDIR}lib/afs/libaudit.a \
- ${SRCDIR}lib/afs/vlib.a \
- ${SRCDIR}/lib/afs/libacl.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libvldb.a \
- ${SRCDIR}lib/libubik.a \
- ${SRCDIR}lib/afs/libauth.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/librxkad.a \
- ${SRCDIR}lib/libdes.a \
- ${SRCDIR}lib/librxstat.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/libcom_err.a \
- ${SRCDIR}lib/afs/libkauth.a \
- ${SRCDIR}lib/afs/libusd.a \
- ${SRCDIR}lib/afs/util.a
-
-VSOBJS=vsprocs.o vsutils.o lockprocs.o volint.xdr.o volerr.o
-SOBJS=volmain.o volprocs.o physio.o common.o voltrans.o volerr.o \
- volint.cs.o dumpstuff.o volint.ss.o volint.xdr.o
-COBJS=volint.cs.o volint.xdr.o
-
-include ../config/Makefile.version
-
-all: volserver libvolser.a vos restorevol
-
-restorevol: restorevol.c
- ${CC} -g ${CFLAGS} -o restorevol restorevol.c \
- ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/afs/util.a
- ${INSTALL} restorevol ${SRCDIR}etc
-
-vos: vos.o ${VSOBJS} libvolser.a ${LIBS}
- ${CC} ${LDFLAGS} -g -o vos vos.o $(VSOBJS) libvolser.a ${LIBS} \
- ${XLIBS}
-
-libvolser.a: volint.cs.o $(VSOBJS) volint.ss.o AFS_component_version_number.o
- -rm -f libvolser.a
- ar rv libvolser.a volint.cs.o $(VSOBJS) volint.ss.o \
- AFS_component_version_number.o
- $(RANLIB) libvolser.a
-
-volser.h volerr.c: volerr.et volser.p.h
- rm -f volser.h volerr.c; ${COMPILE_ET} volerr -h volser
-
-volint.h volint.ss.c volint.cs.c volint.xdr.c: volint.xg
- ${SRCDIR}bin/rxgen -x volint.xg
-
-vsutils.o: vsutils.c ${VINCLS} ${RINCLS} ${INTINCLS}
-
-volmain.o: volmain.c ${VINCLS} ${RINCLS} AFS_component_version_number.c
-volprocs.o: volprocs.c ${VINCLS} ${RINCLS} ${INTINCLS}
-dumpstuff.o: dumpstuff.c ${VINCLS} ${RINCLS} ${INTINCLS}
-voldump.o: voldump.c ${VINCLS} ${RINCLS}
-vos.o: vos.c ${VINCLS} ${RINCLS} ${INTINCLS} AFS_component_version_number.c
-vsprocs.o: vsprocs.c ${VINCLS} ${RINCLS} ${INTINCLS}
-physio.o: physio.c ${VINCLS}
-common.o: common.c ${VINCLS}
-lockprocs.o: lockprocs.c ${VINCLS} ${INTINCLS} ${RINCLS}
-
-volint.cs.o: volint.cs.c ${INTINCLS}
-volint.ss.o: volint.ss.c ${INTINCLS}
-volint.xdr.o: volint.xdr.c ${INTINCLS}
-
-volserver: $(SOBJS) $(LIBS) $(HACKS)
- case ${SYS_NAME} in \
- *linux* | *fbsd* ) \
- ${CC} ${DBUG} -o volserver $(SOBJS) $(HACKS) \
- ${LDFLAGS} $(LIBS) ${XLIBS} ;; \
- *) \
- ${CC} ${DBUG} -g -o volserver $(SOBJS) $(HACKS) \
- ${LDFLAGS} $(LIBS) ${XLIBS} ;; \
- esac
-
-noversion system: install
-
-${DESTDIR}include/afs/volser.h :: volser.h
- ${INSTALL} $? $@
-
-${DESTDIR}include/afs/volint.h :: volint.h
- ${INSTALL} $? $@
-
-${DESTDIR}etc/vos ${DESTDIR}root.server/usr/afs/bin/vos :: vos
- ${INSTALL} $? $@
-
-${DESTDIR}lib/afs/libvolser.a :: libvolser.a
- ${INSTALL} $? $@
-
-${DESTDIR}root.server/usr/afs/bin/volserver :: volserver
- ${INSTALL} $? $@
-
-install: all $(TARGETS)
-
-clean:
- rm -f volserver *.o volint.ss.c volint.cs.c *.a volint.h \
- volint.xdr.c vos core volser.h volerr.c AFS_component_version_number.c restorevol
-
-lint: vos.c vsprocs.c volmain.c volprocs.c lockprocs.c
- lint -hb ${INCDIRS} ${INCLIBS} vos.c
- lint -hb ${INCDIRS} ${INCLIBS} vsprocs.c
- lint -hb ${INCDIRS} ${INCLIBS} volmain.c
- lint -hb ${INCDIRS} ${INCLIBS} volprocs.c
- lint -hb ${INCDIRS} ${INCLIBS} lockprocs.c
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/volser/volmain.c,v 1.6 2001/07/15 07:22:32 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/volser/volmain.c,v 1.7 2001/09/11 15:48:58 hartmans Exp $");
#include <sys/types.h>
#ifdef AFS_NT40_ENV
}
rx_GetIFInfo();
rx_SetRxDeadTime(420);
- bzero(busyFlags, sizeof(busyFlags));
+ memset(busyFlags, 0, sizeof(busyFlags));
/* Open FileLog and map stdout, stderr into it */
OpenLog(AFSDIR_SERVER_VOLSERLOG_FILEPATH);
+++ /dev/null
-#
-# Makefile for the wsadmin src directory, the place where package files
-# are generated.
-#
-# (C) Copyright Transarc Corporation 1989
-# Licensed Materials - Property of Transarc
-# All Rights Reserved.
-#
-CONFIG = \
- staff.aix_22 \
- staff.pmax_31 \
- staff.rt_r4 \
- staff.dkload.rt_r4 \
- staff.sun3_35 \
- staff.sun3_40 \
- staff.sun3_40x \
- staff.sun4_40 \
- staff.sun4_40c \
- staff.vax_30
-
-BASE_LIBS = \
- ${wsadmin}/src/admin \
- ${wsadmin}/lib/devel \
- ${wsadmin}/lib/base.generic
-
-MACHINE_LIBS = \
- ${wsadmin}/lib/aix_22.generic \
- ${wsadmin}/lib/aix_22.generic.dev \
- ${wsadmin}/lib/aix_22.readonly \
- ${wsadmin}/lib/aix_22.readwrite \
- \
- ${wsadmin}/lib/rt_r4.generic \
- ${wsadmin}/lib/rt_r4.generic.dev \
- ${wsadmin}/lib/rt_r4.generic.dkload \
- ${wsadmin}/lib/rt_r4.generic.printer \
- ${wsadmin}/lib/rt_r4.readonly \
- ${wsadmin}/lib/rt_r4.readwrite \
- \
- ${wsadmin}/lib/pmax_31.generic \
- ${wsadmin}/lib/pmax_31.generic.dev \
- ${wsadmin}/lib/pmax_31.readonly \
- ${wsadmin}/lib/pmax_31.readwrite \
- \
- ${wsadmin}/lib/sun3_35.generic \
- ${wsadmin}/lib/sun3_35.generic.dev \
- ${wsadmin}/lib/sun3_35.readonly \
- ${wsadmin}/lib/sun3_35.readwrite \
- \
- ${wsadmin}/lib/sun3_40.generic \
- ${wsadmin}/lib/sun3_40.generic.dev \
- ${wsadmin}/lib/sun3_40.readonly \
- ${wsadmin}/lib/sun3_40.readwrite \
- \
- ${wsadmin}/lib/sun3_40x.generic \
- ${wsadmin}/lib/sun3_40x.generic.dev \
- ${wsadmin}/lib/sun3_40x.readonly \
- ${wsadmin}/lib/sun3_40x.readwrite \
- \
- ${wsadmin}/lib/sun4_40.generic \
- ${wsadmin}/lib/sun4_40.generic.dev \
- ${wsadmin}/lib/sun4_40.readonly \
- ${wsadmin}/lib/sun4_40.readwrite \
- \
- ${wsadmin}/lib/sun4_40c.generic \
- ${wsadmin}/lib/sun4_40c.generic.dev \
- ${wsadmin}/lib/sun4_40c.readonly \
- ${wsadmin}/lib/sun4_40c.readwrite \
- \
- ${wsadmin}/lib/vax_30.generic \
- ${wsadmin}/lib/vax_30.generic.dev \
- ${wsadmin}/lib/vax_30.readonly \
- ${wsadmin}/lib/vax_30.readwrite
-
-LIBS = ${MACHINE_LIBS} ${BASE_LIBS}
-
-.SUFFIXES: .aix_22 \
- .pmax_31 \
- .rt_r4 \
- .proto \
- .sun3_35 \
- .sun3_40 \
- .sun3_40x \
- .sun4_40 \
- .sun4_40c \
- .vax_30
-
-.proto.aix_22: ; mpp -Dwsadmin=${wsadmin} -Dsys=aix_22 -Dname=$* $*.proto > $@
-.proto.pmax_31: ; mpp -Dwsadmin=${wsadmin} -Dsys=pmax_31 -Dname=$* $*.proto > $@
-.proto.rt_r4: ; mpp -Dwsadmin=${wsadmin} -Dsys=rt_r4 -Dname=$* $*.proto > $@
-.proto.sun3_35: ; mpp -Dwsadmin=${wsadmin} -Dsys=sun3_35 -Dname=$* $*.proto > $@
-.proto.sun3_40: ; mpp -Dwsadmin=${wsadmin} -Dsys=sun3_40 -Dname=$* $*.proto > $@
-.proto.sun3_40x: ; mpp -Dwsadmin=${wsadmin} -Dsys=sun3_40x -Dname=$* $*.proto > $@
-.proto.sun4_40: ; mpp -Dwsadmin=${wsadmin} -Dsys=sun4_40 -Dname=$* $*.proto > $@
-.proto.sun4_40c: ; mpp -Dwsadmin=${wsadmin} -Dsys=sun4_40c -Dname=$* $*.proto > $@
-.proto.vax_30: ; mpp -Dwsadmin=${wsadmin} -Dsys=vax_30 -Dname=$* $*.proto > $@
-
-all: ${CONFIG}
-
-${CONFIG}: ${LIBS}
-
-system: install
-
-install: ${CONFIG}
- cp ${CONFIG} ${wsadmin}/etc
-
-clean:
- rm -f ${CONFIG} *.BAK *.CKP
+++ /dev/null
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# Makefile for the module providing the client side of the File Server
-# and Cache Manager extended statistics gathering.
-SHELL = /bin/sh
-COMPONENT=xstat
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS= ${DBUG} -I. \
- -I${TOP_SRCDIR}/config \
- -I${SRCDIR}include \
- -I${SRCDIR}include/afs \
- -I${SRCDIR} \
- -I/usr/include ${XCFLAGS}
-
-RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h
-FSINCLS=xstat_fs.h ${RPCINCLS}
-CMINCLS=xstat_cm.h ${RPCINCLS}
-
-AFSLIBS=${SRCDIR}lib/afs/libafsint.a \
- ${SRCDIR}lib/afs/libcmd.a \
- ${SRCDIR}lib/librx.a \
- ${SRCDIR}lib/liblwp.a \
- ${SRCDIR}lib/afs/libsys.a \
- ${SRCDIR}lib/afs/util.a
-
-LIBS = ${AFSLIBS}
-
-FSOBJS=xstat_fs.o \
- xstat_fs_callback.o
-
-CMOBJS=xstat_cm.o
-
-include ../config/Makefile.version
-
-all: libxstat_fs.a xstat_fs_test \
- libxstat_cm.a xstat_cm_test
-
-#
-# ------------------------------------------ File Server data collection
-#
-libxstat_fs.a: ${FSOBJS} AFS_component_version_number.o
- -rm -f libxstat_fs.a
- ${AR} rv libxstat_fs.a ${FSOBJS} AFS_component_version_number.o
- $(RANLIB) libxstat_fs.a
-
-xstat_fs.o: xstat_fs.c ${FSINCLS}
-
-xstat_fs_callback.o: xstat_fs_callback.c ${FSINCLS}
-
-xstat_fs_test.: xstat_fs_test.c ${FSINCLS}
-
-xstat_fs_test: xstat_fs_test.o libxstat_fs.a ${LIBS}
- ${CC} ${CFLAGS} -o xstat_fs_test xstat_fs_test.o libxstat_fs.a ${LIBS} ${XLIBS}
-
-#
-# ---------------------------------------- Cache Manager data collection
-#
-libxstat_cm.a: ${CMOBJS} AFS_component_version_number.o
- -rm -f libxstat_cm.a
- ${AR} rv libxstat_cm.a ${CMOBJS} AFS_component_version_number.o
- $(RANLIB) libxstat_cm.a
-
-xstat_cm.o: xstat_cm.c ${CMINCLS}
-
-xstat_cm_test.o: xstat_cm_test.c ${CMINCLS}
-
-xstat_cm_test: xstat_cm_test.o libxstat_cm.a ${LIBS}
- ${CC} ${CFLAGS} -o xstat_cm_test xstat_cm_test.o libxstat_cm.a ${LIBS} ${XLIBS}
-
-#
-# Misc others
-
-#
-system: install
-
-install: all
- ${INSTALL} xstat_fs.h ${DESTDIR}include/afs
- ${INSTALL} xstat_cm.h ${DESTDIR}include/afs
- ${INSTALL} libxstat_fs.a ${DESTDIR}lib/afs
- ${INSTALL} libxstat_cm.a ${DESTDIR}lib/afs
- ${INSTALL} xstat_fs_test ${DESTDIR}bin
- ${INSTALL} xstat_cm_test ${DESTDIR}bin
-
-clean:
- rm -f *.o \
- xstat_fs_test \
- xstat_cm_test \
- libxstat_fs.a \
- libxstat_cm.a \
- core\
- AFS_component_version_number.c