1998-07-06 02:28:42 +00:00
|
|
|
# Ports collection Makefile for: MIT Kerberos V
|
|
|
|
# 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-04-09 18:34:06 +00:00
|
|
|
PORTNAME= krb5
|
2003-08-08 23:35:18 +00:00
|
|
|
PORTVERSION= 1.3.1
|
2003-11-08 23:08:25 +00:00
|
|
|
PORTREVISION= 1
|
1998-07-06 02:28:42 +00:00
|
|
|
CATEGORIES= security
|
2003-11-10 23:22:16 +00:00
|
|
|
# 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
|
2003-08-08 01:20:18 +00:00
|
|
|
|
2003-11-10 23:22:16 +00:00
|
|
|
.if defined(USE_KRB5_TARBALL) && ${USE_KRB5_TARBALL} == "CRYPTO-PUBLISH"
|
2003-05-07 04:09:39 +00:00
|
|
|
MASTER_SITES= http://www.crypto-publish.org/dist/mit-kerberos5/
|
|
|
|
EXTRACT_SUFX= .tar.gz
|
2003-11-10 23:22:16 +00:00
|
|
|
.else
|
2003-11-10 23:30:32 +00:00
|
|
|
MASTER_SITES= http://web.mit.edu/kerberos/www/dist/krb5/${PORTVERSION:C/\.[0-9]*$//}/
|
2003-11-10 23:22:16 +00:00
|
|
|
EXTRACT_SUFX= .tar
|
2002-05-03 02:20:17 +00:00
|
|
|
.endif
|
1998-07-06 02:28:42 +00:00
|
|
|
|
2002-01-08 15:05:08 +00:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-11-03 03:56:42 +00:00
|
|
|
COMMENT= An authentication system developed at MIT, successor to Kerberos IV
|
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
|
2003-11-08 23:08:25 +00:00
|
|
|
USE_REINPLACE= yes
|
1998-07-06 02:28:42 +00:00
|
|
|
USE_GMAKE= yes
|
2003-09-13 02:32:33 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-07-06 02:28:42 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-08-08 01:20:18 +00:00
|
|
|
CONFIGURE_ARGS?= --enable-shared
|
|
|
|
CONFIGURE_ENV= INSTALL="${INSTALL}" YACC=/usr/bin/yacc \
|
|
|
|
CFLAGS="${CFLAGS}"
|
1999-10-04 14:32:28 +00:00
|
|
|
MAKE_ARGS= INSTALL="${INSTALL}"
|
2003-05-07 04:13:08 +00:00
|
|
|
KRB5_KRB4_COMPAT?= NO
|
1998-07-06 23:35:59 +00:00
|
|
|
|
|
|
|
.if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
|
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
2002-10-28 18:28:38 +00:00
|
|
|
PLIST_SUB+= KRB4="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= KRB4=""
|
1998-07-06 23:35:59 +00:00
|
|
|
.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
|
|
|
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 \
|
2003-11-08 23:08:25 +00:00
|
|
|
ftp.1 telnet.1 kerberos.1 kvno.1 compile_et.1
|
2002-10-28 18:28:38 +00:00
|
|
|
.if defined(KRB5_KRB4_COMPAT) && ${KRB5_KRB4_COMPAT} != "NO"
|
|
|
|
MAN1+= v4rcp.1
|
|
|
|
.endif
|
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 \
|
2003-11-08 23:08:25 +00:00
|
|
|
kshd.8 klogind.8 login.krb5.8 ftpd.8 telnetd.8 \
|
|
|
|
k5srvutil.8
|
1998-07-06 02:28:42 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
|
|
|
WANT_HTML?= YES
|
|
|
|
HTML_DOC_DIR= ${WRKDIR}/${DISTNAME}/doc
|
2003-08-08 01:20:18 +00:00
|
|
|
HTML_DOCS= admin.html user-guide.html install.html
|
|
|
|
HTML_OUTDIRS= krb5-admin krb5-install
|
1998-11-14 09:43:39 +00:00
|
|
|
|
2003-11-08 23:08:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-11-23 21:48:54 +00:00
|
|
|
.if defined(USE_KRB5_TARBALL) && ${USE_KRB5_TARBALL} == "MIT"
|
2002-03-18 22:52:43 +00:00
|
|
|
post-extract:
|
|
|
|
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
|
|
|
|
@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
|
2002-08-17 00:29:41 +00:00
|
|
|
.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
|
2002-05-03 02:20:17 +00:00
|
|
|
.endif
|
2002-03-18 22:52:43 +00:00
|
|
|
|
2003-11-08 23:08:25 +00:00
|
|
|
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
|
|
|
|
|
1999-10-04 14:32:28 +00:00
|
|
|
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})
|
2003-08-08 01:20:18 +00:00
|
|
|
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
|
|
|
|
@(cd ${WRKSRC}/../doc && \
|
|
|
|
${MAKE} ${HTML_DOCS})
|
|
|
|
.endif
|
1998-07-06 02:28:42 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
# 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
|
2003-08-08 01:20:18 +00:00
|
|
|
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}
|
1998-07-06 02:28:42 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-08-08 01:20:18 +00:00
|
|
|
${ECHO_CMD} @dirrm share/doc/krb5 >> ${TMPPLIST}
|
1998-07-06 02:28:42 +00:00
|
|
|
# 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
|
2002-07-01 06:20:38 +00:00
|
|
|
@${SED} "s%\${PREFIX}%${PREFIX}%" ${FILESDIR}/README.FreeBSD > ${PREFIX}/share/doc/krb5/README.FreeBSD
|
2002-01-08 15:05:08 +00:00
|
|
|
@${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} "------------------------------------------------------"
|
1998-07-06 02:28:42 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|