63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
|
# $NetBSD: Makefile,v 1.1.1.1 2011/03/23 00:01:38 tez Exp $
|
||
|
|
||
|
DISTNAME= krb5-appl-1.0.1
|
||
|
PKGNAME= mit-${DISTNAME}
|
||
|
CATEGORIES= security
|
||
|
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5-appl/1.0/
|
||
|
DISTFILES= ${DISTNAME}-signed${EXTRACT_SUFX}
|
||
|
EXTRACT_SUFX= .tar
|
||
|
|
||
|
MAINTAINER= tez@NetBSD.org
|
||
|
HOMEPAGE= http://web.mit.edu/kerberos/
|
||
|
COMMENT= MIT Kerberos 5 authentication system applications
|
||
|
|
||
|
PKG_DESTDIR_SUPPORT= user-destdir
|
||
|
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+= yacc
|
||
|
GNU_CONFIGURE= yes
|
||
|
|
||
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
||
|
|
||
|
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}
|
||
|
|
||
|
.include "../../security/openssl/buildlink3.mk"
|
||
|
.include "../../security/mit-krb5/buildlink3.mk"
|
||
|
.include "../../mk/bsd.pkg.mk"
|