1998-07-06 02:28:42 +00:00
|
|
|
# Ports collection Makefile for: MIT Kerberos V
|
|
|
|
# Version required: 1.0.5
|
|
|
|
# Date created: 6/5/1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-07-06 02:28:42 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-07-06 02:28:42 +00:00
|
|
|
#
|
|
|
|
|
2000-01-16 19:10:58 +00:00
|
|
|
DISTNAME= krb5-1.1.1
|
1998-07-06 02:28:42 +00:00
|
|
|
CATEGORIES= security
|
1999-10-04 14:32:28 +00:00
|
|
|
MASTER_SITES= # manual download
|
|
|
|
EXTRACT_SUFX= .tar
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= nectar@FreeBSD.org
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1998-07-06 23:35:59 +00:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1999-10-04 14:32:28 +00:00
|
|
|
KERBEROSV_URL= http://web.mit.edu/network/kerberos-form.html
|
1998-07-06 02:28:42 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
1998-09-27 11:34:28 +00:00
|
|
|
CONFIGURE_ARGS?= --enable-shared --with-ccopts="${CFLAGS}"
|
1999-10-04 14:32:28 +00:00
|
|
|
CONFIGURE_ENV= INSTALL="${INSTALL}"
|
|
|
|
MAKE_ARGS= INSTALL="${INSTALL}"
|
1998-07-06 23:35:59 +00:00
|
|
|
KRB5_KRB4_COMPAT?= YES
|
|
|
|
|
|
|
|
.if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
|
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
|
|
|
.endif
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1998-08-01 19:47:54 +00:00
|
|
|
.if defined(KRB5_HOME)
|
|
|
|
PREFIX= ${KRB5_HOME}
|
|
|
|
.endif
|
|
|
|
|
1998-07-06 02:28:42 +00:00
|
|
|
RESTRICTED= "Crypto; export-controlled"
|
|
|
|
# Set USA_RESIDENT appropriately in /etc/make.conf if you like
|
|
|
|
|
|
|
|
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 \
|
1999-10-04 14:32:28 +00:00
|
|
|
v4rcp.1 ftp.1 telnet.1 kerberos.1 kvno.1
|
1998-07-06 02:28:42 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
|
|
|
WANT_HTML?= YES
|
|
|
|
HTML_DOC_DIR= ${WRKDIR}/${DISTNAME}/doc
|
|
|
|
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
|
1998-11-14 09:43:39 +00:00
|
|
|
|
1998-07-06 23:35:59 +00:00
|
|
|
do-fetch:
|
1999-10-04 14:32:28 +00:00
|
|
|
@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 resident,";\
|
|
|
|
${ECHO} " then you cannot obtain the Kerberos V sources from";\
|
|
|
|
${ECHO} " within the United States."; \
|
|
|
|
${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
|
|
|
|
|
|
|
|
# the distfile is actually a tar of three compressed tars and their
|
|
|
|
# signatures
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@(cd ${WRKDIR} && ${TAR} -xf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
|
|
@for f in crypto doc src; do \
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTNAME}.$$f.tar.gz \
|
|
|
|
${EXTRACT_AFTER_ARGS} && \
|
|
|
|
${RM} ${DISTNAME}.$$f.tar.gz ${DISTNAME}.$$f.tar.gz.asc; \
|
|
|
|
done
|
|
|
|
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
|
|
|
|
@if [ `id -u` = 0 ]; then \
|
|
|
|
${CHMOD} -R ug-s ${WRKDIR}; \
|
|
|
|
${CHOWN} -R 0:0 ${WRKDIR}; \
|
|
|
|
fi
|
|
|
|
.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
|
1998-07-06 02:28:42 +00:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/../doc && \
|
|
|
|
${MAKE} ${INFO_FILES})
|
|
|
|
|
1999-10-04 14:32:28 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1998-07-06 02:28:42 +00:00
|
|
|
post-install:
|
1998-11-07 02:33:51 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1998-07-06 02:28:42 +00:00
|
|
|
# html documentation
|
1998-07-06 23:35:59 +00:00
|
|
|
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
|
1998-07-06 02:28:42 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/krb5
|
|
|
|
.for html in ${HTML_DOCS}
|
|
|
|
${INSTALL_MAN} ${HTML_DOC_DIR}/${html} ${PREFIX}/share/doc/krb5
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
# 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
|
1998-11-07 02:33:51 +00:00
|
|
|
# fixup packing list (no libs without version numbers in aout case)
|
1998-11-14 09:43:39 +00:00
|
|
|
.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
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|