From mgrooms@ops.shrew.net  Fri Oct  8 14:53:55 2010
Return-Path: <mgrooms@ops.shrew.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 66ED6106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Oct 2010 14:53:55 +0000 (UTC)
	(envelope-from mgrooms@ops.shrew.net)
Received: from ops.shrew.net (ops.shrew.net [38.97.5.125])
	by mx1.freebsd.org (Postfix) with ESMTP id 2DE538FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Oct 2010 14:53:54 +0000 (UTC)
Received: from ops.shrew.net (localhost [127.0.0.1])
	by ops.shrew.net (8.14.3/8.14.3) with ESMTP id o98EhIBf072463
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 8 Oct 2010 14:43:19 GMT
	(envelope-from mgrooms@ops.shrew.net)
Received: (from mgrooms@localhost)
	by ops.shrew.net (8.14.3/8.14.3/Submit) id o98EhIge072462;
	Fri, 8 Oct 2010 09:43:18 -0500 (CDT)
	(envelope-from mgrooms)
Message-Id: <201010081443.o98EhIge072462@ops.shrew.net>
Date: Fri, 8 Oct 2010 09:43:18 -0500 (CDT)
From: Matthew Grooms <mgrooms@shrew.net>
Reply-To: Matthew Grooms <mgrooms@shrew.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update security/ike port to ver 2.1.7
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         151311
>Category:       ports
>Synopsis:       Update security/ike port to ver 2.1.7
>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:   Fri Oct 08 15:00:09 UTC 2010
>Closed-Date:    Sun Oct 31 00:19:09 UTC 2010
>Last-Modified:  Sun Oct 31 00:20:08 UTC 2010
>Originator:     Matthew Grooms
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
Shrew Soft Inc
>Environment:
System: FreeBSD ops.shrew.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun Feb 28 19:54:28 UTC 2010 mgrooms@ops.shrew.net:/usr/src/sys/i386/compile/CUSTOM i386

>Description:
	Update port to new version release. I've tried to submit updates to PR #148090 but I'm not having any luck.

>How-To-Repeat:
	Apply patch.

>Fix:
	

--- port-iked-2.1.7.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/ike/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	28 Mar 2010 06:43:21 -0000	1.11
+++ Makefile	8 Oct 2010 06:04:29 -0000
@@ -6,8 +6,8 @@
 #
 
 PORTNAME=	ike
-PORTVERSION=	2.1.4
-PORTREVISION=	2
+PORTVERSION=	2.1.7
+PORTREVISION=	1
 CATEGORIES=	security net
 MASTER_SITES=	http://www.shrew.net/download/ike/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-release
@@ -18,6 +18,7 @@
 
 ONLY_FOR_ARCHS=	i386 amd64
 
+USE_RC_SUBR=    iked
 USE_BISON=	build
 USE_OPENSSL=	yes
 USE_CMAKE=	yes
@@ -55,25 +56,23 @@
 .endif
 
 post-patch:
-.ifdef(WITH_NATT)
+.if defined(WITH_NATT)
+. if ${OSVERSION} < 800000
 	@${ECHO_MSG} "===> -------------------------------------------------------------------------"
-	@${ECHO_MSG} "===> ATTENTION: You need a kernel patch to enable NAT-Traversal functionality!"
-. if ${OSVERSION} < 600000
-	@${ECHO_MSG} "===>     There is no known NAT-T patch for FreeBSD 1 - 5!!!"
-. endif
-. if ${OSVERSION} > 600000 && ${OSVERSION} < 699999
-	@${ECHO_MSG} "===>     http://ipsec-tools.sf.net/freebsd6-natt.diff"
-. endif
-. if ${OSVERSION} > 700000 && ${OSVERSION} < 799999
-	@${ECHO_MSG} "===>     http://vanhu.free.fr/FreeBSD/patch-natt-freebsd7-2007-10-22.diff"
-. endif
-. if ${OSVERSION} > 800000
-	@${ECHO_MSG} "===>     http://vanhu.free.fr/FreeBSD/patch-natt-freebsd-HEAD-2007-10-22.diff"
-. endif
-	@${ECHO_MSG} "===> You might possibly have to do some steps manually if it fails to apply."
+	@${ECHO_MSG} "===> WARNING: You will need to patch your kernel for NAT-T functionality!"
+.  if ${OSVERSION} < 600000
+	@${ECHO_MSG} "===>   There is no known NAT-T patch for FreeBSD 1 - 5!!!"
+.  endif
+.  if ${OSVERSION} > 600000 && ${OSVERSION} < 699999
+	@${ECHO_MSG} "===>   http://ipsec-tools.sf.net/freebsd6-natt.diff"
+.  endif
+.  if ${OSVERSION} > 700000 && ${OSVERSION} < 799999
+	@${ECHO_MSG} "===>   http://people.freebsd.org/~vanhu/NAT-T/patch-natt-7.2-2009-05-12.diff"
+.  endif
+	@${ECHO_MSG} "===> You may need to edit the patch if it fails to apply cleanly."
 	@${ECHO_MSG} "===> -------------------------------------------------------------------------"
