pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/mit-krb5 Fix building with Autoconf 2.60 and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01d4cad1e47b
branches:  trunk
changeset: 524098:01d4cad1e47b
user:      salo <salo%pkgsrc.org@localhost>
date:      Thu Jan 18 17:28:24 2007 +0000

description:
Fix building with Autoconf 2.60 and newer.
Addresses PR pkg/34252 by Matthias Petermann.

Also delint a bit.

diffstat:

 security/mit-krb5/Makefile |  67 ++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 62 insertions(+), 5 deletions(-)

diffs (103 lines):

diff -r 2f616899299e -r 01d4cad1e47b security/mit-krb5/Makefile
--- a/security/mit-krb5/Makefile        Thu Jan 18 17:23:39 2007 +0000
+++ b/security/mit-krb5/Makefile        Thu Jan 18 17:28:24 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2007/01/17 23:43:47 salo Exp $
+# $NetBSD: Makefile,v 1.40 2007/01/18 17:28:24 salo Exp $
 
 DISTNAME=      krb5-1.4.2
 PKGNAME=       mit-${DISTNAME:S/-signed$//}
@@ -29,6 +29,8 @@
 MIT_KRB5_STATEDIR?=    ${VARBASE}
 FILES_SUBST+=          MIT_KRB5_STATEDIR=${MIT_KRB5_STATEDIR:Q}
 
+BUILD_DEFS+=           VARBASE
+
 CONFIGURE_ARGS+=       --localstatedir=${MIT_KRB5_STATEDIR:Q}
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=       --enable-shared
@@ -70,6 +72,61 @@
 SUBST_FILES.mit-krb5=  appl/bsd/Makefile.in include/krb5/stock/osconf.h
 SUBST_SED.mit-krb5=    -e "/KRB5_PATH_RLOGIN/s,/rlogin,/${KRB5_PREFIX}rlogin,g"
 
+# Fix autoconf incompatibility in new versions where substitutions won't be
+# processed properly.  For more details see:
+#  http://mailman.mit.edu/pipermail/krb5-bugs/2006-June/004587.html
+SUBST_CLASSES+=                frag
+SUBST_STAGE.frag=      post-patch
+SUBST_FILES.frag=      appl/telnet/libtelnet/Makefile.in       \
+                       lib/apputils/Makefile.in                \
+                       lib/crypto/Makefile.in                  \
+                       lib/crypto/aes/Makefile.in              \
+                       lib/crypto/arcfour/Makefile.in          \
+                       lib/crypto/crc32/Makefile.in            \
+                       lib/crypto/des/Makefile.in              \
+                       lib/crypto/dk/Makefile.in               \
+                       lib/crypto/enc_provider/Makefile.in     \
+                       lib/crypto/hash_provider/Makefile.in    \
+                       lib/crypto/keyhash_provider/Makefile.in \
+                       lib/crypto/md4/Makefile.in              \
+                       lib/crypto/md5/Makefile.in              \
+                       lib/crypto/old/Makefile.in              \
+                       lib/crypto/raw/Makefile.in              \
+                       lib/crypto/sha1/Makefile.in             \
+                       lib/crypto/yarrow/Makefile.in           \
+                       lib/des425/Makefile.in                  \
+                       lib/gssapi/Makefile.in                  \
+                       lib/gssapi/generic/Makefile.in          \
+                       lib/gssapi/krb5/Makefile.in             \
+                       lib/kadm5/Makefile.in                   \
+                       lib/kadm5/clnt/Makefile.in              \
+                       lib/kadm5/srv/Makefile.in               \
+                       lib/kdb/Makefile.in                     \
+                       lib/krb4/Makefile.in                    \
+                       lib/krb5/Makefile.in                    \
+                       lib/krb5/asn.1/Makefile.in              \
+                       lib/krb5/ccache/Makefile.in             \
+                       lib/krb5/error_tables/Makefile.in       \
+                       lib/krb5/keytab/Makefile.in             \
+                       lib/krb5/krb/Makefile.in                \
+                       lib/krb5/os/Makefile.in                 \
+                       lib/krb5/posix/Makefile.in              \
+                       lib/krb5/rcache/Makefile.in             \
+                       lib/rpc/Makefile.in                     \
+                       util/db2/Makefile.in                    \
+                       util/db2/btree/Makefile.in              \
+                       util/db2/clib/Makefile.in               \
+                       util/db2/db/Makefile.in                 \
+                       util/db2/hash/Makefile.in               \
+                       util/db2/mpool/Makefile.in              \
+                       util/db2/recno/Makefile.in              \
+                       util/et/Makefile.in                     \
+                       util/profile/Makefile.in                \
+                       util/pty/Makefile.in                    \
+                       util/ss/Makefile.in                     \
+                       util/support/Makefile.in
+SUBST_SED.frag=                -e "s/^\#.\\(@lib.*_frag@\\)/\\1/g"
+
 INFO_FILES=            # PLIST
 
 OWN_DIRS_PERMS=                ${MIT_KRB5_STATEDIR}/krb5kdc                    \
@@ -77,18 +134,18 @@
 RCD_SCRIPTS=           kadmind kdc
 
 INSTALLATION_DIRS=     bin include/gssapi include/gssrpc ${PKGINFODIR} \
-                       lib man/man1 man/man5 man/man8 sbin             \
-                       share/examples/krb5
+                       lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5         \
+                       ${PKGMANDIR}/man8 sbin share/examples/krb5
 
 # The MIT krb5 distribution is actually a tar file that contains the
 # real .tar.gz distfile and a PGP signature.
 #
 post-extract:
-       @extract_file="${WRKDIR}/${DISTNAME}.tar.gz";                   \
+       extract_file="${WRKDIR}/${DISTNAME}.tar.gz";                    \
        cd ${WRKDIR} && ${EXTRACT_CMD}
 
 pre-configure:
-       @cd ${WRKSRC}; ${FIND} . -name configure -print |               \
+       cd ${WRKSRC}; ${FIND} . -name configure -print |                \
        ${XARGS} -n 1 ${DIRNAME} |                                      \
        while read dir; do                                              \
                 ${ECHO} "=> Generating configure in $$dir";            \



Home | Main Index | Thread Index | Old Index