View | Details | Raw Unified | Return to bug 79868
Collapse All | Expand All

(-)openradius/Makefile (-1 / +37 lines)
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>
(-)openradius/files/openradiusd.sh (+25 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: radiusd
6
# REQUIRE: DAEMON
7
# KEYWORD: FreeBSD
8
#
9
# Add the following line to /etc/rc.conf to enable radiusd:
10
#
11
# radiusd_enable="YES"
12
#
13
14
radiusd_enable=${radiusd_enable-"NO"}
15
radiusd_flags=${radiusd_flags-"-o %%LOGFILE%%"}
16
17
. /etc/rc.subr
18
19
name=radiusd
20
rcvar=`set_rcvar`
21
22
command=%%PREFIX%%/sbin/${name}
23
24
load_rc_config ${name}
25
run_rc_command "$1"
(-)openradius/pkg-message (+2 lines)
Lines 1-2 Link Here
1
1
Configuration sample files were installed, you will need to copy
2
Configuration sample files were installed, you will need to copy
2
these over to create real configuration files.
3
these over to create real configuration files.
4
(-)openradius/pkg-plist (+31 lines)
Lines 47-49 Link Here
47
bin/radtest
47
bin/radtest
48
48
49
sbin/radiusd
49
sbin/radiusd
50
etc/rc.d/openradiusd.sh
51
52
%%PORTDOCS%%%%DOCSDIR%%/async-iface-notes
53
%%PORTDOCS%%%%DOCSDIR%%/language.html
54
%%PORTDOCS%%%%DOCSDIR%%/module-interface.html
55
%%PORTDOCS%%%%DOCSDIR%%/note-struct-ownership
56
%%PORTDOCS%%%%DOCSDIR%%/using-openradius.html
57
%%PORTDOCS%%@dirrm %%DOCSDIR%%
58
59
%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/README
60
%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/accounts.mysql
61
%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/behaviour
62
%%PORTDOCS%%%%EXAMPLESDIR%%/accounts/configuration
63
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/accounts
64
65
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-ldap
66
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-ldap-authbind
67
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-mysql
68
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-postgres
69
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-unixpass
70
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-usersfile
71
%%PORTDOCS%%%%EXAMPLESDIR%%/behaviour.sample-usersfile-longpass
72
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-ldap
73
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-ldap-authbind
74
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-mysql
75
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-postgres
76
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-unixpass
77
%%PORTDOCS%%%%EXAMPLESDIR%%/configuration.sample-usersfile
78
%%PORTDOCS%%%%EXAMPLESDIR%%/redhat-sysv-init-script
79
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
80
(-)openradius/scripts/configure (-2 / +13 lines)
Lines 10-16 Link Here
10
DIR_SBIN	= $PREFIX/sbin
10
DIR_SBIN	= $PREFIX/sbin
11
DIR_ETC 	= $PREFIX/etc/openradius
11
DIR_ETC 	= $PREFIX/etc/openradius
12
DIR_LIB 	= $PREFIX/lib/openradius
12
DIR_LIB 	= $PREFIX/lib/openradius
13
FILE_LOG	= $PREFIX/var/log/openradius.log
13
END
14
15
if [ x$LOGFILE != x ]; then
16
cat >> Makefile << END
17
FILE_LOG	= $LOGFILE
18
END
19
else
20
cat >> Makefile << END
21
FILE_LOG	= /var/log/openradius.log
22
END
23
fi
24
25
cat >> Makefile << END
14
26
15
### Modules that will be built and installed
27
### Modules that will be built and installed
16
#
28
#
Lines 51-57 Link Here
51
63
52
### Build tools
64
### Build tools
53
# 
65
# 
54
# The C compiler named here must output full (header) dependencies in $(@).d.
55
# It may be necessary to create a script similar to ccd-gcc for your compiler.
66
# It may be necessary to create a script similar to ccd-gcc for your compiler.
56
# 
67
# 
57
CMPLR		= ./build/ccd-gcc
68
CMPLR		= ./build/ccd-gcc

Return to bug 79868