Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2002 22:36:37 +0200 (EET)
From:      Juha Ylitalo <juha.ylitalo@iki.fi>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34713: Non-maintainer update to net/radiusd-cistron port
Message-ID:  <200202072036.g17Kabv20870@shoes.st-paul>

next in thread | raw e-mail | index | archive | help

>Number:         34713
>Category:       ports
>Synopsis:       Non-maintainer update to net/radiusd-cistron port
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 13:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Juha Ylitalo
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
System: FreeBSD shoes.st-paul 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Thu Jan 31 15:00:06 EET 2002 root@shoes.st-paul:/usr/obj/usr/src/sys/SHOES i386

>Description:
Current net/radiusd-cistron port (version 1.6.4) has been marked as broken
due to buffer overflow. This bug has been reported to be fixed in version
1.6.5 and newer versions (according to securityfocus.com and Changelog
also says about memory leak fixes).
Fix section has shar `find net/radiusd-cistron` from what came out,
when I upgraded 1.6.4 port to version 1.6.6. It has been tested by
running radtest against radius in localhost.

>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	net/radiusd-cistron
#	net/radiusd-cistron/Makefile
#	net/radiusd-cistron/distinfo
#	net/radiusd-cistron/pkg-comment
#	net/radiusd-cistron/pkg-descr
#	net/radiusd-cistron/pkg-plist
#	net/radiusd-cistron/files
#	net/radiusd-cistron/files/patch-conf.h
#	net/radiusd-cistron/files/radiusd.sh.tmpl
#
echo c - net/radiusd-cistron
mkdir -p net/radiusd-cistron > /dev/null 2>&1
echo x - net/radiusd-cistron/Makefile
sed 's/^X//' >net/radiusd-cistron/Makefile << 'END-of-net/radiusd-cistron/Makefile'
X# New ports collection makefile for:	radiusd-cistron
X# Date created:		15 Jan 1999
X# Whom:			john@nlc.net.au
X#
X# $FreeBSD: ports/net/radiusd-cistron/Makefile,v 1.15 2002/01/29 15:56:57 nectar Exp $
X#
X
XPORTNAME=	radiusd-cistron
XPORTVERSION=	1.6.6
XCATEGORIES=	net
XMASTER_SITES=	ftp://ftp.cistron.nl/pub/people/miquels/radius/ \
X		ftp://ftp.freeradius.org/pub/radius/
X
XMAINTAINER=	john@nlc.net.au
X
X# FORBIDDEN=	"Remotely exploitable buffer overflow"
X
XMAKEFILE=	Makefile.BSD
XRADIUS_DIR=	${PREFIX}/etc/raddb
X
XMAN1=		radlast.1 radtest.1 raduse.1 radwho.1 radzap.1
XMAN5=		clients.5rad naslist.5rad
XMAN8=		radiusd.8 radwatch.8
X
Xdo-build:
X	cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} RADIUS_DIR=${RADIUS_DIR}
X
Xdo-install:
X	cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} RADIUS_DIR=${RADIUS_DIR} install
X	${CP} ${RADIUS_DIR}/clients    ${RADIUS_DIR}/clients.sample
X	${CP} ${RADIUS_DIR}/hints      ${RADIUS_DIR}/hints.sample
X	${CP} ${RADIUS_DIR}/huntgroups ${RADIUS_DIR}/huntgroups.sample
X	${CP} ${RADIUS_DIR}/naslist    ${RADIUS_DIR}/naslist.sample
X	${CP} ${RADIUS_DIR}/naspasswd  ${RADIUS_DIR}/naspasswd.sample
X	${CP} ${RADIUS_DIR}/realms     ${RADIUS_DIR}/realms.sample
X	${CP} ${RADIUS_DIR}/users      ${RADIUS_DIR}/users.sample
X	@${MKDIR} -m 700 /var/log/radacct
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.Y2K ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.cisco ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.pam ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.proxy ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.simul ${PREFIX}/share/doc/radiusd-cistron
X	${INSTALL_DATA} ${WRKSRC}/doc/README.usersfile ${PREFIX}/share/doc/radiusd-cistron
X.endif
X	${INSTALL_MAN} ${WRKSRC}/doc/radlast.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/radtest.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/raduse.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/radwho.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/radzap.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/clients.5rad ${MANPREFIX}/man/man5
X	${INSTALL_MAN} ${WRKSRC}/doc/naslist.5rad ${MANPREFIX}/man/man5
X	${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${MANPREFIX}/man/man8
X	${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${MANPREFIX}/man/man8
X
Xpost-install:
X	@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \
X		> ${PREFIX}/etc/rc.d/radiusd.sh
X	@${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd.sh
X	@${CHOWN} root:wheel ${PREFIX}/etc/rc.d/radiusd.sh
X
X.include <bsd.port.mk>
END-of-net/radiusd-cistron/Makefile
echo x - net/radiusd-cistron/distinfo
sed 's/^X//' >net/radiusd-cistron/distinfo << 'END-of-net/radiusd-cistron/distinfo'
XMD5 (radiusd-cistron-1.6.6.tar.gz) = 16084870890fd2ec577dbe183b51a379
END-of-net/radiusd-cistron/distinfo
echo x - net/radiusd-cistron/pkg-comment
sed 's/^X//' >net/radiusd-cistron/pkg-comment << 'END-of-net/radiusd-cistron/pkg-comment'
XA RADIUS-compliant remote authentication and accouting server
END-of-net/radiusd-cistron/pkg-comment
echo x - net/radiusd-cistron/pkg-descr
sed 's/^X//' >net/radiusd-cistron/pkg-descr << 'END-of-net/radiusd-cistron/pkg-descr'
XThis is the Cistron RADIUS daemon. Radiusd is a daemon that handles
Xremote authentication requests and accounting for RADIUS clients. The
Xclients may be terminal servers, Network Access Servers or other
XRADIUS servers.
END-of-net/radiusd-cistron/pkg-descr
echo x - net/radiusd-cistron/pkg-plist
sed 's/^X//' >net/radiusd-cistron/pkg-plist << 'END-of-net/radiusd-cistron/pkg-plist'
Xbin/radlast
Xbin/radtest
Xbin/raduse
Xbin/radwho
Xbin/radzap
Xsbin/checkrad
Xsbin/radiusd
Xsbin/radrelay
Xetc/raddb/clients.sample
Xetc/raddb/dictionary
Xetc/raddb/dictionary.ascend
Xetc/raddb/dictionary.cisco
Xetc/raddb/dictionary.compat
Xetc/raddb/dictionary.livingston
Xetc/raddb/dictionary.shiva
Xetc/raddb/dictionary.tunnel
Xetc/raddb/dictionary.usr
Xetc/raddb/dictionary.versanet
Xetc/raddb/hints.sample
Xetc/raddb/huntgroups.sample
Xetc/raddb/naslist.sample
Xetc/raddb/naspasswd.sample
Xetc/raddb/realms.sample
Xetc/raddb/users.sample
Xshare/doc/radiusd-cistron/COPYRIGHT
Xshare/doc/radiusd-cistron/ChangeLog
Xshare/doc/radiusd-cistron/INSTALL
Xshare/doc/radiusd-cistron/README
Xshare/doc/radiusd-cistron/README.Y2K
Xshare/doc/radiusd-cistron/README.cisco
Xshare/doc/radiusd-cistron/README.pam
Xshare/doc/radiusd-cistron/README.proxy
Xshare/doc/radiusd-cistron/README.simul
Xshare/doc/radiusd-cistron/README.usersfile
Xetc/rc.d/radiusd.sh
X@dirrm etc/raddb
X@dirrm share/doc/radiusd-cistron
X@unexec rm -f /var/log/radius.log
X@unexec rm -f /var/run/radiusd.pid
X@unexec echo "Leaving /var/run/radutmp, /var/log/radwtmp and /var/log/radacct alone."
END-of-net/radiusd-cistron/pkg-plist
echo c - net/radiusd-cistron/files
mkdir -p net/radiusd-cistron/files > /dev/null 2>&1
echo x - net/radiusd-cistron/files/patch-conf.h
sed 's/^X//' >net/radiusd-cistron/files/patch-conf.h << 'END-of-net/radiusd-cistron/files/patch-conf.h'
X--- src/conf.h	2002/02/07 19:39:25	1.1
X+++ src/conf.h	2002/02/07 19:39:50
X@@ -6,7 +6,7 @@
X  */
X 
X /* Default Database File Names */
X-#define RADIUS_DIR		"/etc/raddb"
X+#define RADIUS_DIR		"/usr/local/etc/raddb"
X #define RADLOG_DIR		"/var/log"
X 
X #ifdef aix
END-of-net/radiusd-cistron/files/patch-conf.h
echo x - net/radiusd-cistron/files/radiusd.sh.tmpl
sed 's/^X//' >net/radiusd-cistron/files/radiusd.sh.tmpl << 'END-of-net/radiusd-cistron/files/radiusd.sh.tmpl'
X#!/bin/sh
Xcase "$1" in
Xstop) killall radiusd;;
X*) [ -x !!PREFIX!!/sbin/radiusd ] && !!PREFIX!!/sbin/radiusd -y && echo -n ' radiusd';;
Xesac
END-of-net/radiusd-cistron/files/radiusd.sh.tmpl
exit



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202072036.g17Kabv20870>