Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 1999 23:58:25 +0800 (CST)
From:      Foxfair Hu <foxfair@drago.cert.org.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15685: Update /etc/shells after installed pdksh
Message-ID:  <199912251558.XAA15613@drago.cert.org.tw>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.mk>
	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912251558.XAA15613>