freebsd-ports/net/gnu-radius/Makefile
Pav Lucistnik 77715780c2 - Update to 1.2.95
PR:		ports/74108
Submitted by:	Andrey Pavlenko <lance@merlin.net.ua> (maintainer)
2004-11-21 04:40:58 +00:00

57 lines
1.3 KiB
Makefile

# New ports collection makefile for: gnu-radius
# Date created: 13 Jul 2001
# Whom: lance@evitel.net
#
# $FreeBSD$
PORTNAME= gnu-radius
PORTVERSION= 1.2.95
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNU_ALPHA}
MASTER_SITE_SUBDIR= radius
DISTNAME= radius-${PORTVERSION}
MAINTAINER= lance@merlin.net.ua
COMMENT= GNU RADIUS server
#MAKEFILE= Makefile
CONFLICTS= freeradius-0.* openradius-0.* radiusd-cistron-1.*
USE_RC_SUBR= yes
USE_SUBMAKE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= # empty
INFO= radius
MAN1= radgrep.1 radlast.1 raduse.1 radwho.1
MAN8= builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
MANCOMPRESSED= no
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
CURDIR="${.CURDIR}" \
MKDIR="${MKDIR}"
.if defined(BATCH)
CONFIGURE_ARGS+=--with-include-path="${LOCALBASE}/include/" \
--with-lib-path="${LOCALBASE}/lib/"
.else
post-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%RC_SUBR%%|${RC_SUBR}|g" \
< ${FILESDIR}/radiusd.sh > ${WRKDIR}/radiusd.sh
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/radiusd.sh ${PREFIX}/etc/rc.d/radiusd.sh
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.include <bsd.port.mk>