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

(-)/usr/ports_updated/net/freeradius/Makefile (-9 / +17 lines)
Lines 12-17 Link Here
12
MASTER_SITES=	ftp://ftp.freeradius.org/pub/radius/ \
12
MASTER_SITES=	ftp://ftp.freeradius.org/pub/radius/ \
13
		ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
13
		ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
14
		ftp://ftp.uk.freeradius.org/pub/radius/ \
14
		ftp://ftp.uk.freeradius.org/pub/radius/ \
15
		ftp://ftp.us.freeradius.org/pub/radius/ \
15
		ftp://ftp.freeradius.org/pub/radius/old/ \
16
		ftp://ftp.freeradius.org/pub/radius/old/ \
16
		http://freeradius.portal-to-web.de/
17
		http://freeradius.portal-to-web.de/
17
18
Lines 29-35 Link Here
29
USE_GMAKE=	yes
30
USE_GMAKE=	yes
30
USE_OPENSSL=	yes
31
USE_OPENSSL=	yes
31
MAKE_ARGS+=	LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
32
MAKE_ARGS+=	LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
32
CFLAGS+=	-I${LOCALBASE}/include
33
CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
33
34
34
PLIST_SUB=	PORTVERSION=${PORTVERSION}
35
PLIST_SUB=	PORTVERSION=${PORTVERSION}
35
36
Lines 45-61 Link Here
45
46
46
.include <bsd.port.pre.mk>
47
.include <bsd.port.pre.mk>
47
48
48
CONFIGURE_ARGS=	--prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
49
CONFIGURE_ARGS=	--quiet \
50
		--prefix=${PREFIX} \
49
		--localstatedir=/var \
51
		--localstatedir=/var \
52
		--mandir=${PREFIX}/man \
50
		--with-system-libtool \
53
		--with-system-libtool \
51
		--disable-ltdl-install \
52
		--with-docdir=${DOCSDIR} \
54
		--with-docdir=${DOCSDIR} \
53
		--mandir=${PREFIX}/man \
55
		--with-logdir=${LOGDIR} \
54
		--with-large-files --without-rlm_sql_unixodbc \
56
		--with-large-files \
55
		--without-rlm_sql_oracle --without-rlm_sql_iodbc \
56
		--without-rlm_sql_db2 \
57
		--with-openssl-includes=${OPENSSLINC} \
57
		--with-openssl-includes=${OPENSSLINC} \
58
		--with-openssl-libraries=${OPENSSLLIB}
58
		--with-openssl-libraries=${OPENSSLLIB} \
59
		--without-rlm_sql_unixodbc \
60
		--without-rlm_sql_oracle \
61
		--without-rlm_sql_iodbc \
62
		--without-rlm_sql_db2
59
63
60
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
64
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
61
PLIST_SUB+=	4SSL="@comment "
65
PLIST_SUB+=	4SSL="@comment "
Lines 206-214 Link Here
206
.endif
210
.endif
207
211
208
post-install:
212
post-install:
209
	@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR} ${EXAMPLESDIR}
213
	@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR}
210
.for dict in ${DICTS}
214
.for dict in ${DICTS}
211
	${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
215
	${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
212
.endfor
216
.endfor
217
	for i in `${FIND} ${PREFIX}/etc/raddb -maxdepth 1 -regex '.*\.sample' -print \
218
	| ${SED} -e 's/\.sample//g'`; do \
219
		if [ ! -f $${i} ]; then ${CP} -p $${i}.sample $${i}; fi; \
220
	done
213
221
214
.include <bsd.port.post.mk>
222
.include <bsd.port.post.mk>
(-)/usr/ports_updated/net/freeradius/pkg-plist (-2 / +4 lines)
Lines 12-17 Link Here
12
bin/rlm_dbm_parser
12
bin/rlm_dbm_parser
13
bin/rlm_ippool_tool
13
bin/rlm_ippool_tool
14
bin/smbencrypt
14
bin/smbencrypt
15
@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
15
etc/raddb/acct_users.sample
16
etc/raddb/acct_users.sample
16
etc/raddb/attrs.sample
17
etc/raddb/attrs.sample
17
etc/raddb/certs/README
18
etc/raddb/certs/README
Lines 56-61 Link Here
56
etc/raddb/sql.conf.sample
57
etc/raddb/sql.conf.sample
57
etc/raddb/sqlippool.conf.sample
58
etc/raddb/sqlippool.conf.sample
58
etc/raddb/users.sample
59
etc/raddb/users.sample
60
@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
59
lib/libeap-%%PORTVERSION%%.la
61
lib/libeap-%%PORTVERSION%%.la
60
lib/libeap-%%PORTVERSION%%.so
62
lib/libeap-%%PORTVERSION%%.so
61
lib/libeap.a
63
lib/libeap.a
Lines 492-498 Link Here
492
%%DATADIR%%/dictionary.xedia
494
%%DATADIR%%/dictionary.xedia
493
%%DATADIR%%/dictionary.xylan
495
%%DATADIR%%/dictionary.xylan
494
%%DATADIR%%/dictionary.zyxel
496
%%DATADIR%%/dictionary.zyxel
495
@dirrm %%EXAMPLESDIR%%
496
@dirrm %%DATADIR%%
497
@dirrm %%DATADIR%%
497
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
498
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc
498
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
499
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
Lines 503-506 Link Here
503
@exec chmod -R og= /var/log/raddb
504
@exec chmod -R og= /var/log/raddb
504
@exec mkdir -p /var/run/radiusd
505
@exec mkdir -p /var/run/radiusd
505
@unexec rm -fr /var/run/radiusd
506
@unexec rm -fr /var/run/radiusd
506
@unexec rmdir %D/etc/raddb 2> /dev/null || echo "You should remove %D/etc/raddb if you don't need it anymore."
507
@dirrmtry %D/etc/raddb
508
@unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it anymore."; fi

Return to bug 108196