From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 20 16:21:24 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 795C216A415 for ; Wed, 20 Sep 2006 16:21:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3BE643D73 for ; Wed, 20 Sep 2006 16:20:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8KGKK7q056898 for ; Wed, 20 Sep 2006 16:20:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8KGKK7K056892; Wed, 20 Sep 2006 16:20:20 GMT (envelope-from gnats) Resent-Date: Wed, 20 Sep 2006 16:20:20 GMT Resent-Message-Id: <200609201620.k8KGKK7K056892@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, johan@stromnet.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82E6A16A492 for ; Wed, 20 Sep 2006 16:11:49 +0000 (UTC) (envelope-from root@elfi.stromnet.org) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA0C443D70 for ; Wed, 20 Sep 2006 16:11:47 +0000 (GMT) (envelope-from root@elfi.stromnet.org) Received: from elfi.stromnet.org (213.67.205.103) by pne-smtpout1-sn2.hy.skanova.net (7.2.075) id 450708BC0021CF34 for FreeBSD-gnats-submit@freebsd.org; Wed, 20 Sep 2006 18:11:36 +0200 Received: by elfi.stromnet.org (Postfix, from userid 0) id E0AB34503C; Wed, 20 Sep 2006 14:14:04 +0200 (CEST) Message-Id: <20060920144538.E0AB34503C@elfi.stromnet.org> Date: Wed, 20 Sep 2006 14:14:04 +0200 (CEST) From: johan@stromnet.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/103436: sysutils/munin* user detection broken 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: Wed, 20 Sep 2006 16:21:24 -0000 >Number: 103436 >Category: ports >Synopsis: sysutils/munin* user detection broken >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 20 16:20:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Johan Strom >Release: FreeBSD 6.1-RELEASE-p7 amd64 >Organization: stromnet >Environment: System: FreeBSD elfi.stromnet.org 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Wed Sep 20 09:21:41 CEST 2006 admin@elfi.stromnet.org:/usr/obj/usr/src/sys/ELFI amd64 >Description: When install script is checking if user exists, it does it by grep'ing in passwd/group. This fails for example when the user is in LDAP. >How-To-Repeat: Try to install munin-node or munin-main when the munin user is not in local passwd but instead in nis/ldap etc. >Fix: Fix attached using pw instead, applies to files/patch-Makefile.config --- patch begins here --- 81,82c81,82 < +CHECKUSER:= $(shell grep $(USER) /etc/passwd >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) < +CHECKGROUP:= $(shell grep $(GROUP) /etc/group >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) --- > +CHECKUSER:= $(shell /usr/sbin/pw user show $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) > +CHECKGROUP:= $(shell /usr/sbin/pw group show $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: