aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-11-26 02:17:51 +0800
committermiwi <miwi@FreeBSD.org>2011-11-26 02:17:51 +0800
commita68ee95cc802401e466c1b0f421e9186742ccfc8 (patch)
tree011ea469736e80b0ab3fa49a102533b1d763ed21 /shells
parent858753ab2dfd3b33b20b59560831933f3c6feaea (diff)
downloadfreebsd-ports-gnome-a68ee95cc802401e466c1b0f421e9186742ccfc8.tar.gz
freebsd-ports-gnome-a68ee95cc802401e466c1b0f421e9186742ccfc8.tar.zst
freebsd-ports-gnome-a68ee95cc802401e466c1b0f421e9186742ccfc8.zip
- Make sure after deinstall /etc/shells is clean
- Bump PORTREVISION PR: 160528 Submitted by: Kaspars Bankovskis <kaspars@bankovskis.lv> Feature safe: yes
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%%