-
 	@sleep 3
+. endif
 .endif
 
 post-build:
@@ -86,8 +85,17 @@
 
 post-install:
 	@if ! ${SYSCTL} -a | ${GREP} -q ipsec; then \
-	${ECHO_MSG} "WARNING: IPsec feature is disabled on this host"; \
-	${ECHO_MSG} "         You must configure a kernel with this option to use this software"; \
+	${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
+	${ECHO_MSG} "===> WARNNG: You need IPsec support in your kernel, please see:"; \
+	${ECHO_MSG} "===>   http://www.freebsd.org/doc/en/books/handbook/ipsec.html"; \
+	${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
 	fi ;
+.if defined(WITH_NATT)
+	@${ECHO_MSG} "===> -------------------------------------------------------------------------"
+	@${ECHO_MSG} "===> WARNING: To use NAT Traversal ( NAT-T ) support, please be sure to"
+	@${ECHO_MSG} "===> include the following line in your kernel config file."
+	@${ECHO_MSG} "===>   options IPSEC_NAT_T"
+	@${ECHO_MSG} "===> -------------------------------------------------------------------------"
+.endif
 
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/security/ike/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	23 Jul 2009 14:37:53 -0000	1.5
+++ distinfo	8 Oct 2010 06:04:29 -0000
@@ -1,3 +1,3 @@
-MD5 (ike-2.1.4-release.tbz2) = 1b855717698ba62781284b202aa72a98
-SHA256 (ike-2.1.4-release.tbz2) = 8c587e71af361ecb383c99dea0ae01b45f6206a23de8d113c75e996729dc5677
-SIZE (ike-2.1.4-release.tbz2) = 575785
+MD5 (ike-2.1.7-release.tbz2) = bc86e101809fc750013e18480c8c1040
+SHA256 (ike-2.1.7-release.tbz2) = 28e64efcec165522a775657a6c2c2263a3d03a78b114f62f5e30f4d38602edba
+SIZE (ike-2.1.7-release.tbz2) = 581284
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/security/ike/pkg-plist,v
retrieving revision 1.5
diff -u -r1.5 pkg-plist
--- pkg-plist	23 Jul 2009 14:37:53 -0000	1.5
+++ pkg-plist	8 Oct 2010 06:04:29 -0000
@@ -5,6 +5,6 @@
 bin/ikea
 bin/ikec
 lib/libike.so
-lib/libike.so.2.1.4
+lib/libike.so.2.1.7
 lib/libpfk.so
-lib/libpfk.so.2.1.4
+lib/libpfk.so.2.1.7
Index: files/iked.in
===================================================================
RCS file: files/iked.in
diff -N files/iked.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/iked.in	8 Oct 2010 06:04:29 -0000
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# rc.d script for iked
+#
+# $Id$
+
+# PROVIDE: iked
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable iked:
+#
+#  #required
+#  iked_enable="YES"
+#
+
+. "/etc/rc.subr"
+
+# defaults
+iked_enable=${iked_enable:-"NO"}
+
+name=iked
+rcvar=`set_rcvar`
+load_rc_config $name
+command=/usr/local/sbin/iked
+command_args="-p /var/run/iked.pid > /dev/null"
+
+run_rc_command "$1"
Index: files/patch-source_iked_conf.parse.yy
===================================================================
RCS file: files/patch-source_iked_conf.parse.yy
diff -N files/patch-source_iked_conf.parse.yy
--- files/patch-source_iked_conf.parse.yy	6 Mar 2009 12:04:10 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- source/iked/conf.parse.yy.orig	2008-06-10 04:24:20.000000000 +0200
-+++ source/iked/conf.parse.yy	2009-03-06 11:40:56.000000000 +0100
-@@ -43,7 +43,7 @@
- %defines
- %define "parser_class_name" "conf_parser"
- 
--%{
-+%code requires {
- 
- #include <string>
- 
-@@ -51,7 +51,7 @@
- 
- typedef class _IKED IKED;
- 
--%}
-+}
- 
- // The parsing context.
- %parse-param { IKED & iked }
--- port-iked-2.1.7.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johans 
State-Changed-When: Sun Oct 31 00:18:45 UTC 2010 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151311 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/151311: commit references a PR
Date: Sun, 31 Oct 2010 00:17:49 +0000 (UTC)

 johans      2010-10-31 00:17:43 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/ike         Makefile distinfo pkg-plist 
   Removed files:
     security/ike/files   patch-source_iked_conf.parse.yy 
   Log:
   Update ike to version 2.1.7
   
   PR:             ports/151311
   Submitted by:   Matthew Grooms (maintainer)
   
   Revision  Changes    Path
   1.12      +27 -20    ports/security/ike/Makefile
   1.6       +3 -3      ports/security/ike/distinfo
   1.2       +0 -20     ports/security/ike/files/patch-source_iked_conf.parse.yy (dead)
   1.6       +2 -2      ports/security/ike/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
