From babak@farrokhi.net  Thu Aug 10 10:33:55 2006
Return-Path: <babak@farrokhi.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C4E2716A4E0
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Aug 2006 10:33:55 +0000 (UTC)
	(envelope-from babak@farrokhi.net)
Received: from Plesk.datak.net (plesk.datak-telecom.net [81.91.129.96])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8A02A43D5D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Aug 2006 10:33:54 +0000 (GMT)
	(envelope-from babak@farrokhi.net)
Received: (qmail 31953 invoked from network); 10 Aug 2006 14:03:49 +0330
Received: from unknown (HELO starfish.datak.net) (81.91.130.217)
  by 81.91.129.125 with (DHE-RSA-AES256-SHA encrypted) SMTP; 10 Aug 2006 14:03:49 +0330
Message-Id: <1155206032.64213@starfish.datak.net>
Date: Thu, 10 Aug 2006 14:03:52 +0330
From: "Babak Farrokhi" <babak@farrokhi.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [Maintainer Update] port security/lsh - fix build
X-Send-Pr-Version: gtk-send-pr 0.4.7 
X-GNATS-Notify:

>Number:         101750
>Category:       ports
>Synopsis:       [Maintainer Update] port security/lsh - fix build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 10 10:40:16 GMT 2006
>Closed-Date:    Sat Aug 12 21:26:24 GMT 2006
>Last-Modified:  Sat Aug 12 21:26:24 GMT 2006
>Originator:     Babak Farrokhi
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.1-STABLE #0: Mon Jul 24 11:42:49 IRST 2006
    root@starfish.datak.net:/usr/obj/usr/src/sys/STARFISH



>Description:


- Requires GCC 3.4+
- Add new patch
- respect CC and CFLAGS
- Bump PORTREVISION


>How-To-Repeat:





>Fix:


--- lsh.patch begins here ---
diff -ruN lsh.orig/Makefile lsh/Makefile
--- lsh.orig/Makefile	Thu Aug 10 11:44:55 2006
+++ lsh/Makefile	Thu Aug 10 13:47:51 2006
@@ -6,6 +6,7 @@
 
 PORTNAME=	lsh
 PORTVERSION=	2.0.3
+PORTREVISION=	1
 CATEGORIES=	security ipv6
 MASTER_SITES=	${MASTER_SITE_GNUPG} \
 		ftp://ftp.lysator.liu.se/pub/security/%SUBDIR%/
@@ -23,7 +24,9 @@
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
+USE_GCC=	3.4+
 INSTALL_TARGET=	install
+CONFIGURE_ENV=	PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}"
 CONFIGURE_ARGS+=	--with-include-path=${LOCALBASE}/include
 CONFIGURE_ARGS+=	--with-lib-path=${LOCALBASE}/lib
 CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
diff -ruN lsh.orig/files/patch-nettle-openssl.c lsh/files/patch-nettle-openssl.c
--- /dev/null	Thu Jan  1 03:30:00 1970
+++ lsh/files/patch-nettle-openssl.c	Thu Aug 10 13:25:27 2006
@@ -0,0 +1,10 @@
+--- src/nettle/examples/nettle-openssl.c.orig	Thu Aug 10 13:24:43 2006
++++ src/nettle/examples/nettle-openssl.c	Thu Aug 10 13:24:53 2006
+@@ -36,6 +36,7 @@
+ #define OPENSSL_DISABLE_OLD_DES_SUPPORT
+ 
+ #include <assert.h>
++#include <stddef.h>
+ 
+ #include <openssl/aes.h>
+ #include <openssl/blowfish.h>
--- lsh.patch ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sat Aug 12 21:26:16 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101750 
>Unformatted:
