1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net/radiusd-cistron/Makefile
Dirk Meyer c2b19f6258 - use STAGEDIR
- use OPTIONS_DEFINE
- use $PREFIX/etc/pam.d
2013-11-17 09:16:52 +00:00

47 lines
1.2 KiB
Makefile

# Created by: john@nlc.net.au
# $FreeBSD$
PORTNAME= radiusd-cistron
PORTVERSION= 1.6.8
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.radius.cistron.nl/pub/radius/
MAINTAINER= ports@FreeBSD.org
COMMENT= A RADIUS-compliant remote authentication and accounting server
CONFLICTS?= freeradius-0.* gnu-radius-1.* openradius-0.*
MAKEFILE= Makefile.BSD
RADIUS_DIR= ${PREFIX}/etc/raddb
MAKE_ENV+= RADIUS_DIR="${RADIUS_DIR}" DESTROOT="${STAGEDIR}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_RC_SUBR= radiusd-cistron radrelay-cistron
DOCFILES= COPYRIGHT INSTALL doc/ChangeLog doc/README doc/README.Y2K \
doc/README.cisco doc/README.pam doc/README.proxy \
doc/README.simul doc/README.usersfile
OPTIONS_DEFINE= PAM
OPTIONS_DEFAULT=PAM
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
PLIST_SUB+= PAMBASE="/usr/local/etc"
do-build:
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE}
do-install:
.if ${PORT_OPTIONS:MPAM}
${MKDIR} ${STAGEDIR}/etc/pam.d
.endif
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>