root/trunk/fink/main/finkinfo/macathena-moira.patch

Revision 191, 4.8 kB (checked in by broder, 14 years ago)

Update Moira to use new snapshot and to follow Fink policy for shared
libraries.

  • configure.in

    old new  
    142142                               $LIBPATH -ldes)], 
    143143                 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv) 
    144144fi 
     145if test "$KRB4_LIBS" != "" ; then 
     146    AC_CANONICAL_TARGET 
     147    case "$target_os" in 
     148    darwin*) KRB4_LIBS="$KRB4_LIBS -framework Kerberos" 
     149    esac 
     150fi 
    145151 
    146152AC_MSG_CHECKING(for Kerberos 5) 
    147153AC_ARG_WITH(krb5, 
     
    163169    REG_SVR_DEFS=-DKRB4 
    164170    REG_SVR_LIBS=-lkadm 
    165171fi 
     172if test "$KRB5_LIBS" != "" ; then 
     173    AC_CANONICAL_TARGET 
     174    case "$target_os" in 
     175    darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" 
     176    esac 
     177fi 
    166178AC_SUBST(REG_SVR_DEFS) 
    167179AC_SUBST(REG_SVR_INCLUDES) 
    168180AC_SUBST(REG_SVR_LIBS) 
  • clients/mrtest/mrtest.c

    old new  
    9797        } 
    9898    } 
    9999 
     100#if defined(__APPLE__) && defined(__MACH__) 
     101  add_error_table(&et_sms_error_table); 
     102  add_error_table(&et_krb_error_table); 
     103#else 
    100104  initialize_sms_error_table(); 
    101105  initialize_krb_error_table(); 
     106#endif 
    102107 
    103108#ifdef HAVE_READLINE 
    104109  /* we don't want filename completion */ 
  • lib/mr_init.c

    old new  
    2020  if (mr_inited) 
    2121    return; 
    2222 
     23#if defined(__APPLE__) && defined(__MACH__) 
     24  add_error_table(&et_sms_error_table); 
     25  add_error_table(&et_krb_error_table); 
     26  add_error_table(&et_ureg_error_table); 
     27#else 
    2328  initialize_sms_error_table(); 
    2429  initialize_krb_error_table(); 
    2530  initialize_ureg_error_table(); 
     31#endif 
     32 
    2633  mr_inited = 1; 
    2734} 
  • include/Makefile.in

    old new  
    77SRCTOP=@top_srcdir@ 
    88BUILDTOP=../.. 
    99 
     10prefix=@prefix@ 
     11includedir=@includedir@ 
     12INSTALL=@INSTALL@ 
     13 
    1014all: 
    1115 
    1216clean: 
     
    1721depend: 
    1822 
    1923install: 
     24        $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira 
     25        $(INSTALL) moira.h $(DESTDIR)$(includedir)/moira 
  • lib/Makefile.in

    old new  
    2525prefix=@prefix@ 
    2626exec_prefix=@exec_prefix@ 
    2727libdir=@libdir@ 
     28includedir=@includedir@ 
    2829 
    2930OBJS=   critical.lo fixhost.lo fixname.lo \ 
    3031        hash.lo kname_unparse.lo kname_parse.lo krb_et.lo mr_access.lo mr_auth.lo \ 
     
    5455 
    5556install: all 
    5657        $(LIBTOOL) --mode=install  $(INSTALL) libmoira.la $(DESTDIR)$(libdir)/libmoira.la 
     58        $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira 
     59        $(INSTALL) mr_et.h krb_et.h ureg_err.h $(DESTDIR)$(includedir)/moira 
    5760 
    5861libmoira.la: $(OBJS) 
    5962        $(LIBTOOL) --mode=link $(CC) $(ALL_LDFLAGS) -o $@ $(OBJS) -rpath $(libdir) -version-info 0:0:0 
  • update/Makefile.in

    old new  
    44@SET_MAKE@ 
    55 
    66CC=@CC@ 
    7 CPPFLAGS=@CPPFLAGS@ 
     7CPPFLAGS=@CPPFLAGS@ -DCONFIG_FILE=\"$(sysconfdir)/athena/moira.conf\" 
    88CFLAGS=@CFLAGS@ 
    99DEFS=@DEFS@ 
    1010ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS) 
     
    5050install: all 
    5151        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir) 
    5252        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir) 
    53         $(SRCTOP)/mkinstalldirs $(DESTDIR)/etc/athena 
    54         $(INSTALL) -m 644 moira.conf $(DESTDIR)/etc/athena/moira.conf 
     53        $(SRCTOP)/mkinstalldirs $(DESTDIR)$(sysconfdir)/athena 
     54        $(INSTALL) -m 644 moira.conf $(DESTDIR)$(sysconfdir)/athena/moira.conf 
    5555 
    5656update_test: $(COBJS) $(MR_LIBDEP) 
    5757        $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS) 
  • update/config.c

    old new  
    2626 
    2727RCSID("$Header: /afs/.athena.mit.edu/astaff/project/moiradev/repository/moira/update/config.c,v 1.7 1998-02-15 17:49:27 danw Exp $"); 
    2828 
    29 #define CONFIG_FILE     "/etc/athena/moira.conf" 
    30  
    3129/* Variables currently supported: 
    3230 * chroot directory     daemon will run chrooted to this directory 
    3331 * user username        daemon will run with this user's uid 
  • configure.in

    old new  
    461461MR_INCLUDE('$(BUILDTOP)/lib') 
    462462MR_INCLUDE('$(BUILDTOP)/db') 
    463463MR_INCLUDE('$(srcdir)') 
    464 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" 
     464LDFLAGS="$LDFLAGS $LIBPATH" 
    465465KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS" 
    466466KLIBS="$LIBS" 
    467467if test "$hesiod" != no; then 
Note: See TracBrowser for help on using the browser.