Date: Mon, 24 Mar 2008 16:32:35 GMT From: Jase Thew <bazerka@beardz.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/122054: [patch] security/oidentd - add OPTIONS support Message-ID: <200803241632.m2OGWZFN070263@www.freebsd.org> Resent-Message-ID: <200803241640.m2OGe5wg021600@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803241632.m2OGWZFN070263>