head	1.23;
access;
symbols
	RELEASE_5_1_0:1.15
	RELEASE_4_8_0:1.15
	RELEASE_5_0_0:1.13
	RELEASE_4_7_0:1.8;
locks; strict;
comment	@# @;


1.23
date	2004.02.28.21.37.17;	author cy;	state dead;
branches;
next	1.22;

1.22
date	2004.02.21.05.16.02;	author cy;	state Exp;
branches;
next	1.21;

1.21
date	2004.02.07.04.16.53;	author cy;	state Exp;
branches;
next	1.20;

1.20
date	2004.02.04.05.08.46;	author marcus;	state Exp;
branches;
next	1.19;

1.19
date	2004.01.26.04.10.56;	author cy;	state Exp;
branches;
next	1.18;

1.18
date	2003.08.08.01.42.00;	author cy;	state dead;
branches;
next	1.17;

1.17
date	2003.08.07.09.10.21;	author kris;	state Exp;
branches;
next	1.16;

1.16
date	2003.07.02.20.25.33;	author cy;	state Exp;
branches;
next	1.15;

1.15
date	2003.03.07.06.10.42;	author ade;	state Exp;
branches;
next	1.14;

1.14
date	2003.02.22.16.12.21;	author nork;	state Exp;
branches;
next	1.13;

1.13
date	2002.11.10.16.47.51;	author lioux;	state Exp;
branches;
next	1.12;

1.12
date	2002.11.09.16.34.59;	author cy;	state Exp;
branches;
next	1.11;

1.11
date	2002.11.07.05.46.02;	author cy;	state Exp;
branches;
next	1.10;

1.10
date	2002.11.05.06.51.28;	author cy;	state Exp;
branches;
next	1.9;

1.9
date	2002.10.15.04.25.18;	author cy;	state dead;
branches;
next	1.8;

1.8
date	2002.09.04.00.09.07;	author cy;	state Exp;
branches;
next	1.7;

1.7
date	2002.08.20.21.25.23;	author cy;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.14.21.35.10;	author cy;	state dead;
branches;
next	1.5;

1.5
date	2002.04.20.06.33.53;	author cy;	state Exp;
branches;
next	1.4;

1.4
date	2002.04.13.16.33.13;	author cy;	state Exp;
branches;
next	1.3;

1.3
date	2002.03.08.14.38.43;	author cy;	state dead;
branches;
next	1.2;

1.2
date	2002.02.24.13.56.37;	author cy;	state Exp;
branches;
next	1.1;

1.1
date	2002.02.10.22.45.31;	author cy;	state Exp;
branches;
next	;


desc
@@


1.23
log
@MIT KRB5 1.3.2 has been released. Remove the beta.
@
text
@# Ports collection Makefile for:	MIT Kerberos V
# Date created:				6/5/1998
# Whom:					nectar@@FreeBSD.org
#
# $FreeBSD: ports/security/krb5-beta/Makefile,v 1.22 2004/02/21 05:16:02 cy Exp $
#

PORTNAME=		krb5
PORTVERSION=		1.3.2.b4
CATEGORIES=		security
# USE_TARBALL tells the port that the user has fetched the source
# directly from MIT or crypto-publish.org (CRYTPO-PUBLISH).
USE_KRB5_TARBALL?=		MIT

.if defined(USE_KRB5_TARBALL) && ${USE_KRB5_TARBALL} == "CRYPTO-PUBLISH"
MASTER_SITES=		http://www.crypto-publish.org/dist/mit-kerberos5/
EXTRACT_SUFX=		.tar.gz
.else
MASTER_SITES=		http://web.mit.edu/kerberos/www/dist/krb5/${PORTVERSION:C/\.[0-9]*\.b[0-9]$//}/
EXTRACT_SUFX=		.tar
.endif
DISTNAME=		${PORTNAME}-${PORTVERSION:S/.b/-beta/}

MAINTAINER=		cy@@FreeBSD.org
COMMENT=		An authentication system developed at MIT, successor to Kerberos IV

BUILD_DEPENDS=		gm4:${PORTSDIR}/devel/m4

NO_LATEST_LINK=		yes
KERBEROSV_URL=		http://web.mit.edu/network/kerberos-form.html
USE_REINPLACE=		yes
USE_GMAKE=		yes
USE_PERL5_BUILD=	yes
INSTALLS_SHLIB=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS?=	--enable-shared
CONFIGURE_ENV=		INSTALL="${INSTALL}" YACC=/usr/bin/yacc \
			CFLAGS="${CFLAGS}"
MAKE_ARGS=		INSTALL="${INSTALL}"
KRB5_KRB4_COMPAT?=	NO

.if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
CONFIGURE_ARGS+=	--without-krb4
PLIST_SUB+=		KRB4="@@comment "
.else
PLIST_SUB+=		KRB4=""
.endif

.if defined(KRB5_HOME)
PREFIX=			${KRB5_HOME}
.endif

INFO_FILES=		krb425.info krb5-admin.info krb5-admin.info-1 \
			krb5-admin.info-2 krb5-admin.info-3 krb5-install.info \
			krb5-install.info-1 krb5-install.info-2 krb5-user.info

MAN1=			krb5-send-pr.1 kpasswd.1 v5passwd.1 klist.1 kinit.1 \
			kdestroy.1 ksu.1 sclient.1 rsh.1 rcp.1 rlogin.1     \
			ftp.1 telnet.1 kerberos.1 kvno.1 compile_et.1
.if defined(KRB5_KRB4_COMPAT) && ${KRB5_KRB4_COMPAT} != "NO"
MAN1+=			v4rcp.1
.endif
MAN5=			kdc.conf.5 krb5.conf.5 .k5login.5
MAN8=			krb5kdc.8 kadmin.8 kadmin.local.8 kdb5_util.8 \
			ktutil.8 kadmind.8 kprop.8 kpropd.8 sserver.8 \
			kshd.8 klogind.8 login.krb5.8 ftpd.8 telnetd.8 \
			k5srvutil.8

WRKSRC=			${WRKDIR}/${DISTNAME}/src

WANT_HTML?=		YES
HTML_DOC_DIR=		${WRKDIR}/${DISTNAME}/doc
HTML_DOCS=		admin.html user-guide.html install.html
HTML_OUTDIRS=		krb5-admin krb5-install

.include <bsd.port.pre.mk>

.if defined(USE_KRB5_TARBALL) && ${USE_KRB5_TARBALL} == "MIT"
post-extract:
	@@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
	@@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
	@@if [ `id -u` = 0 ]; then \
		${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}; \
		${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}; \
	fi
.endif
.endif

post-patch:
.if ${OSVERSION} >= 500000
	@@${REINPLACE_CMD} -e '1s,^#!\/usr\/athena,#!${LOCALBASE},' \
		${WRKSRC}/../doc/man2html
.else
	@@${REINPLACE_CMD} -e '1s,^#!\/usr\/athena,#!\/usr,' \
		${WRKSRC}/../doc/man2html
.endif

pre-build:
.if !defined(KRB5_KRB4_COMPAT)
	@@${ECHO} "------------------------------------------------------"
	@@${ECHO} "Set KRB5_KRB4_COMPAT=NO if you do not want to build   "
	@@${ECHO} "the KerberosIV compatibility libraries.               "
	@@${ECHO} "------------------------------------------------------"
.endif

post-build:
	@@(cd ${WRKSRC}/../doc && \
	${MAKE} ${INFO_FILES})
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
	@@(cd ${WRKSRC}/../doc && \
	${MAKE} ${HTML_DOCS})
.endif

