Date: Wed, 20 Sep 2006 14:14:04 +0200 (CEST) From: johan@stromnet.org To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/103436: sysutils/munin* user detection broken Message-ID: <20060920144538.E0AB34503C@elfi.stromnet.org> Resent-Message-ID: <200609201620.k8KGKK7K056892@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060920144538.E0AB34503C>