pkgsrc/net/radius/Makefile
kim 491b82f6c7 Make Kerberos IV support compile. I still think that <krb.h> should
not have prototypes for {afs,mit}_string_to_key(), but this was easier
to fix without unknown side effects.
2000-02-29 01:13:35 +00:00

54 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2000/02/29 01:13:35 kim Exp $
#
# Tempted to install another radius package?
#
# Please consider e-mailing ${MAINTAINER} first with your concerns.
# It would be nice to just fold new extensions into this code, and
# avoid a myriad of incompatible radiusd incarnations.
DISTNAME= radius.3.6B
PKGNAME= ${DISTNAME:S/./-/}
CATEGORIES= net
MASTER_SITES= ftp://ftp.merit.edu/radius/releases/ \
http://www.mr.net/~bradley/radius/
DISTFILES= ${DISTNAME}.basic.tar.gz \
${DISTNAME}-skey.tar.gz \
${DISTNAME}-ftp.tar \
${DISTNAME}-simultd.tar
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://www.merit.edu/aaa/
DIST_SUBDIR= radius
.include "../../mk/bsd.prefs.mk"
CFLAGS+= -DHAVE_SETVBUF -DNOSHADOW
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= yes
CFLAGS+= -DM_KERB -I/usr/include/kerberosIV
RADLIBS= -lkrb -ldes
.endif
DECOMPRESS_CMD= ${GZCAT} -f
MAKE_ENV+= RADLIBS="${RADLIBS} -lskey" LIBS=-lcrypt \
GNUZIP="`${ECHO} ${GZIP_CMD} | ${AWK} '{print $$1}'`" \
INSTALL="${INSTALL} -c"
INSTALL_TARGET= man-install install util-install config-install
MESSAGE_FILE= ${WRKDIR}/MESSAGE
WRKSRC= ${WRKDIR}
pre-patch:
.for FILE in prediff rad.simult rad.ftp rad.skey
@cd ${WRKSRC} && \
${SED} -e 's#^--- ${DISTNAME}.patched/#--- #' ${FILE}.diff | \
${PATCH} -s
.endfor
post-build:
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/MESSAGE \
>${MESSAGE_FILE}
.include "../../mk/bsd.pkg.mk"