Date: Fri, 31 Dec 1999 00:32:14 +0100 (CET) From: Christian Weisgerber <naddy@mips.rhein-neckar.de> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/15788: shells/ksh93 doesn't update /etc/shells Message-ID: <199912302332.AAA95206@bigeye.rhein-neckar.de>
next in thread | raw e-mail | index | archive | help
>Number: 15788 >Category: ports >Synopsis: shells/ksh93 doesn't update /etc/shells >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 30 16:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: >Description: My shells/ksh93 port doesn't update /etc/shells. >How-To-Repeat: >Fix: diff -u -uNr /usr/ports/shells/ksh93/Makefile ksh93/Makefile --- /usr/ports/shells/ksh93/Makefile Fri Nov 26 21:43:23 1999 +++ ksh93/Makefile Fri Dec 31 00:24:14 1999 @@ -39,4 +39,11 @@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/ksh ${PREFIX}/bin/ksh93 ${INSTALL_MAN} ${WRKSRC}/man/man1/sh.1 ${PREFIX}/man/man1/ksh93.1 +post-install: + @${ECHO_MSG} "Updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \ + ${ECHO} ${PREFIX}/bin/ksh93) > /etc/shells + @${RM} /etc/shells.bak + .include <bsd.port.mk> diff -u -uNr /usr/ports/shells/ksh93/pkg/PLIST ksh93/pkg/PLIST --- /usr/ports/shells/ksh93/pkg/PLIST Fri Nov 26 21:43:23 1999 +++ ksh93/pkg/PLIST Fri Dec 31 00:20:42 1999 @@ -1 +1,3 @@ bin/ksh93 +@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells +@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells >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?199912302332.AAA95206>