From owner-freebsd-isp@FreeBSD.ORG Wed Aug 4 13:21:40 2010 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AB741065697; Wed, 4 Aug 2010 13:21:40 +0000 (UTC) (envelope-from misho@aitbg.com) Received: from mail.aitbg.com (fire.aitbg.com [84.238.153.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2CFC58FC0A; Wed, 4 Aug 2010 13:21:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.aitbg.com (Postfix) with ESMTP id 2765019D7F; Wed, 4 Aug 2010 16:03:14 +0300 (EEST) X-Virus-Scanned: amavisd-new at aitbg.com Received: from mail.aitbg.com ([127.0.0.1]) by localhost (mail.aitbg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TnKWAZyWsneS; Wed, 4 Aug 2010 16:03:08 +0300 (EEST) Received: from smurf.insecurebg.org (unknown [212.116.129.162]) by mail.aitbg.com (Postfix) with ESMTPSA id 4D33719D3B; Wed, 4 Aug 2010 16:03:08 +0300 (EEST) Date: Wed, 4 Aug 2010 16:01:24 +0300 From: Michael Pounov To: freebsd-ports@freebsd.org, freebsd-net@freebsd.org, freebsd-isp@freebsd.org Message-Id: <20100804160124.b50750be.misho@aitbg.com> Organization: AITNET ltd X-Mailer: Sylpheed 3.0.1 (GTK+ 2.18.7; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__4_Aug_2010_16_01_24_+0300_xE_AJaem.in9GCbR" Cc: Subject: ipsec-tools fix broken in CURRENT X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 13:21:40 -0000 This is a multi-part message in MIME format. --Multipart=_Wed__4_Aug_2010_16_01_24_+0300_xE_AJaem.in9GCbR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, this patch file ipsec-tools_fbsd90.txt Fix broken ipsec-tools in freebsd 9.0-current. Because after change syscons stop compiling sources. You can access the state of your problem report at any time via this link: http://www.freebsd.org/cgi/query-pr.cgi?pr=149270 >Category: ports >Responsible: freebsd-ports-bugs >Synopsis: ipsec-tools is broken in CURRENT >Arrival-Date: Wed Aug 04 12:40:04 UTC 2010 -- M.Punov --------------------- AITNET - Sofia/Bulgaria - Software & Network Solutions (+359) 888 73 73 58;(+359) 2 402 4000 --Multipart=_Wed__4_Aug_2010_16_01_24_+0300_xE_AJaem.in9GCbR Content-Type: text/plain; name="ipsec-tools_fbsd90.txt" Content-Disposition: attachment; filename="ipsec-tools_fbsd90.txt" Content-Transfer-Encoding: 7bit Index: Makefile =================================================================== RCS file: /home/ncvs/ports/security/ipsec-tools/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- Makefile 20 Mar 2010 15:12:15 -0000 1.26 +++ Makefile 4 Aug 2010 11:18:17 -0000 @@ -60,7 +60,7 @@ .include .if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx +LDFLAGS+= -lulog .endif .ifdef(WITH_DEBUG) --- work/ipsec-tools-0.7.3/src/racoon/isakmp_cfg.c 2008-11-27 17:25:20.000000000 +0200 +++ work/ipsec-tools-0.7.3/src/racoon/isakmp_cfg_new.c 2010-08-04 14:58:27.000000000 +0300 @@ -38,7 +38,8 @@ #include #include -#include +#include +#include #if defined(__APPLE__) && defined(__MACH__) #include #endif @@ -1651,8 +1652,7 @@ int inout; { int error = 0; - struct utmp ut; - char term[UT_LINESIZE]; + char term[8]; char addr[NI_MAXHOST]; if (usr == NULL || usr[0]=='\0') { @@ -1665,33 +1665,20 @@ switch (inout) { case ISAKMP_CFG_LOGIN: - strncpy(ut.ut_name, usr, UT_NAMESIZE); - ut.ut_name[UT_NAMESIZE - 1] = '\0'; - - strncpy(ut.ut_line, term, UT_LINESIZE); - ut.ut_line[UT_LINESIZE - 1] = '\0'; - GETNAMEINFO_NULL(raddr, addr); - strncpy(ut.ut_host, addr, UT_HOSTSIZE); - ut.ut_host[UT_HOSTSIZE - 1] = '\0'; - ut.ut_time = time(NULL); - plog(LLV_INFO, LOCATION, NULL, "Accounting : '%s' logging on '%s' from %s.\n", - ut.ut_name, ut.ut_line, ut.ut_host); - - login(&ut); + term, usr, addr); + ulog_login(term, usr, addr); break; case ISAKMP_CFG_LOGOUT: - plog(LLV_INFO, LOCATION, NULL, "Accounting : '%s' unlogging from '%s'.\n", usr, term); - logout(term); - + ulog_logout(term); break; default: plog(LLV_ERROR, LOCATION, NULL, "Unepected inout\n"); --Multipart=_Wed__4_Aug_2010_16_01_24_+0300_xE_AJaem.in9GCbR--