+${COMPILE_PART1} util ${COMPILE_PART2}
libafscp: util afs volser vlserver rx auth fsint
- +if test "@BUILD_KRB5@" = "yes"; then \
- ${COMPILE_PART1} libafscp ${COMPILE_PART2} ; \
- else \
- echo Skipping libafscp for ${SYS_NAME} ; \
- fi
+ +${COMPILE_PART1} libafscp ${COMPILE_PART2}
audit: util rx rxkad fsint
+${COMPILE_PART1} audit ${COMPILE_PART2} #TODO
#define AFSCONF_CLIENTNAME AFSDIR_CLIENT_ETC_DIRPATH
#endif
#include <rx/rx.h>
-#include <krb5.h>
+#ifdef HAVE_KERBEROS
+# include <krb5.h>
+#endif
#include "afscp.h"
#include "afscp_internal.h"
int
afscp_SetDefaultRealm(const char *realmname)
{
+ char *newdefrealm;
+
+#ifdef HAVE_KERBEROS
/* krb5_error_code k5ec; */
krb5_context k5con;
- char *newdefrealm;
int code;
if (realmname == NULL) {
* return -1;
* } */
/* krb5_set_default_realm() is returning 0 on success, not KRB5KDC_ERR_NONE */
+#endif /* HAVE_KERBEROS */
+
newdefrealm = strdup(realmname);
if (newdefrealm == NULL) {
return -1;
#include <ubik.h>
#include <rx/rx_null.h>
#include <rx/rxkad.h>
-#include <krb5.h>
+#ifdef HAVE_KERBEROS
+# include <krb5.h>
+#endif
#include "afscp.h"
#include "afscp_internal.h"
int
_GetSecurityObject(struct afscp_cell *cell)
{
- int code;
+ int code = ENOENT;
+#ifdef HAVE_KERBEROS
krb5_context context;
krb5_creds match;
krb5_creds *cred;
return 0;
try_anon:
+#endif /* HAVE_KERBEROS */
if (try_anonymous)
return _GetNullSecurityObject(cell);
else
${PTH_CCRULE} ../fsint/afscbint.ss.c
afsio: afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o ${AFSIO_LIBS}
- +if test "@BUILD_KRB5@" = "yes"; then \
- $(MT_CC) @KRB5_CPPFLAGS@ $(PTH_LDFLAGS) $(AFS_CFLAGS) -o afsio afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o ${AFSIO_LIBS} \
- $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS} ${XLIBS} ${KRB5LIBS} ; \
- else \
- echo "Skipping afsio (KRB5 build disabled)" ; \
- fi
+ $(MT_CC) $(PTH_LDFLAGS) $(AFS_CFLAGS) -o afsio afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o ${AFSIO_LIBS} \
+ $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS} ${XLIBS} ${KRB5LIBS}
livesys.o: livesys.c ${INCLS} AFS_component_version_number.c
${INSTALL_PROGRAM} up ${DESTDIR}${bindir}/up
${INSTALL_PROGRAM} fstrace ${DESTDIR}${sbindir}/fstrace
${INSTALL_PROGRAM} cmdebug ${DESTDIR}${bindir}/cmdebug
- if test "@BUILD_KRB5@" = "yes"; then \
- ${INSTALL_PROGRAM} afsio ${DESTDIR}${bindir}/afsio ; \
- fi
+ ${INSTALL_PROGRAM} afsio ${DESTDIR}${bindir}/afsio ;
-set -x; \
case ${SYS_NAME} in \
sgi_6? ) \
${INSTALL_PROGRAM} up ${DEST}/bin/up
${INSTALL_PROGRAM} fstrace ${DEST}/etc/fstrace
${INSTALL_PROGRAM} cmdebug ${DEST}/bin/cmdebug
- if test "@BUILD_KRB5@" = "yes"; then \
- ${INSTALL_PROGRAM} afsio ${DEST}/bin/afsio ; \
- fi
+ ${INSTALL_PROGRAM} afsio ${DEST}/bin/afsio
-set -x; \
case ${SYS_NAME} in \
sgi_6? ) \