From f61f2728b68ce4626d0faf25cd48b1b9e29a3cf5 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Tue, 21 Jan 2014 08:54:06 +0000 Subject: [PATCH] This fixes /etc/shells. Due to the incorrect order of pkg-plist prior to exec/unexec the path to the manpage was written to /etc/shells. --- shells/mksh/Makefile | 1 + shells/mksh/pkg-plist | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile index fc2877249746..c9b04e592d26 100644 --- a/shells/mksh/Makefile +++ b/shells/mksh/Makefile @@ -3,6 +3,7 @@ PORTNAME= mksh DISTVERSION= R49 +PORTREVISION= 1 CATEGORIES= shells MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \ http://pub.allbsd.org/MirOS/dist/mir/mksh/ diff --git a/shells/mksh/pkg-plist b/shells/mksh/pkg-plist index 57f077ed3d15..378073b2e583 100644 --- a/shells/mksh/pkg-plist +++ b/shells/mksh/pkg-plist @@ -1,5 +1,6 @@ -bin/mksh man/man1/mksh.1.gz +@comment Please mind the order. bin/mksh needs to come right before the exec/unexec magic. +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; rm -f /etc/shells.bak @unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc