ports/160528: [patch] shells/mksh: update /etc/shells on deinstall
Kaspars Bankovskis
kaspars at bankovskis.lv
Tue Sep 6 20:50:09 UTC 2011
>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
+ at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+ at 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:
More information about the freebsd-ports-bugs
mailing list