From owner-freebsd-ports Sat Dec 25 8: 0: 8 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 853181515E for ; Sat, 25 Dec 1999 08:00:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA08263; Sat, 25 Dec 1999 08:00:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from drago.cert.org.tw (drago.cert.org.tw [140.117.100.10]) by hub.freebsd.org (Postfix) with ESMTP id CC0DD14EA2 for ; Sat, 25 Dec 1999 07:52:40 -0800 (PST) (envelope-from foxfair@drago.cert.org.tw) Received: (from foxfair@localhost) by drago.cert.org.tw (8.9.3/8.9.3) id XAA15613; Sat, 25 Dec 1999 23:58:25 +0800 (CST) Message-Id: <199912251558.XAA15613@drago.cert.org.tw> Date: Sat, 25 Dec 1999 23:58:25 +0800 (CST) From: Foxfair Hu Reply-To: foxfair@drago.cert.org.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15685: Update /etc/shells after installed pdksh Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15685 >Category: ports >Synopsis: Update /etc/shells after installed pdksh >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 25 08:00:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Foxfair Hu >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: FreeBSD-3.4 w/ fresh ports tree. >Description: Update /etc/shells automatically after installed port/shells/pdksh. >How-To-Repeat: cd /usr/ports/shells/pdksh && make install cat /etc/shells >Fix: Apply this patch to pdksh/Makefile: --- Makefile.org Sat Dec 25 23:38:19 1999 +++ Makefile Sat Dec 25 23:44:12 1999 @@ -20,4 +20,11 @@ CONFIGURE_ENV= LDSTATIC=-static MAN1= ksh.1 +post-install: + @${ECHO} "Updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(${GREP} -v ${PREFIX}/bin/ksh /etc/shells.bak; \ + ${ECHO} ${PREFIX}/bin/ksh) > /etc/shells + @${RM} /etc/shells.bak + .include >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message