From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 24 16:40:06 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 422D6106566C for ; Mon, 24 Mar 2008 16:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 091578FC1D for ; Mon, 24 Mar 2008 16:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2OGe5Pj021602 for ; Mon, 24 Mar 2008 16:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2OGe5wg021600; Mon, 24 Mar 2008 16:40:05 GMT (envelope-from gnats) Resent-Date: Mon, 24 Mar 2008 16:40:05 GMT Resent-Message-Id: <200803241640.m2OGe5wg021600@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jase Thew Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD7891065677 for ; Mon, 24 Mar 2008 16:32:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B71B78FC2A for ; Mon, 24 Mar 2008 16:32:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2OGWZU6070264 for ; Mon, 24 Mar 2008 16:32:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m2OGWZFN070263; Mon, 24 Mar 2008 16:32:35 GMT (envelope-from nobody) Message-Id: <200803241632.m2OGWZFN070263@www.freebsd.org> Date: Mon, 24 Mar 2008 16:32:35 GMT From: Jase Thew To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122054: [patch] security/oidentd - add OPTIONS support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2008 16:40:06 -0000 >Number: 122054 >Category: ports >Synopsis: [patch] security/oidentd - add OPTIONS support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 16:40:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Jase Thew >Release: FreeBSD 6.3 >Organization: >Environment: FreeBSD sheesh-jails.localdomain 6.3-STABLE FreeBSD 6.3-STABLE #1: Sun Feb 24 02:02:10 GMT 2008 root@sheesh-jails.localdomain:/usr/obj/usr/src/sys/GENERIC i386 >Description: By default, this port builds oidentd with both IPv6 and NAT/IP masq support enabled. To run oidentd in a jail, you need to be able compile without NAT/IP masq support or alternatively, you have to expose /dev/kmem within the jail. The attached patch adds OPTIONS capability to the port's Makefile to allow building without IPv6 and/or NAT/IP masq support. >How-To-Repeat: >Fix: Patch attached with submission follows: --- security/oidentd/Makefile.orig 2008-03-24 15:09:31.000000000 +0000 +++ security/oidentd/Makefile 2008-03-24 16:22:55.000000000 +0000 @@ -7,6 +7,7 @@ PORTNAME= oidentd PORTVERSION= 2.0.8 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ojnk @@ -23,6 +24,21 @@ PLIST_FILES= sbin/oidentd etc/rc.d/oidentd.sh etc/oidentd.conf.sample \ etc/oidentd_masq.conf.sample +OPTIONS= IPV6 "Enable IPv6 support" on \ + MASQ "Enable NAT/IP masq support" on + +.include + +.if defined(WITHOUT_IPV6) +CONFIGURE_ARGS+= --disable-ipv6 +.else +CATEGORIES+= ipv6 +.endif + +.if defined(WITHOUT_MASQ) +CONFIGURE_ARGS+= --disable-masq +.endif + post-patch: @${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,g' ${WRKSRC}/src/oidentd.h @@ -43,4 +59,4 @@ ${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man8 .endif -.include +.include >Release-Note: >Audit-Trail: >Unformatted: