37f54e0f66
- Convert to USES=libtool and bump dependent ports - Avoid USE_AUTOTOOLS - Don't use PTHREAD_LIBS - Use MAKE_CMD databases/glom: - Drop :keepla - Add INSTALL_TARGET=install-strip databases/libgda4* databases/libgda5*: - Convert to USES=libtool and bump dependent ports - USES=tar:xz - Use INSTALL_TARGET=install-strip - Use @sample databases/libgdamm: - Drop :keepla - USES=tar:bzip2 - Use INSTALL_TARGET=install-strip databases/libgdamm5: - Add INSTALL_TARGET=install-strip - Drop --enable-static (inherited from old repocopy) devel/anjuta x11-toolkits/py-gnome-extras: - Drop :keepla dns/powerdns dns/powerdns-devel: - Convert to USES=libtool - Add INSTALL_TARGET=install-strip - Disable static modules - Stop creating library symlinks with .0 suffix, not needed for dynamically opened modules mail/dovecot2: - Add USES=libtool mail/dovecot2-pigeonhole: - Drop CONFIGURE_TARGET (incorrect for Dragonfly) - Add USES=libtool and INSTALL_TARGET=install-strip math/gnumeric: - USES=libtool tar:xz Approved by: portmgr (implicit, bump unstaged ports)
90 lines
3.5 KiB
Makefile
90 lines
3.5 KiB
Makefile
# Created by: Adam Jette <jettea46@yahoo.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openradius
|
|
PORTVERSION= 0.9.12c
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://evbergen.home.xs4all.nl/openradius/download/ \
|
|
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
|
|
|
|
MAINTAINER= crees@FreeBSD.org
|
|
COMMENT= RADIUS server with some actual documentation
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LOGFILE?= /var/log/openradius.log
|
|
|
|
CONFLICTS= freeradius-[0-9]* gnu-radius-[0-9]* radiusd-cistron-[0-9]* \
|
|
freeradius-mysql-[0-9]*
|
|
|
|
CC?= gcc
|
|
CXX?= g++
|
|
MAKE_ENV= INST_PREFIX=${STAGEDIR}
|
|
|
|
USES= gmake
|
|
USE_RC_SUBR= openradius
|
|
SUB_LIST= LOGFILE="${LOGFILE}"
|
|
|
|
OPTIONS_DEFINE= LDAP DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_OPENLDAP= YES
|
|
PLIST_SUB+= LDAP=""
|
|
SCRIPTS_ENV+= USE_LDAP=yes
|
|
.else
|
|
PLIST_SUB+= LDAP="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/async-iface-notes ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/language.html ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/module-interface.html ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/note-behaviourfile ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/note-struct-ownership ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/using-openradius.html ${STAGEDIR}${DOCSDIR}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/accounts
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-mysql ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-postgres ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-unixpass ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-usersfile ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap-authbind ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-mysql ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-postgres ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-unixpass ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-usersfile ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/README ${STAGEDIR}${EXAMPLESDIR}/accounts
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/accounts.mysql ${STAGEDIR}${EXAMPLESDIR}/accounts
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/behaviour ${STAGEDIR}${EXAMPLESDIR}/accounts
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/configuration ${STAGEDIR}${EXAMPLESDIR}/accounts
|
|
# Configuration, copy over to sample files
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
.for FILE in dictionary
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
|
|
${STAGEDIR}${ETCDIR}/${FILE}.sample
|
|
.endfor
|
|
# Copy over legacy config files to sample
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}/legacy
|
|
.for FILE in clients nases realms users
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} \
|
|
${STAGEDIR}${ETCDIR}/legacy/${FILE}.sample
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}/modules
|
|
.for FILE in radldap.attrmap
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/modules/${FILE} \
|
|
${STAGEDIR}${ETCDIR}/modules/${FILE}.sample
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}/subdicts
|
|
.for FILE in dict.*
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/subdicts/${FILE} \
|
|
${STAGEDIR}${ETCDIR}/subdicts/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|