ports/160259: [patch] net/openradius update MASTER_SITE plus some cosmetic fixes
Olli Hauer
ohauer at FreeBSD.org
Sun Aug 28 16:20:13 UTC 2011
>Number: 160259
>Category: ports
>Synopsis: [patch] net/openradius update MASTER_SITE plus some cosmetic fixes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 28 16:20:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Olli Hauer
>Release:
>Organization:
>Environment:
>Description:
- update MASTER_SITE (old one redirects)
- some minor cleanups (use ETCDIR, PORTEXAMPLES ...)
>How-To-Repeat:
>Fix:
--- openradius.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/openradius/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 17 Jun 2011 06:46:05 -0000 1.20
+++ Makefile 28 Aug 2011 16:09:46 -0000
@@ -9,7 +9,7 @@
PORTVERSION= 0.9.12c
PORTREVISION= 1
CATEGORIES= net
-MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \
+MASTER_SITES= http://evbergen.home.xs4all.nl/openradius/download/ \
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
MAINTAINER= crees at FreeBSD.org
@@ -41,14 +41,16 @@
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${MKDIR} ${EXAMPLESDIR}
- ${MKDIR} ${EXAMPLESDIR}/accounts
${INSTALL_MAN} ${WRKSRC}/doc/async-iface-notes ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/language.html ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/module-interface.html ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/note-behaviourfile ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/note-struct-ownership ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/using-openradius.html ${DOCSDIR}
+.endif
+
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}/accounts
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap ${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-mysql ${EXAMPLESDIR}
@@ -67,28 +69,24 @@
${INSTALL_MAN} ${WRKSRC}/examples/accounts/configuration ${EXAMPLESDIR}/accounts
.endif
# Configuration, copy over to sample files
- ${MKDIR} ${PREFIX}/etc/${PORTNAME}
+ ${MKDIR} ${ETCDIR}
.for FILE in dictionary
- ${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
- ${PREFIX}/etc/${PORTNAME}/${FILE}.sample
+ ${INSTALL_DATA} ${WRKSRC}/etc/${FILE} ${ETCDIR}/${FILE}.sample
.endfor
# Copy over legacy config files to sample
- ${MKDIR} ${PREFIX}/etc/${PORTNAME}/legacy
+ ${MKDIR} ${ETCDIR}/legacy
.for FILE in clients nases realms users
- ${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} \
- ${PREFIX}/etc/${PORTNAME}/legacy/${FILE}.sample
+ ${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} ${ETCDIR}/legacy/${FILE}.sample
.endfor
- ${MKDIR} ${PREFIX}/etc/${PORTNAME}/modules
+ ${MKDIR} ${ETCDIR}/modules
.for FILE in radldap.attrmap
- ${INSTALL} -m 0600 ${WRKSRC}/etc/modules/${FILE} \
- ${PREFIX}/etc/${PORTNAME}/modules/${FILE}.sample
+ ${INSTALL} -m 0600 ${WRKSRC}/etc/modules/${FILE} ${ETCDIR}/modules/${FILE}.sample
.endfor
- ${MKDIR} ${PREFIX}/etc/${PORTNAME}/subdicts
+ ${MKDIR} ${ETCDIR}/subdicts
.for FILE in dict.*
- ${INSTALL} -m 0600 ${WRKSRC}/etc/subdicts/${FILE} \
- ${PREFIX}/etc/${PORTNAME}/subdicts/
+ ${INSTALL} -m 0600 ${WRKSRC}/etc/subdicts/${FILE} ${ETCDIR}/subdicts/
.endfor
@${ECHO_CMD}
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/net/openradius/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist 25 Jan 2008 19:55:35 -0000 1.9
+++ pkg-plist 28 Aug 2011 16:09:46 -0000
@@ -3,30 +3,30 @@
bin/radaccttest
bin/radclient
bin/radtest
-etc/openradius/dictionary.sample
-etc/openradius/legacy/clients.sample
-etc/openradius/legacy/nases.sample
-etc/openradius/legacy/realms.sample
-etc/openradius/legacy/users.sample
-etc/openradius/modules/radldap.attrmap.sample
-etc/openradius/subdicts/dict.ascend
-etc/openradius/subdicts/dict.cisco
-etc/openradius/subdicts/dict.erx
-etc/openradius/subdicts/dict.garderos
-etc/openradius/subdicts/dict.internal
-etc/openradius/subdicts/dict.memory
-etc/openradius/subdicts/dict.microsoft
-etc/openradius/subdicts/dict.nomadix
-etc/openradius/subdicts/dict.rfc2869
-etc/openradius/subdicts/dict.rfc3580
-etc/openradius/subdicts/dict.stdacct
-etc/openradius/subdicts/dict.stdauth
-etc/openradius/subdicts/dict.str-ldap
-etc/openradius/subdicts/dict.tnova
-etc/openradius/subdicts/dict.tunnel
-etc/openradius/subdicts/dict.usr
-etc/openradius/subdicts/dict.vendors
-etc/openradius/subdicts/dict.wispr
+%%ETCDIR%%/dictionary.sample
+%%ETCDIR%%/legacy/clients.sample
+%%ETCDIR%%/legacy/nases.sample
+%%ETCDIR%%/legacy/realms.sample
+%%ETCDIR%%/legacy/users.sample
+%%ETCDIR%%/modules/radldap.attrmap.sample
+%%ETCDIR%%/subdicts/dict.ascend
+%%ETCDIR%%/subdicts/dict.cisco
+%%ETCDIR%%/subdicts/dict.erx
+%%ETCDIR%%/subdicts/dict.garderos
+%%ETCDIR%%/subdicts/dict.internal
+%%ETCDIR%%/subdicts/dict.memory
+%%ETCDIR%%/subdicts/dict.microsoft
+%%ETCDIR%%/subdicts/dict.nomadix
+%%ETCDIR%%/subdicts/dict.rfc2869
+%%ETCDIR%%/subdicts/dict.rfc3580
+%%ETCDIR%%/subdicts/dict.stdacct
+%%ETCDIR%%/subdicts/dict.stdauth
+%%ETCDIR%%/subdicts/dict.str-ldap
+%%ETCDIR%%/subdicts/dict.tnova
+%%ETCDIR%%/subdicts/dict.tunnel
+%%ETCDIR%%/subdicts/dict.usr
+%%ETCDIR%%/subdicts/dict.vendors
+%%ETCDIR%%/subdicts/dict.wispr
lib/openradius/ascfile
lib/openradius/delay
lib/openradius/radclient
@@ -41,27 +41,27 @@
%%PORTDOCS%%%%DOCSDIR%%/note-behaviourfile
%%PORTDOCS%%%%DOCSDIR%%/note-struct-ownership
%%PORTDOCS%%%%DOCSDIR%%/using-openradius.html
-%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/README
-%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/accounts.mysql
-%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/behaviour
-%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/configuration
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-ldap
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-ldap-authbind
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-mysql
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-postgres
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-unixpass
-%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-usersfile
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-ldap
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-ldap-authbind
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-mysql
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-postgres
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-unixpass
-%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-usersfile
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/accounts
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/accounts/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/accounts/accounts.mysql
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/accounts/behaviour
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/accounts/configuration
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-ldap
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-ldap-authbind
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-mysql
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-postgres
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-unixpass
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/behaviour.sample-usersfile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-ldap
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-ldap-authbind
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-mysql
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-postgres
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-unixpass
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/configuration.sample-usersfile
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/accounts
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/openradius
- at dirrmtry etc/openradius/subdicts
- at dirrmtry etc/openradius/modules
- at dirrmtry etc/openradius/legacy
- at dirrmtry etc/openradius
+ at dirrmtry %%ETCDIR%%/subdicts
+ at dirrmtry %%ETCDIR%%/modules
+ at dirrmtry %%ETCDIR%%/legacy
+ at dirrmtry %%ETCDIR%%
--- openradius.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list