2021-10-21 09:46:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2021/10/21 07:46:37 wiz Exp $
|
2011-03-23 01:01:38 +01:00
|
|
|
|
2012-02-26 14:16:32 +01:00
|
|
|
DISTNAME= krb5-appl-1.0.3
|
2011-03-23 01:01:38 +01:00
|
|
|
PKGNAME= mit-${DISTNAME}
|
2021-10-21 09:46:31 +02:00
|
|
|
PKGREVISION= 5
|
2011-03-23 01:01:38 +01:00
|
|
|
CATEGORIES= security
|
2012-07-16 21:13:23 +02:00
|
|
|
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5-appl/${PKGVERSION_NOREV:R}/
|
2011-03-23 01:01:38 +01:00
|
|
|
EXTRACT_SUFX= .tar
|
2012-02-26 14:16:32 +01:00
|
|
|
DISTFILES= ${DISTNAME}-signed${EXTRACT_SUFX}
|
2011-03-23 01:01:38 +01:00
|
|
|
|
2012-02-26 14:16:32 +01:00
|
|
|
#PATCH_SITES= http://web.mit.edu/kerberos/advisories/
|
|
|
|
#PATCHFILES= 2011-005-patch.txt
|
2011-07-05 21:48:59 +02:00
|
|
|
|
2011-03-23 01:01:38 +01:00
|
|
|
MAINTAINER= tez@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://web.mit.edu/kerberos/
|
2011-03-23 01:01:38 +01:00
|
|
|
COMMENT= MIT Kerberos 5 authentication system applications
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
CONFLICTS+= heimdal-[0-9]*
|
|
|
|
CONFLICTS+= kth-krb4-[0-9]*
|
|
|
|
CONFLICTS+= mit-krb5<1.8
|
|
|
|
|
2012-02-26 14:16:32 +01:00
|
|
|
USE_TOOLS+= autoconf autoheader yacc
|
2011-03-23 01:01:38 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-02-26 14:16:32 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2011-03-23 01:01:38 +01:00
|
|
|
|
2011-07-05 21:48:59 +02:00
|
|
|
PATCH_DIST_ARGS= -d ${WRKSRC} -p1
|
|
|
|
|
2011-03-23 01:01:38 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mit-krb5
|
|
|
|
PKG_SUPPORTED_OPTIONS= kerberos-prefix-cmds
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
# Rename some of MIT krb5's applications so they won't conflict with
|
|
|
|
# other packages.
|
|
|
|
#
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos-prefix-cmds)
|
|
|
|
KRB5_PREFIX= k
|
|
|
|
MIT_KRB5_TRANSFORM= s/^ftp/${KRB5_PREFIX}&/; \
|
|
|
|
s/^rcp/${KRB5_PREFIX}&/; \
|
|
|
|
s/^rlogin/${KRB5_PREFIX}&/; \
|
|
|
|
s/^rsh/${KRB5_PREFIX}&/; \
|
|
|
|
s/^telnet/${KRB5_PREFIX}&/
|
|
|
|
.else
|
|
|
|
KRB5_PREFIX= # empty
|
|
|
|
MIT_KRB5_TRANSFORM= s/^ftp/k&/
|
|
|
|
.endif
|
|
|
|
PLIST_SUBST+= KRB5_PREFIX=${KRB5_PREFIX:Q}
|
|
|
|
CONFIGURE_ARGS+= --program-transform-name=${MIT_KRB5_TRANSFORM:Q}
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
|
|
|
|
|
|
|
|
# The MIT krb5 distribution is actually a tar file that contains the
|
|
|
|
# real .tar.gz distfile and a PGP signature.
|
|
|
|
#
|
|
|
|
post-extract:
|
|
|
|
@${ECHO} "=> Extracting internal tarball"; \
|
|
|
|
extract_file="${WRKDIR}/${DISTNAME}.tar.gz"; \
|
|
|
|
cd ${WRKDIR} && ${EXTRACT_CMD}
|
|
|
|
|
2011-07-05 21:48:59 +02:00
|
|
|
pre-configure:
|
|
|
|
@${ECHO} "=> Generating configure"; \
|
|
|
|
cd ${WRKSRC}; autoheader -I ${WRKSRC} -f; \
|
|
|
|
cd ${WRKSRC}; autoconf -I ${WRKSRC} -f;
|
|
|
|
|
2011-12-17 11:16:32 +01:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2011-03-23 01:01:38 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../security/mit-krb5/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|