1 # $NetBSD: Makefile,v 1.69 2013/05/09 08:40:05 adam Exp $
5 PKGNAME
= mit-
${DISTNAME}
7 MASTER_SITES
= http
://web.mit.edu
/kerberos
/dist/krb5
/${PKGVERSION_NOREV
:R
}/
9 DISTFILES
= ${DISTNAME}-signed
${EXTRACT_SUFX}
11 #PATCH_SITES= http://web.mit.edu/kerberos/advisories/
12 #PATCHFILES= 2011-006-patch-r18.txt
14 MAINTAINER
= tez@NetBSD.org
15 HOMEPAGE
= http
://web.mit.edu
/kerberos
/
16 COMMENT
= MIT Kerberos
5 authentication system
20 WRKSRC
= ${WRKDIR}/${DISTNAME}/src
22 BUILD_TARGET
= generate-files-mac
all
24 .
include "../../mk/bsd.prefs.mk"
26 CONFLICTS
+= heimdal-
[0-9]*
27 CONFLICTS
+= kth-krb4-
[0-9]*
31 USE_TOOLS
+= autoconf gmake m4 perl
yacc msgfmt
35 # The actual KDC databases are stored in ${MIT_KRB5_STATEDIR}/krb5kdc.
36 MIT_KRB5_STATEDIR?
= ${VARBASE}
37 FILES_SUBST
+= MIT_KRB5_STATEDIR
=${MIT_KRB5_STATEDIR}
41 CONFIGURE_ARGS
+= --localstatedir
=${MIT_KRB5_STATEDIR}
42 CONFIGURE_ARGS
+= --sysconfdir
=${PKG_SYSCONFDIR}
43 CONFIGURE_ARGS
+= --enable-shared
44 CONFIGURE_ARGS
+= --enable-dns-for-realm
45 CONFIGURE_ARGS
+= --enable-kdc-replay-cache
46 CONFIGURE_ARGS
+= --disable-thread-support
47 CONFIGURE_ARGS
+= --without-tcl
48 CONFIGURE_ARGS
+= --enable-pkgsrc-libtool
49 MAKE_ENV
+= ROOT_USER
=${ROOT_USER}
52 PATCH_DIST_ARGS
= -d
${WRKSRC} -p2
56 OWN_DIRS_PERMS
= ${MIT_KRB5_STATEDIR}/krb5kdc \
57 ${ROOT_USER} ${ROOT_GROUP} 0700
58 RCD_SCRIPTS
= kadmind kdc
60 INSTALLATION_DIRS
= bin
include/gssapi
include/gssrpc
${PKGINFODIR} \
61 ${PKGMANDIR}/man1
${PKGMANDIR}/man5 \
62 ${PKGMANDIR}/man8 sbin share
/examples
/krb5 \
63 share
/et share
/examples
/rc.d share
/gnats \
64 lib
/krb5
/plugins
/kdb lib
/krb5
/plugins
/preauth \
65 include/krb5
include/kadm5
67 # The MIT krb5 distribution is actually a tar file that contains the
68 # real .tar.gz distfile and a PGP signature.
70 @
${ECHO} "=> Extracting internal tarball"; \
71 extract_file
="${WRKDIR}/${DISTNAME}.tar.gz"; \
72 cd
${WRKDIR} && ${EXTRACT_CMD}
75 @
${ECHO} "=> Generating configure"; \
76 cd
${WRKSRC}; autoconf
-I
${WRKSRC} -f
;
79 @
${ECHO} "=> Installing info files"; \
80 cd
${WRKDIR}/${DISTNAME}/doc
; \
81 for f in
*.
info *.info-
[0-9]*; do \
82 ${TEST} ! -f
"$$f" || \
83 ${INSTALL_MAN} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \
86 BUILDLINK_API_DEPENDS.openssl
+= openssl
>=0.9.8
87 .
include "../../security/openssl/buildlink3.mk"
88 .
include "../../mk/bsd.pkg.mk"