aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-11-25 18:17:51 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-11-25 18:17:51 +0000
commit198edf39f086ca2ecca9d100642090442efd788e (patch)
tree9a3147fce84921cf391ddb71e4012af1345122d2 /shells
parent88a341ececd8ca45fdd1d87fdba45b3242e13c02 (diff)
downloadports-198edf39f086ca2ecca9d100642090442efd788e.tar.gz
ports-198edf39f086ca2ecca9d100642090442efd788e.zip
Notes
Diffstat (limited to 'shells')
-rw-r--r--shells/mksh/Makefile3
-rw-r--r--shells/mksh/pkg-plist5
2 files changed, 6 insertions, 2 deletions
diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile
index e1f3b4a6ddad..ad491c5b14b7 100644
--- a/shells/mksh/Makefile
+++ b/shells/mksh/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mksh
DISTVERSION= R40c
+PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
http://pub.allbsd.org/MirOS/dist/mir/mksh/
@@ -18,8 +19,6 @@ COMMENT= A MirBSD enhanced shell based on pdksh
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= mksh.1
-PLIST_FILES= bin/mksh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc
-PLIST_DIRS= %%PORTEXAMPLES%%%%EXAMPLESDIR%%
.include <bsd.port.pre.mk>
diff --git a/shells/mksh/pkg-plist b/shells/mksh/pkg-plist
new file mode 100644
index 000000000000..ad9e6f2d15c5
--- /dev/null
+++ b/shells/mksh/pkg-plist
@@ -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%%