Changeset 191

Show
Ignore:
Timestamp:
01/02/10 19:28:15 (14 years ago)
Author:
broder
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/fink/main/finkinfo/macathena-moira.info

    r188 r191  
    11Package: macathena-moira 
    2 Version: 20091016 
     2Version: svn3945 
    33Revision: 1 
    44Source: http://macathena.mit.edu/dist/moira-%v.tar.gz 
     
    1212        queues, and several other aspects of the Athena environment. 
    1313<< 
    14 Source-MD5: f97903ce5b82af35247705b9aeeb33d3 
     14Source-MD5: a55bce75d0b8190d4f9f4fc9fbc0c029 
    1515 
    16 Depends: macathena-hesiod, libncurses5-shlibs 
     16Depends: %N-shlibs (= %v-%r), macathena-hesiod, libncurses5-shlibs 
    1717BuildDepends: fink (>= 0.24.12), libncurses5 
    1818UpdateConfigGuess: true 
    1919PatchFile: %n.patch 
    20 PatchFile-MD5: e05590ac3f1b07dad64b082f9673c38
    21 PatchScript: patch -p1 < %{PatchFile} 
     20PatchFile-MD5: d760881dfcd6de5496f96af1163f65f
     21PatchScript: patch -p0 < %{PatchFile} 
    2222ConfigureParams: --with-krb5 --without-krb4 --with-com_err --with-hesiod --mandir=%p/share/man 
    2323CompileScript: << 
     
    3333        mv %i/share/man/man1/chsh.1 %i/share/man/man1/chsh.moira.1 
    3434         
    35         %b/mkinstalldirs %i/include/moira %i/lib 
    36         cp %b/include/moira.h %b/lib/mr_et.h %b/lib/krb_et.h %b/lib/ureg_err.h %i/include/moira 
    37          
    3835        %b/mkinstalldirs %i/share/doc/%n 
    3936        cat %b/include/mit-copyright.h | python -c "import sys; print ''.join(sys.stdin.readlines()[2:-2])" >%i/share/doc/%n/copyright 
    4037<< 
     38 
     39SplitOff: << 
     40  Package: %N-shlibs 
     41  Files: %lib/libmoira.*.dylib 
     42  Shlibs: << 
     43    %p/%lib/libmoira.0.dylib 1.0.0 %N-shlibs (>= svn3945-1) 
     44  << 
     45<< 
     46SplitOff2: << 
     47  Package: %N-dev 
     48  Depends: %N-shlibs (= %v-%r) 
     49  BuildDependsOnly: True 
     50  Files: %lib/libmoira.dylib %lib/libmoira.la %lib/libmoira.a include share/man/man3 
     51<< 
     52SplitOff3: << 
     53  Package: %N-update-server 
     54  Depends: %N-shlibs (= %v-%r) 
     55  Files: etc sbin/update_server share/man/man8/update_server.* 
     56<< 
  • trunk/fink/main/finkinfo/macathena-moira.patch

    r188 r191  
    1 diff -ur moira-20091016.orig/clients/mrtest/mrtest.c moira-20091016/clients/mrtest/mrtest.c 
    2 --- moira-20091016.orig/clients/mrtest/mrtest.c 2009-10-16 16:37:18.000000000 -0400 
    3 +++ moira-20091016/clients/mrtest/mrtest.c      2009-10-18 17:26:49.000000000 -0400 
     1Index: configure.in 
     2=================================================================== 
     3--- configure.in        (revision 3945) 
     4+++ configure.in        (working copy) 
     5@@ -142,6 +142,12 @@ 
     6                               $LIBPATH -ldes)], 
     7                 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv) 
     8 fi 
     9+if test "$KRB4_LIBS" != "" ; then 
     10+    AC_CANONICAL_TARGET 
     11+    case "$target_os" in 
     12+    darwin*) KRB4_LIBS="$KRB4_LIBS -framework Kerberos" 
     13+    esac 
     14+fi 
     15  
     16 AC_MSG_CHECKING(for Kerberos 5) 
     17 AC_ARG_WITH(krb5, 
     18@@ -163,6 +169,12 @@ 
     19     REG_SVR_DEFS=-DKRB4 
     20     REG_SVR_LIBS=-lkadm 
     21 fi 
     22+if test "$KRB5_LIBS" != "" ; then 
     23+    AC_CANONICAL_TARGET 
     24+    case "$target_os" in 
     25+    darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" 
     26+    esac 
     27+fi 
     28 AC_SUBST(REG_SVR_DEFS) 
     29 AC_SUBST(REG_SVR_INCLUDES) 
     30 AC_SUBST(REG_SVR_LIBS) 
     31Index: clients/mrtest/mrtest.c 
     32=================================================================== 
     33--- clients/mrtest/mrtest.c     (revision 3945) 
     34+++ clients/mrtest/mrtest.c     (working copy) 
    435@@ -97,8 +97,13 @@ 
    536        } 
     
    1647 #ifdef HAVE_READLINE 
    1748   /* we don't want filename completion */ 
    18 diff -ur moira-20091016.orig/configure.in moira-20091016/configure.in 
    19 --- moira-20091016.orig/configure.in    2009-10-16 16:37:18.000000000 -0400 
    20 +++ moira-20091016/configure.in 2009-10-18 17:27:47.000000000 -0400 
    21 @@ -464,12 +464,12 @@ 
    22  if test "$zephyr" != no; then 
    23    KLIBS="-lzephyr $KLIBS" 
    24  fi 
    25 -LIBS="-lmoira $KLIBS" 
    26 -AC_SUBST(KLIBS) 
    27 
    28  MR_LIBDEP='$(BUILDTOP)/lib/libmoira.la' 
    29  AC_SUBST(MR_LIBDEP) 
    30   
    31 +LIBS="$MR_LIBDEP $KLIBS" 
    32 +AC_SUBST(KLIBS) 
    33 
    34  AC_OUTPUT(Makefile lib/Makefile include/Makefile clients/Makefile \ 
    35           clients/lib/Makefile clients/addusr/Makefile \ 
    36           clients/blanche/Makefile clients/chfn/Makefile \ 
    37 diff -ur moira-20091016.orig/lib/mr_init.c moira-20091016/lib/mr_init.c 
    38 --- moira-20091016.orig/lib/mr_init.c   2009-10-16 16:37:18.000000000 -0400 
    39 +++ moira-20091016/lib/mr_init.c        2009-10-18 17:26:49.000000000 -0400 
     49Index: lib/mr_init.c 
     50=================================================================== 
     51--- lib/mr_init.c       (revision 3945) 
     52+++ lib/mr_init.c       (working copy) 
    4053@@ -20,8 +20,15 @@ 
    4154   if (mr_inited) 
     
    5467   mr_inited = 1; 
    5568 } 
     69Index: include/Makefile.in 
     70=================================================================== 
     71--- include/Makefile.in (revision 3945) 
     72+++ include/Makefile.in (working copy) 
     73@@ -7,6 +7,10 @@ 
     74 SRCTOP=@top_srcdir@ 
     75 BUILDTOP=../.. 
     76  
     77+prefix=@prefix@ 
     78+includedir=@includedir@ 
     79+INSTALL=@INSTALL@ 
     80+ 
     81 all: 
     82  
     83 clean: 
     84@@ -17,3 +21,5 @@ 
     85 depend: 
     86  
     87 install: 
     88+       $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira 
     89+       $(INSTALL) moira.h $(DESTDIR)$(includedir)/moira 
     90Index: lib/Makefile.in 
     91=================================================================== 
     92--- lib/Makefile.in     (revision 3945) 
     93+++ lib/Makefile.in     (working copy) 
     94@@ -25,6 +25,7 @@ 
     95 prefix=@prefix@ 
     96 exec_prefix=@exec_prefix@ 
     97 libdir=@libdir@ 
     98+includedir=@includedir@ 
     99  
     100 OBJS=  critical.lo fixhost.lo fixname.lo \ 
     101        hash.lo kname_unparse.lo kname_parse.lo krb_et.lo mr_access.lo mr_auth.lo \ 
     102@@ -54,6 +55,8 @@ 
     103  
     104 install: all 
     105        $(LIBTOOL) --mode=install  $(INSTALL) libmoira.la $(DESTDIR)$(libdir)/libmoira.la 
     106+       $(SRCTOP)/mkinstalldirs $(DESTDIR)$(includedir)/moira 
     107+       $(INSTALL) mr_et.h krb_et.h ureg_err.h $(DESTDIR)$(includedir)/moira 
     108  
     109 libmoira.la: $(OBJS) 
     110        $(LIBTOOL) --mode=link $(CC) $(ALL_LDFLAGS) -o $@ $(OBJS) -rpath $(libdir) -version-info 0:0:0 
     111Index: update/Makefile.in 
     112=================================================================== 
     113--- update/Makefile.in  (revision 3945) 
     114+++ update/Makefile.in  (working copy) 
     115@@ -4,7 +4,7 @@ 
     116 @SET_MAKE@ 
     117  
     118 CC=@CC@ 
     119-CPPFLAGS=@CPPFLAGS@ 
     120+CPPFLAGS=@CPPFLAGS@ -DCONFIG_FILE=\"$(sysconfdir)/athena/moira.conf\" 
     121 CFLAGS=@CFLAGS@ 
     122 DEFS=@DEFS@ 
     123 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS) 
     124@@ -50,8 +50,8 @@ 
     125 install: all 
     126        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir) 
     127        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir) 
     128-       $(SRCTOP)/mkinstalldirs $(DESTDIR)/etc/athena 
     129-       $(INSTALL) -m 644 moira.conf $(DESTDIR)/etc/athena/moira.conf 
     130+       $(SRCTOP)/mkinstalldirs $(DESTDIR)$(sysconfdir)/athena 
     131+       $(INSTALL) -m 644 moira.conf $(DESTDIR)$(sysconfdir)/athena/moira.conf 
     132  
     133 update_test: $(COBJS) $(MR_LIBDEP) 
     134        $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS) 
     135Index: update/config.c 
     136=================================================================== 
     137--- update/config.c     (revision 3945) 
     138+++ update/config.c     (working copy) 
     139@@ -26,8 +26,6 @@ 
     140  
     141 RCSID("$Header: /afs/.athena.mit.edu/astaff/project/moiradev/repository/moira/update/config.c,v 1.7 1998-02-15 17:49:27 danw Exp $"); 
     142  
     143-#define CONFIG_FILE    "/etc/athena/moira.conf" 
     144- 
     145 /* Variables currently supported: 
     146  * chroot directory    daemon will run chrooted to this directory 
     147  * user username       daemon will run with this user's uid 
     148Index: configure.in 
     149=================================================================== 
     150--- configure.in        (revision 3945) 
     151+++ configure.in        (working copy) 
     152@@ -461,7 +461,7 @@ 
     153 MR_INCLUDE('$(BUILDTOP)/lib') 
     154 MR_INCLUDE('$(BUILDTOP)/db') 
     155 MR_INCLUDE('$(srcdir)') 
     156-LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" 
     157+LDFLAGS="$LDFLAGS $LIBPATH" 
     158 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS" 
     159 KLIBS="$LIBS" 
     160 if test "$hesiod" != no; then