pkgsrc/net/zephyr/Makefile
kim d0e9933400 Change how Kerberos support is enabled in pkgsrc.
Quick guide for compiling packages:
- set KERBEROS=4 or KERBEROS=5 in /etc/mk.conf

Quick guide for configuring Kerberos support in a package Makefile:
- test for KERBEROS value and enable the appropriate version with
  CONFIGURE_ARGS or other means and set USE_KERBEROS=yes
- make sure to disable Kerberos support otherwise (especially if
  using configure, which might automatically detect it)
- BUILD_DEFS and RESTRICTED are set automatically in bsd.pkg.mk
  when USE_KERBEROS=yes is set
1999-09-14 02:32:21 +00:00

37 lines
968 B
Makefile

# $NetBSD: Makefile,v 1.17 1999/09/14 02:32:26 kim Exp $
#
DISTNAME= zephyr-2.0.4
CATEGORIES= net athena
MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/zephyr/dist/
MAINTAINER= mycroft@netbsd.org
HOMEPAGE= http://web.mit.edu/olh/Zephyr/index.html
.include "../../mk/bsd.prefs.mk"
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= yes
CONFIGURE_ARGS+="--with-krb4"
CONFIGURE_ENV+= CPPFLAGS=-I/usr/include/kerberosIV
.else
CONFIGURE_ARGS+="--without-krb4"
.endif
USE_X11= yes
GNU_CONFIGURE= yes
ZEPHYR_RCDIR= ${PREFIX}/etc/rc.d
ZEPHYR_DOCDIR= ${PREFIX}/share/doc/zephyr
ZEPHYR_DOCS= INSTALL NOTES OPERATING README USING
post-install:
${MKDIR} ${ZEPHYR_RCDIR}
${SED} -e 's|@prefix@|'${PREFIX}'|g' < ${FILESDIR}/zhm.sh > ${WRKDIR}/zhm.sh
${INSTALL_SCRIPT} ${WRKDIR}/zhm.sh ${ZEPHYR_RCDIR}
${MKDIR} ${ZEPHYR_DOCDIR}
for file in ${ZEPHYR_DOCS} ; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${ZEPHYR_DOCDIR} ; \
done
.include "../../mk/bsd.pkg.mk"