blob: de106d62f6466b327efb2a935247658e59897b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# New ports collection makefile for: gnu-radius
# Date created: 13 Jul 2001
# Whom: lance@evitel.net
#
# $FreeBSD$
PORTNAME= gnu-radius
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= radius
DISTNAME= radius-${PORTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= GNU RADIUS server
CONFLICTS= freeradius-0.* openradius-0.* radiusd-cistron-1.*
USE_RC_SUBR= radiusd.sh
USE_SUBMAKE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libltdl:15 libtool:15
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_SUB= PORTVERSION=${PORTVERSION}
SUB_FILES= radiusd.sh
DATADIR= ${PREFIX}/share/radius
INFO= radius
MAN1= radgrep.1 radlast.1 raduse.1 radwho.1
MAN8= builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
MANCOMPRESSED= no
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
CURDIR="${.CURDIR}" \
MKDIR="${MKDIR}"
CONFIGURE_ARGS+=--with-include-path="${LOCALBASE}/include/" \
--with-lib-path="${LOCALBASE}/lib/"
OPTIONS= CLIENT "Enable build client" off \
DBM "Enable DBM support" off \
MYSQL "Enable MySQL support" on \
POSTGRESQL "Enable PostgreSQL support" off \
SNMP "Enable SNMP support" off \
NOTIFY "Enable TTL notification" off \
EMACS "Enable emacs dotfiles install" off \
NLS "Enable gettext support" on
CONFIG_FILES= access.deny client.conf clients config dictionary \
hints huntgroups naslist nastypes realms \
sqlserver users
EXAMPLE_FILES= README ascend.rw c3620.rw cisco.rw comos.rw config.syntax \
filter.rw hints-0.96 jetstream.rw nt.rw pam.conf radius.php
.include <bsd.port.pre.mk>
.if defined(WITH_SNMP)
CONFIGURE_ARGS+= --enable-snmp
.endif
.if defined(WITH_CLIENT)
CONFIGURE_ARGS+= --enable-client
WITH_GUILE= yes
BUILD_DEPENDS+= guile:${PORTSDIR}/lang/guile
PLIST_SUB+= GUILE=""
PLIST_SUB+= CLIENT=""
.else
CONFIGURE_ARGS+= --without-guile
PLIST_SUB+= GUILE="@comment "
PLIST_SUB+= CLIENT="@comment "
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_POSTGRESQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgres
INCLUDE_PATH+= ${LOCALBASE}/include/pgsql/
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
.if defined(WITH_DBM)
CONFIGURE_ARGS+= --enable-dbm=ndbm
PLIST_SUB+= DBM=""
.else
PLIST_SUB+= DBM="@comment "
.endif
.if defined(WITH_NOTIFY)
CONFIGURE_ARGS+= --enable-notify
.endif
.if defined(WITH_EMACS)
USE_EMACS= yes
.include "${PORTSDIR}/Mk/bsd.emacs.mk"
CONFIGURE_ARGS+= --with-lispdir=${PREFIX}/${EMACS_SITE_LISPDIR}
PLIST_SUB+= EMACS=""
.else
CONFIGURE_ARGS+= --without-lispdir
PLIST_SUB+= EMACS="@comment "
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nl
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
PLIST_SUB+= NLS=""
.endif
post-patch:
${REINPLACE_CMD} -e 's|extern unsigned scheme_gc_interval;||g' \
${WRKSRC}/include/radiusd.h
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/radiusd.sh ${PREFIX}/etc/rc.d/radiusd.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
. for ex_file in ${EXAMPLE_FILES}
${INSTALL_DATA} ${WRKSRC}/examples/${ex_file} ${EXAMPLESDIR}
. endfor
.endif
.for conf_file in ${CONFIG_FILES}
@test -f ${PREFIX}/etc/raddb/${conf_file} || ${CP} -p \
${PREFIX}/etc/raddb/${conf_file}-dist ${PREFIX}/etc/raddb/${conf_file}
.endfor
.include <bsd.port.post.mk>
|