Date: Tue, 6 Sep 2011 20:45:06 GMT From: Kaspars Bankovskis <kaspars@bankovskis.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160528: [patch] shells/mksh: update /etc/shells on deinstall Message-ID: <201109062045.p86Kj6BX052479@red.freebsd.org> Resent-Message-ID: <201109062050.p86Ko9jP069625@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 160528 >Category: ports >Synopsis: [patch] shells/mksh: update /etc/shells on deinstall >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: Tue Sep 06 20:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Kaspars Bankovskis >Release: >Organization: >Environment: >Description: - added pkg-plist, with similar instructions as other shells have >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN mksh.bak/Makefile mksh/Makefile --- mksh.bak/Makefile 2011-09-06 23:01:04.000000000 +0300 +++ mksh/Makefile 2011-09-06 23:32:17.000000000 +0300 @@ -18,8 +18,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME} MAN1= mksh.1 -PLIST_FILES= bin/mksh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc -PLIST_DIRS= %%PORTEXAMPLES%%%%EXAMPLESDIR%% .include <bsd.port.pre.mk> diff -ruN mksh.bak/pkg-plist mksh/pkg-plist --- mksh.bak/pkg-plist 1970-01-01 03:00:00.000000000 +0300 +++ mksh/pkg-plist 2011-09-06 23:26:22.000000000 +0300 @@ -0,0 +1,5 @@ +bin/mksh +@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 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109062045.p86Kj6BX052479>