mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Create default config files from *.sample and remove them if they did not
changed. (Requested by Alan DeKok of the FreeRADIUS Project.) - Add US mirror to MASTER_SITES. - Fix CFLAGS. - Tidy CONFIGURE_ARGS. - Remove EXAMPLESDIR references. It's using nowhere. - Pet portlint(1). PR: ports/108196 Submitted by: David Wood (maintainer)
This commit is contained in:
parent
8740a7e931
commit
df47fa69f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183074
4 changed files with 44 additions and 24 deletions
|
@ -12,6 +12,7 @@ CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
||||||
ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
|
ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
|
||||||
ftp://ftp.uk.freeradius.org/pub/radius/ \
|
ftp://ftp.uk.freeradius.org/pub/radius/ \
|
||||||
|
ftp://ftp.us.freeradius.org/pub/radius/ \
|
||||||
ftp://ftp.freeradius.org/pub/radius/old/ \
|
ftp://ftp.freeradius.org/pub/radius/old/ \
|
||||||
http://freeradius.portal-to-web.de/
|
http://freeradius.portal-to-web.de/
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ USE_AUTOTOOLS= libltdl:15 libtool:15
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_OPENSSL= yes
|
USE_OPENSSL= yes
|
||||||
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
||||||
CFLAGS+= -I${LOCALBASE}/include
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
||||||
|
|
||||||
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||||
|
|
||||||
|
@ -45,17 +46,20 @@ OPTIONS= KERBEROS "With Kerberos support" off \
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
CONFIGURE_ARGS= --prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
|
CONFIGURE_ARGS= --quiet \
|
||||||
|
--prefix=${PREFIX} \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--with-system-libtool \
|
|
||||||
--disable-ltdl-install \
|
|
||||||
--with-docdir=${DOCSDIR} \
|
|
||||||
--mandir=${PREFIX}/man \
|
--mandir=${PREFIX}/man \
|
||||||
--with-large-files --without-rlm_sql_unixodbc \
|
--with-system-libtool \
|
||||||
--without-rlm_sql_oracle --without-rlm_sql_iodbc \
|
--with-docdir=${DOCSDIR} \
|
||||||
--without-rlm_sql_db2 \
|
--with-logdir=${LOGDIR} \
|
||||||
|
--with-large-files \
|
||||||
--with-openssl-includes=${OPENSSLINC} \
|
--with-openssl-includes=${OPENSSLINC} \
|
||||||
--with-openssl-libraries=${OPENSSLLIB}
|
--with-openssl-libraries=${OPENSSLLIB} \
|
||||||
|
--without-rlm_sql_unixodbc \
|
||||||
|
--without-rlm_sql_oracle \
|
||||||
|
--without-rlm_sql_iodbc \
|
||||||
|
--without-rlm_sql_db2
|
||||||
|
|
||||||
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
|
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
|
||||||
PLIST_SUB+= 4SSL="@comment "
|
PLIST_SUB+= 4SSL="@comment "
|
||||||
|
@ -206,9 +210,13 @@ post-patch:
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR} ${EXAMPLESDIR}
|
@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR}
|
||||||
.for dict in ${DICTS}
|
.for dict in ${DICTS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
|
${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
|
||||||
.endfor
|
.endfor
|
||||||
|
for i in `${FIND} ${PREFIX}/etc/raddb -maxdepth 1 -regex '.*\.sample' -print \
|
||||||
|
| ${SED} -e 's/\.sample//g'`; do \
|
||||||
|
if [ ! -f $${i} ]; then ${CP} -p $${i}.sample $${i}; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -12,6 +12,7 @@ bin/rlm_dbm_cat
|
||||||
bin/rlm_dbm_parser
|
bin/rlm_dbm_parser
|
||||||
bin/rlm_ippool_tool
|
bin/rlm_ippool_tool
|
||||||
bin/smbencrypt
|
bin/smbencrypt
|
||||||
|
@unexec for i in `find %D/etc/raddb -maxdepth 1 -regex '.*\.sample' -print | sed -e 's/\.sample//g'`; do if [ -f ${i} ]; then if cmp -s ${i}.sample ${i}; then rm -f ${i}; fi; fi; done
|
||||||
etc/raddb/acct_users.sample
|
etc/raddb/acct_users.sample
|
||||||
etc/raddb/attrs.sample
|
etc/raddb/attrs.sample
|
||||||
etc/raddb/certs/README
|
etc/raddb/certs/README
|
||||||
|
@ -56,6 +57,7 @@ etc/raddb/snmp.conf.sample
|
||||||
etc/raddb/sql.conf.sample
|
etc/raddb/sql.conf.sample
|
||||||
etc/raddb/sqlippool.conf.sample
|
etc/raddb/sqlippool.conf.sample
|
||||||
etc/raddb/users.sample
|
etc/raddb/users.sample
|
||||||
|
@exec for i in `find %D/etc/raddb -maxdepth 1 -regex '.*\.sample' -print | sed -e 's/\.sample//g'`; do if [ ! -f ${i} ]; then cp -p ${i}.sample ${i}; fi; done
|
||||||
lib/libeap-%%PORTVERSION%%.la
|
lib/libeap-%%PORTVERSION%%.la
|
||||||
lib/libeap-%%PORTVERSION%%.so
|
lib/libeap-%%PORTVERSION%%.so
|
||||||
lib/libeap.a
|
lib/libeap.a
|
||||||
|
@ -492,7 +494,6 @@ sbin/rc.radiusd
|
||||||
%%DATADIR%%/dictionary.xedia
|
%%DATADIR%%/dictionary.xedia
|
||||||
%%DATADIR%%/dictionary.xylan
|
%%DATADIR%%/dictionary.xylan
|
||||||
%%DATADIR%%/dictionary.zyxel
|
%%DATADIR%%/dictionary.zyxel
|
||||||
@dirrm %%EXAMPLESDIR%%
|
|
||||||
@dirrm %%DATADIR%%
|
@dirrm %%DATADIR%%
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
|
||||||
|
@ -503,4 +504,5 @@ sbin/rc.radiusd
|
||||||
@exec chmod -R og= /var/log/raddb
|
@exec chmod -R og= /var/log/raddb
|
||||||
@exec mkdir -p /var/run/radiusd
|
@exec mkdir -p /var/run/radiusd
|
||||||
@unexec rm -fr /var/run/radiusd
|
@unexec rm -fr /var/run/radiusd
|
||||||
@unexec rmdir %D/etc/raddb 2> /dev/null || echo "You should remove %D/etc/raddb if you don't need it anymore."
|
@dirrmtry etc/raddb
|
||||||
|
@unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it anymore."; fi
|
||||||
|
|
|
@ -12,6 +12,7 @@ CATEGORIES= net
|
||||||
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
||||||
ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
|
ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
|
||||||
ftp://ftp.uk.freeradius.org/pub/radius/ \
|
ftp://ftp.uk.freeradius.org/pub/radius/ \
|
||||||
|
ftp://ftp.us.freeradius.org/pub/radius/ \
|
||||||
ftp://ftp.freeradius.org/pub/radius/old/ \
|
ftp://ftp.freeradius.org/pub/radius/old/ \
|
||||||
http://freeradius.portal-to-web.de/
|
http://freeradius.portal-to-web.de/
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ USE_AUTOTOOLS= libltdl:15 libtool:15
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_OPENSSL= yes
|
USE_OPENSSL= yes
|
||||||
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
||||||
CFLAGS+= -I${LOCALBASE}/include
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
||||||
|
|
||||||
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||||
|
|
||||||
|
@ -45,17 +46,20 @@ OPTIONS= KERBEROS "With Kerberos support" off \
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
CONFIGURE_ARGS= --prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
|
CONFIGURE_ARGS= --quiet \
|
||||||
|
--prefix=${PREFIX} \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--with-system-libtool \
|
|
||||||
--disable-ltdl-install \
|
|
||||||
--with-docdir=${DOCSDIR} \
|
|
||||||
--mandir=${PREFIX}/man \
|
--mandir=${PREFIX}/man \
|
||||||
--with-large-files --without-rlm_sql_unixodbc \
|
--with-system-libtool \
|
||||||
--without-rlm_sql_oracle --without-rlm_sql_iodbc \
|
--with-docdir=${DOCSDIR} \
|
||||||
--without-rlm_sql_db2 \
|
--with-logdir=${LOGDIR} \
|
||||||
|
--with-large-files \
|
||||||
--with-openssl-includes=${OPENSSLINC} \
|
--with-openssl-includes=${OPENSSLINC} \
|
||||||
--with-openssl-libraries=${OPENSSLLIB}
|
--with-openssl-libraries=${OPENSSLLIB} \
|
||||||
|
--without-rlm_sql_unixodbc \
|
||||||
|
--without-rlm_sql_oracle \
|
||||||
|
--without-rlm_sql_iodbc \
|
||||||
|
--without-rlm_sql_db2
|
||||||
|
|
||||||
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
|
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
|
||||||
PLIST_SUB+= 4SSL="@comment "
|
PLIST_SUB+= 4SSL="@comment "
|
||||||
|
@ -206,9 +210,13 @@ post-patch:
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR} ${EXAMPLESDIR}
|
@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR}
|
||||||
.for dict in ${DICTS}
|
.for dict in ${DICTS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
|
${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
|
||||||
.endfor
|
.endfor
|
||||||
|
for i in `${FIND} ${PREFIX}/etc/raddb -maxdepth 1 -regex '.*\.sample' -print \
|
||||||
|
| ${SED} -e 's/\.sample//g'`; do \
|
||||||
|
if [ ! -f $${i} ]; then ${CP} -p $${i}.sample $${i}; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -12,6 +12,7 @@ bin/rlm_dbm_cat
|
||||||
bin/rlm_dbm_parser
|
bin/rlm_dbm_parser
|
||||||
bin/rlm_ippool_tool
|
bin/rlm_ippool_tool
|
||||||
bin/smbencrypt
|
bin/smbencrypt
|
||||||
|
@unexec for i in `find %D/etc/raddb -maxdepth 1 -regex '.*\.sample' -print | sed -e 's/\.sample//g'`; do if [ -f ${i} ]; then if cmp -s ${i}.sample ${i}; then rm -f ${i}; fi; fi; done
|
||||||
etc/raddb/acct_users.sample
|
etc/raddb/acct_users.sample
|
||||||
etc/raddb/attrs.sample
|
etc/raddb/attrs.sample
|
||||||
etc/raddb/certs/README
|
etc/raddb/certs/README
|
||||||
|
@ -56,6 +57,7 @@ etc/raddb/snmp.conf.sample
|
||||||
etc/raddb/sql.conf.sample
|
etc/raddb/sql.conf.sample
|
||||||
etc/raddb/sqlippool.conf.sample
|
etc/raddb/sqlippool.conf.sample
|
||||||
etc/raddb/users.sample
|
etc/raddb/users.sample
|
||||||
|
@exec for i in `find %D/etc/raddb -maxdepth 1 -regex '.*\.sample' -print | sed -e 's/\.sample//g'`; do if [ ! -f ${i} ]; then cp -p ${i}.sample ${i}; fi; done
|
||||||
lib/libeap-%%PORTVERSION%%.la
|
lib/libeap-%%PORTVERSION%%.la
|
||||||
lib/libeap-%%PORTVERSION%%.so
|
lib/libeap-%%PORTVERSION%%.so
|
||||||
lib/libeap.a
|
lib/libeap.a
|
||||||
|
@ -492,7 +494,6 @@ sbin/rc.radiusd
|
||||||
%%DATADIR%%/dictionary.xedia
|
%%DATADIR%%/dictionary.xedia
|
||||||
%%DATADIR%%/dictionary.xylan
|
%%DATADIR%%/dictionary.xylan
|
||||||
%%DATADIR%%/dictionary.zyxel
|
%%DATADIR%%/dictionary.zyxel
|
||||||
@dirrm %%EXAMPLESDIR%%
|
|
||||||
@dirrm %%DATADIR%%
|
@dirrm %%DATADIR%%
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
|
||||||
|
@ -503,4 +504,5 @@ sbin/rc.radiusd
|
||||||
@exec chmod -R og= /var/log/raddb
|
@exec chmod -R og= /var/log/raddb
|
||||||
@exec mkdir -p /var/run/radiusd
|
@exec mkdir -p /var/run/radiusd
|
||||||
@unexec rm -fr /var/run/radiusd
|
@unexec rm -fr /var/run/radiusd
|
||||||
@unexec rmdir %D/etc/raddb 2> /dev/null || echo "You should remove %D/etc/raddb if you don't need it anymore."
|
@dirrmtry etc/raddb
|
||||||
|
@unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it anymore."; fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue