pkgsrc/security/mit-krb5-appl/Makefile
wiz b5d6d92ccd *: recursive bump for heimdal 7.7.0
its buildlink3.mk now includes openssl's buildlink3.mk
2021-10-21 07:46:31 +00:00

72 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2021/10/21 07:46:37 wiz Exp $
DISTNAME= krb5-appl-1.0.3
PKGNAME= mit-${DISTNAME}
PKGREVISION= 5
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5-appl/${PKGVERSION_NOREV:R}/
EXTRACT_SUFX= .tar
DISTFILES= ${DISTNAME}-signed${EXTRACT_SUFX}
#PATCH_SITES= http://web.mit.edu/kerberos/advisories/
#PATCHFILES= 2011-005-patch.txt
MAINTAINER= tez@NetBSD.org
HOMEPAGE= https://web.mit.edu/kerberos/
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
USE_TOOLS+= autoconf autoheader yacc
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
PATCH_DIST_ARGS= -d ${WRKSRC} -p1
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}
pre-configure:
@${ECHO} "=> Generating configure"; \
cd ${WRKSRC}; autoheader -I ${WRKSRC} -f; \
cd ${WRKSRC}; autoconf -I ${WRKSRC} -f;
.include "../../mk/termcap.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../security/mit-krb5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"