Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= openradius |
8 |
PORTNAME= openradius |
9 |
PORTVERSION= 0.9.10 |
9 |
PORTVERSION= 0.9.10 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= net |
11 |
CATEGORIES= net |
11 |
MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \ |
12 |
MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \ |
12 |
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/ |
13 |
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/ |
Lines 14-19
Link Here
|
14 |
MAINTAINER= jettea46@yahoo.com |
15 |
MAINTAINER= jettea46@yahoo.com |
15 |
COMMENT= A RADIUS server with some actual documentation |
16 |
COMMENT= A RADIUS server with some actual documentation |
16 |
|
17 |
|
|
|
18 |
LOGFILE?= /var/log/openradius.log |
19 |
|
17 |
CONFLICTS= freeradius-0.* gnu-radius-1.* radiusd-cistron-1.* |
20 |
CONFLICTS= freeradius-0.* gnu-radius-1.* radiusd-cistron-1.* |
18 |
|
21 |
|
19 |
CC?= gcc |
22 |
CC?= gcc |
Lines 32-38
Link Here
|
32 |
PLIST_SUB+= LDAP="@comment " |
35 |
PLIST_SUB+= LDAP="@comment " |
33 |
.endif |
36 |
.endif |
34 |
|
37 |
|
|
|
38 |
post-patch: |
39 |
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%LOGFILE%%|${LOGFILE}|g" \ |
40 |
< ${FILESDIR}/openradiusd.sh > ${WRKDIR}/openradiusd.sh |
41 |
|
35 |
post-install: |
42 |
post-install: |
|
|
43 |
.if !defined(NOPORTDOCS) |
44 |
${MKDIR} ${DOCSDIR} |
45 |
${MKDIR} ${EXAMPLESDIR} |
46 |
${MKDIR} ${EXAMPLESDIR}/accounts |
47 |
${INSTALL_MAN} ${WRKSRC}/doc/async-iface-notes ${DOCSDIR} |
48 |
${INSTALL_MAN} ${WRKSRC}/doc/language.html ${DOCSDIR} |
49 |
${INSTALL_MAN} ${WRKSRC}/doc/module-interface.html ${DOCSDIR} |
50 |
${INSTALL_MAN} ${WRKSRC}/doc/note-struct-ownership ${DOCSDIR} |
51 |
${INSTALL_MAN} ${WRKSRC}/doc/using-openradius.html ${DOCSDIR} |
52 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap ${EXAMPLESDIR} |
53 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${EXAMPLESDIR} |
54 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-mysql ${EXAMPLESDIR} |
55 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-postgres ${EXAMPLESDIR} |
56 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-unixpass ${EXAMPLESDIR} |
57 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-usersfile ${EXAMPLESDIR} |
58 |
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-usersfile-longpass ${EXAMPLESDIR} |
59 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap ${EXAMPLESDIR} |
60 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap-authbind ${EXAMPLESDIR} |
61 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-mysql ${EXAMPLESDIR} |
62 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-postgres ${EXAMPLESDIR} |
63 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-unixpass ${EXAMPLESDIR} |
64 |
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-usersfile ${EXAMPLESDIR} |
65 |
${INSTALL_MAN} ${WRKSRC}/examples/redhat-sysv-init-script ${EXAMPLESDIR} |
66 |
${INSTALL_MAN} ${WRKSRC}/examples/accounts/README ${EXAMPLESDIR}/accounts |
67 |
${INSTALL_MAN} ${WRKSRC}/examples/accounts/accounts.mysql ${EXAMPLESDIR}/accounts |
68 |
${INSTALL_MAN} ${WRKSRC}/examples/accounts/behaviour ${EXAMPLESDIR}/accounts |
69 |
${INSTALL_MAN} ${WRKSRC}/examples/accounts/configuration ${EXAMPLESDIR}/accounts |
70 |
.endif |
36 |
# Configuration, copy over to sample files |
71 |
# Configuration, copy over to sample files |
37 |
${MKDIR} ${PREFIX}/etc/${PORTNAME} |
72 |
${MKDIR} ${PREFIX}/etc/${PORTNAME} |
38 |
.for FILE in dictionary behaviour configuration |
73 |
.for FILE in dictionary behaviour configuration |
Lines 42-50
Link Here
|
42 |
# Copy over legacy config files to sample |
77 |
# Copy over legacy config files to sample |
43 |
${MKDIR} ${PREFIX}/etc/${PORTNAME}/legacy |
78 |
${MKDIR} ${PREFIX}/etc/${PORTNAME}/legacy |
44 |
.for FILE in clients nases realms users |
79 |
.for FILE in clients nases realms users |
45 |
${INSTALL_DATA} ${WRKSRC}/etc/legacy/${FILE} \ |
80 |
${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} \ |
46 |
${PREFIX}/etc/${PORTNAME}/legacy/${FILE}.sample |
81 |
${PREFIX}/etc/${PORTNAME}/legacy/${FILE}.sample |
47 |
.endfor |
82 |
.endfor |
|
|
83 |
@${INSTALL_SCRIPT} ${WRKDIR}/openradiusd.sh ${PREFIX}/etc/rc.d |
48 |
@${CAT} ${PKGMESSAGE} |
84 |
@${CAT} ${PKGMESSAGE} |
49 |
|
85 |
|
50 |
.include <bsd.port.post.mk> |
86 |
.include <bsd.port.post.mk> |