1998-07-06 04:28:42 +02:00
|
|
|
# Ports collection Makefile for: MIT Kerberos V
|
|
|
|
# Date created: 6/5/1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-07-06 04:28:42 +02:00
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1998-07-06 04:28:42 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= krb5
|
2005-10-05 00:09:08 +02:00
|
|
|
PORTVERSION= 1.4.2
|
2005-11-01 05:01:11 +01:00
|
|
|
PORTREVISION= 1
|
1998-07-06 04:28:42 +02:00
|
|
|
CATEGORIES= security
|
2005-04-23 03:49:07 +02:00
|
|
|
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/${PORTVERSION:C/\.[0-9]*$/&/:C/\.[0-9]*$//}/
|
2004-12-21 02:38:02 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-signed
|
2005-10-08 21:57:44 +02:00
|
|
|
EXTRACT_SUFX= .tar
|
1998-07-06 04:28:42 +02:00
|
|
|
|
2002-01-08 16:05:08 +01:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-11-03 04:56:42 +01:00
|
|
|
COMMENT= An authentication system developed at MIT, successor to Kerberos IV
|
1998-07-06 04:28:42 +02:00
|
|
|
|
1998-07-07 01:35:59 +02:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
1998-07-06 04:28:42 +02:00
|
|
|
|
2005-10-08 21:57:44 +02:00
|
|
|
CONFLICTS= krb4-[0-9]* heimdal-[0-9]*
|
|
|
|
|
2004-02-07 05:14:39 +01:00
|
|
|
LATEST_LINK= ${PORTNAME}
|
2005-04-13 05:09:14 +02:00
|
|
|
KERBEROSV_URL= http://web.mit.edu/kerberos/
|
2003-11-09 00:08:25 +01:00
|
|
|
USE_REINPLACE= yes
|
1998-07-06 04:28:42 +02:00
|
|
|
USE_GMAKE= yes
|
2003-09-13 04:32:33 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-07-06 04:28:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-13 05:05:17 +02:00
|
|
|
USE_LIBTOOL_VER= 15
|
|
|
|
CONFIGURE_ARGS?= --enable-shared --enable-static
|
|
|
|
CONFIGURE_ARGS+= --disable-thread-support
|
2003-08-08 03:20:18 +02:00
|
|
|
CONFIGURE_ENV= INSTALL="${INSTALL}" YACC=/usr/bin/yacc \
|
2005-04-14 01:24:48 +02:00
|
|
|
CFLAGS="${CFLAGS}"
|
1999-10-04 16:32:28 +02:00
|
|
|
MAKE_ARGS= INSTALL="${INSTALL}"
|
2003-05-07 06:13:08 +02:00
|
|
|
KRB5_KRB4_COMPAT?= NO
|
1998-07-07 01:35:59 +02:00
|
|
|
|
|
|
|
.if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
|
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
2002-10-28 19:28:38 +01:00
|
|
|
PLIST_SUB+= KRB4="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= KRB4=""
|
1998-07-07 01:35:59 +02:00
|
|
|
.endif
|
1998-07-06 04:28:42 +02:00
|
|
|
|
1998-08-01 21:47:54 +02:00
|
|
|
.if defined(KRB5_HOME)
|
|
|
|
PREFIX= ${KRB5_HOME}
|
|
|
|
.endif
|
|
|
|
|
2005-11-01 05:01:11 +01:00
|
|
|
INFO_FILES= krb425.info krb5-admin.info krb5-install.info \
|
|
|
|
krb5-user.info
|
1998-07-06 04:28:42 +02:00
|
|
|
|
2005-04-19 23:14:37 +02:00
|
|
|
MAN1= krb5-send-pr.1 krb5-config.1 kpasswd.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
|
2002-10-28 19:28:38 +01:00
|
|
|
.if defined(KRB5_KRB4_COMPAT) && ${KRB5_KRB4_COMPAT} != "NO"
|
|
|
|
MAN1+= v4rcp.1
|
|
|
|
.endif
|
1998-07-06 04:28:42 +02: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-09 00:08:25 +01:00
|
|
|
kshd.8 klogind.8 login.krb5.8 ftpd.8 telnetd.8 \
|
2005-04-23 03:49:07 +02:00
|
|
|
k5srvutil.8
|
|
|
|
.if defined(KRB5_KRB4_COMPAT) && ${KRB5_KRB4_COMPAT} != "NO"
|
|
|
|
MAN8+= krb524d.8
|
|
|
|
.endif
|
1998-07-06 04:28:42 +02:00
|
|
|
|
2004-12-21 02:38:02 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
1998-07-06 04:28:42 +02:00
|
|
|
|
|
|
|
WANT_HTML?= YES
|
2004-12-21 02:38:02 +01:00
|
|
|
HTML_DOC_DIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc
|
2003-08-08 03:20:18 +02:00
|
|
|
HTML_DOCS= admin.html user-guide.html install.html
|
|
|
|
HTML_OUTDIRS= krb5-admin krb5-install
|
1998-11-14 10:43:39 +01:00
|
|
|
|
2003-11-09 00:08:25 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-01 05:01:11 +01:00
|
|
|
.if ${OSVERSION} < 501000
|
2005-10-29 20:45:28 +02:00
|
|
|
BROKEN= Does not build
|
|
|
|
.endif
|
|
|
|
|
2002-03-18 23:52:43 +01:00
|
|
|
post-extract:
|
2004-12-21 02:38:02 +01:00
|
|
|
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
|
|
|
|
@${RM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz.asc
|
2002-08-17 02:29:41 +02:00
|
|
|
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
|
|
|
|
@if [ `id -u` = 0 ]; then \
|
2004-12-21 02:38:02 +01:00
|
|
|
${CHMOD} -R ug-s,go-w ${WRKDIR}/${PORTNAME}-${PORTVERSION}; \
|
|
|
|
${CHOWN} -R 0:0 ${WRKDIR}/${PORTNAME}-${PORTVERSION}; \
|
2002-08-17 02:29:41 +02:00
|
|
|
fi
|
|
|
|
.endif
|
2002-03-18 23:52:43 +01:00
|
|
|
|
2003-11-09 00:08:25 +01:00
|
|
|
post-patch:
|
2004-02-21 05:39:05 +01:00
|
|
|
@${REINPLACE_CMD} -e '1s,^#!\/usr\/athena/bin/perl,#!${PERL5},' \
|
2003-11-09 00:08:25 +01:00
|
|
|
${WRKSRC}/../doc/man2html
|
|
|
|
|
1999-10-04 16:32:28 +02: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 04:28:42 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/../doc && \
|
|
|
|
${MAKE} ${INFO_FILES})
|
2003-08-08 03:20:18 +02:00
|
|
|
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
|
|
|
|
@(cd ${WRKSRC}/../doc && \
|
|
|
|
${MAKE} ${HTML_DOCS})
|
|
|
|
.endif
|
1998-07-06 04:28:42 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
# html documentation
|
1998-07-07 01:35:59 +02:00
|
|
|
.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
|
1998-07-06 04:28:42 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/krb5
|
2003-08-08 03:20:18 +02: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 04:28:42 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-08-08 03:20:18 +02:00
|
|
|
${ECHO_CMD} @dirrm share/doc/krb5 >> ${TMPPLIST}
|
1998-07-06 04:28:42 +02: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 03:33:51 +01:00
|
|
|
# fixup packing list (no libs without version numbers in aout case)
|
1998-11-14 10:43:39 +01: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 08:20:38 +02:00
|
|
|
@${SED} "s%\${PREFIX}%${PREFIX}%" ${FILESDIR}/README.FreeBSD > ${PREFIX}/share/doc/krb5/README.FreeBSD
|
2002-01-08 16:05:08 +01: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 04:28:42 +02:00
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|