From owner-freebsd-ports@FreeBSD.ORG Sun Jan 11 17:26:20 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2FF9E10C; Sun, 11 Jan 2015 17:26:20 +0000 (UTC) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Cryptonomicore CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EB996A7F; Sun, 11 Jan 2015 17:26:19 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 9ECCE1887A6; Sun, 11 Jan 2015 17:26:09 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: monitorings-plugin hangs on configure ICMPv6 From: Stefan Bethke In-Reply-To: <6BD12A50-3226-4CF5-8789-14069F7908A6@lassitu.de> Date: Sun, 11 Jan 2015 18:26:08 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <1D9F2CF4-65B9-4543-9BF9-85EEC6593EA4@lassitu.de> References: <6BD12A50-3226-4CF5-8789-14069F7908A6@lassitu.de> To: mat@FreeBSD.org X-Mailer: Apple Mail (2.1993) Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2015 17:26:20 -0000 Am 11.01.2015 um 17:54 schrieb Stefan Bethke : >=20 > checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu = comm args' > checking for ping... /sbin/ping > checking for ping6... /sbin/ping6 > checking for ICMP ping syntax... /sbin/ping -n -c %d %s > checking for ICMPv6 ping syntax... ^C=3D=3D=3D> Script "configure" = failed unexpectedly. >=20 > FreeBSD 9-stable, all ports up to date, inside a jail. >=20 > Any suggestions? Figured it out myself. My google-foo did not give me any hints to what = the problem is, only Linux related posts, but that led me to checking = for jail-related issues. The help text is a bit terse, I had to look at = the Makefile to understand what=E2=80=99s required. Since I=E2=80=99m using NO_DIALOG, I have all my config option in = /etc/make.conf. I=E2=80=99ve added this: +JAILED!=3D /sbin/sysctl -n security.jail.jailed +.if ${JAILED} =3D=3D 1 +monitoring-plugins_SET+=3D JAIL +nagios-plugins_SET+=3D JAIL +NAGIOSPOLLIP!=3Difconfig em0 | sed -nEe 's/.*inet (.*) netmask.*/\1/p' +NAGIOSPOLLIP6!=3Difconfig em0 | sed -nEe 's/.*inet6 (.*) prefix.*/\1/p' +.endif (em 0 is my outward-facing interface on all the hosts.) May I suggest to use something like this for the help text? > If you are building the port inside a jail, you might need to tell = check_ping which IP address to use as the source address, instead of = 127.0.0.1 and ::1, respectively. Use the config option JAIL, and define = NAGIOSPOLLIP and NAGIOSPOLLIP6 on the command line or in make.conf when = building the port, setting them to the primary IPv4 and IPv6 address of = your jail, respectively. I have no idea what the second paragraph is supposed to tell me. = Irrespective of the first paragraph, you shouldn=E2=80=99t set the JAIL = config option when building the package with poudriere? Stefan --=20 Stefan Bethke Fon +49 151 14070811