post-install:
# html documentation
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
	@@${MKDIR} ${PREFIX}/share/doc/krb5
	for html in ${HTML_DOC_DIR}/*.html; do \
		${INSTALL_MAN} $${html} ${PREFIX}/share/doc/krb5; \
		${ECHO_CMD} share/doc/krb5/`${BASENAME} $${html}` >> ${TMPPLIST}; \
	done
.for htmldir in ${HTML_OUTDIRS}
	@@${MKDIR} ${PREFIX}/share/doc/krb5/${htmldir}
	for html in ${HTML_DOC_DIR}/${htmldir}/*; do \
		${INSTALL_MAN} $${html} ${PREFIX}/share/doc/krb5/${htmldir}; \
		${ECHO_CMD} share/doc/krb5/${htmldir}/`${BASENAME} $${html}` >> ${TMPPLIST}; \
	done
	${ECHO_CMD} @@dirrm share/doc/krb5/${htmldir} >> ${TMPPLIST}
.endfor
.endif
	${ECHO_CMD} @@dirrm share/doc/krb5 >> ${TMPPLIST}
# handle info files
.for info in ${INFO_FILES}
	${INSTALL_MAN} ${WRKSRC}/../doc/${info} ${PREFIX}/info/${info}
.endfor
.for info in ${INFO_FILES:M*.info}
	install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
.endfor
# fixup packing list (no libs without version numbers in aout case)
.if ${PORTOBJFORMAT} == "aout"
	${ECHO_MSG} "Fixing packing list for a.out"
	${MV} ${TMPPLIST} ${TMPPLIST}.new
	${GREP} -v '\.so$$' ${TMPPLIST}.new > ${TMPPLIST}
	${RM} ${TMPPLIST}.new
.endif
	@@${SED} "s%\${PREFIX}%${PREFIX}%" ${FILESDIR}/README.FreeBSD > ${PREFIX}/share/doc/krb5/README.FreeBSD
	@@${CHMOD} 444 ${PREFIX}/share/doc/krb5/README.FreeBSD
	@@${ECHO} "------------------------------------------------------"
	@@${ECHO} "This port of MIT Kerberos 5 includes remote login     "
	@@${ECHO} "daemons (telnetd and klogind).  These daemons default "
	@@${ECHO} "to using the system login program (/usr/bin/login).   "
	@@${ECHO} "Please see the file                                   "
	@@${ECHO} "${PREFIX}/share/doc/krb5/README.FreeBSD"
	@@${ECHO} "for more information.                                 "
	@@${ECHO} "------------------------------------------------------"

.include <bsd.port.post.mk>
@


1.22
log
@Update krb5-1.3.2-beta1 --> krb5-1.3.2-beta4
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.21
log
@Add NO_LATEST_LINK to avoid link stomping.

Reported by:	kris
@
text
@d9 1
a9 2
PORTVERSION=		1.3.2.b1
PORTREVISION=	1
@


1.20
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d30 1
@


1.19
log
@Brand new MIT KRB5 beta.
@
text
@d10 1
@


1.18
log
@MIT KRB5 1.3 has been released. Remove the beta.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/krb5-beta/Makefile,v 1.17 2003/08/07 09:10:21 kris Exp $
d9 1
a9 1
PORTVERSION=		1.2.7b2
d11 5
a15 8
# USE_MIT_TARBALL tells the port that the user has fetched the source
# directly from MIT rather than the default crypto-publish.org.
USE_MIT_TARBALL?=	NO
.if defined(USE_MIT_TARBALL) && ${USE_MIT_TARBALL} == "YES"
MASTER_SITES=		# manual download
DISTNAME=		krb5-1.2.7-beta2
EXTRACT_SUFX=		.tar
.else
d18 3
d22 1
d25 1
a25 3
COMMENT=	An authentication system developed at MIT, successor to Kerberos IV

BROKEN=			distinfo out of date
d30 1
d32 1
d35 3
a37 2
CONFIGURE_ARGS?=	--enable-shared --with-ccopts="${CFLAGS}"
CONFIGURE_ENV=		INSTALL="${INSTALL}" YACC=/usr/bin/yacc
a51 2
# Set USE_MIT_TARBALL appropriately in /etc/make.conf if you like

d58 1
a58 1
			ftp.1 telnet.1 kerberos.1 kvno.1
d65 2
a66 1
			kshd.8 klogind.8 login.krb5.8 ftpd.8 telnetd.8
d72 4
a75 22
HTML_DOCS=		admin.html install_foot.html user-guide.html          \
			admin_foot.html install_toc.html user-guide_foot.html \
			admin_toc.html krb425.html user-guide_toc.html        \
			install.html krb425_toc.html

.if defined(USE_MIT_TARBALL) && ${USE_MIT_TARBALL} == "YES"
do-fetch:
	@@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then        \
	${ECHO} "";							\
	${ECHO} ">> Kerberos V contains encryption software and is";    \
	${ECHO} "   export restricted.  If you are not a USA or";       \
	${ECHO} "   Canadian resident, you cannot obtain Kerberos V";   \
	${ECHO} "   sources directly from MIT and must obtain the";     \
	${ECHO} "   source from crypto-publish.org by unsetting";       \
	${ECHO} "   USE_MIT_TARBALL or setting USE_MIT_TARBALL to NO."; \
	${ECHO} "";							\
	${ECHO} ">> The Kerberos V sources must be fetched manually.";  \
	${ECHO} "   Please visit ${KERBEROSV_URL}";                     \
	${ECHO} "   to download ${DISTNAME}${EXTRACT_SUFX} and place";  \
	${ECHO} "   it in ${DISTDIR}.  Then run make again.";           \
	${FALSE};							\
	fi
d77 1
d89 9
d109 4
a112 2

.include <bsd.port.pre.mk>
d118 11
a128 2
.for html in ${HTML_DOCS}
	${INSTALL_MAN} ${HTML_DOC_DIR}/${html} ${PREFIX}/share/doc/krb5
d131 1
@


1.17
log
@BROKEN: distinfo out of date
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@Sync up krb5-beta Makefile infrastructure with krb5 in preparation
for upgrade to 1.3-beta5.
@
text
@d26 2
@


1.15
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d11 4
d18 4
d35 1
a35 1
KRB5_KRB4_COMPAT?=	YES
d48 1
a48 1
# Set USA_RESIDENT appropriately in /etc/make.conf if you like
d74 1
d79 5
a83 3
	${ECHO} "   export restricted.  If you are not a USA resident,";\
	${ECHO} "   then you cannot obtain the Kerberos V sources from";\
	${ECHO} "   within the United States.";                         \
d100 1
@


1.14
log
@Remove RESTRICTED tag for crypto stuff.

Approved by:	kris (implicitly)
@
text
@d16 1
@


1.13
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@a38 1
RESTRICTED=		"Crypto; export-controlled"
@


1.12
log
@Update 1.2.7-beta1 --> 1.2.7-beta2
@
text
@a16 2
PORTCOMMENT=		An authentication system developed at MIT, successor to Kerberos IV

@


1.11
log
@Use PORTCOMMENT.
@
text
@d9 1
a9 1
PORTVERSION=		1.2.7b1
d12 1
a12 1
DISTNAME=		krb5-1.2.7-beta1
@


1.10
log
@New MIT Kerberos V beta, version 1.2.7-beta1.
@
text
@d17 2
@


1.9
log
@MIT KRB5 1.2.6 has been GA for some time. Remove the beta.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/krb5-beta/Makefile,v 1.8 2002/09/04 00:09:07 cy Exp $
d9 1
a9 1
PORTVERSION=		1.2.6b2
d12 1
a12 1
DISTNAME=		krb5-1.2.6-beta2
d24 1
a24 1
CONFIGURE_ENV=		INSTALL="${INSTALL}"
d30 3
d48 4
a51 1
			v4rcp.1 ftp.1 telnet.1 kerberos.1 kvno.1
a65 1
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} == "YES"
a88 1
.endif
@


1.8
log
@Update krb5-1.2.6-beta1 --> krb5-1.2.6-beta2
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@New MIT Kerberos V beta, V 1.2.6-beta1.
@
text
@d9 1
a9 1
PORTVERSION=		1.2.6b1
d12 1
a12 1
DISTNAME=		krb5-1.2.6-beta1
@


1.6
log
@Removing krb5-beta port.  As krb5-1.2.5 went GA 14 days ago, krb5-beta
is not relevant at this time.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/krb5-beta/Makefile,v 1.5 2002/04/20 06:33:53 cy Exp $
d8 2
a9 2
PORTNAME=		krb5-beta
PORTVERSION=		1.2.5b2
d12 2
a13 1
DISTNAME=		krb5-1.2.5-beta2
a19 1
EXTRACT_SUFX=		.tar
d60 1
d79 7
a85 2
	@@${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}
	@@${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}
d123 1
a123 1
	@@${SED} "s%\${PREFIX}%${PREFIX}%" ${FILESDIR} > ${PREFIX}/share/doc/krb5/README.FreeBSD
@


1.5
log
@Update krb5-1.2.5-beta1 --> krb5-1.2.5-beta2
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.4
log
@New MIT Kerberos V beta, V 1.2.5-beta1.
@
text
@d9 1
a9 1
PORTVERSION=		1.2.5b1
d12 1
a12 1
DISTNAME=		krb5-1.2.5-beta1
@


1.3
log
@Removing krb5-beta port.  Krb5-beta is a "test" port to allow FreeBSD users
the opportunity to use/test the upcoming krb5 before it is released.
Krb5-1.2.4 was released over a week ago superceeding this port.  This port
will be resurrected when a new krb5-beta becomes available.
@
text
@d1 3
a3 3
# Ports collection Makefile for:	MIT Kerberos V Beta
# Date created:				2/10/2002
# Whom:					cy@@FreeBSD.org
d5 1
a5 1
# $FreeBSD: ports/security/krb5-beta/Makefile,v 1.2 2002/02/24 13:56:37 cy Exp $
d8 2
a9 2
PORTNAME=		krb5
PORTVERSION=		1.2.4b2
d12 1
a12 1
DISTNAME=		krb5-1.2.4-beta2
d19 1
a27 4
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == "NO"
MASTER_SITES=          http://www.crypto-publish.org/dist/mit-kerberos5/
.endif

a59 1
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} == "YES"
d74 6
a79 1
.endif
@


1.2
log
@Update krb5-1.2.4-beta1 --> krb5-1.2.4-beta2
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.1
log
@New port, Kerberos V 1.2.4-beta1.
@
text
@d9 1
a9 1
PORTVERSION=		1.2.4b1
d12 1
a12 1
DISTNAME=		krb5-1.2.4-beta1
@

