summaryrefslogtreecommitdiff
path: root/security/mit-krb5-appl/Makefile
blob: da2914e7a68de9190a51a86f67867af1ce889cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# $NetBSD: Makefile,v 1.9 2014/02/12 23:18:33 tron Exp $

DISTNAME=	krb5-appl-1.0.3
PKGNAME=	mit-${DISTNAME}
PKGREVISION=	2
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=	http://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"