aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-12-27 08:39:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-12-27 08:39:32 +0000
commit168ab534693b93cb2e1ce300915ce26045749ede (patch)
treef416f448c238ce0f3f3118f64f0d47e3a85ae7a7 /shells
parentceda823a27d919b9fe2d2d3c2a79b4133bf4aeea (diff)
downloadports-168ab534693b93cb2e1ce300915ce26045749ede.tar.gz
ports-168ab534693b93cb2e1ce300915ce26045749ede.zip
Notes
Diffstat (limited to 'shells')
-rw-r--r--shells/mksh/Makefile28
-rw-r--r--shells/mksh/pkg-plist1
2 files changed, 8 insertions, 21 deletions
diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile
index 930256733a23..66198641d046 100644
--- a/shells/mksh/Makefile
+++ b/shells/mksh/Makefile
@@ -9,31 +9,17 @@ MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
DISTFILES= ${PORTNAME}-${DISTVERSION}.tgz
MAINTAINER= miwi@FreeBSD.org
-COMMENT= A MirBSD enhanced shell based on pdksh
+COMMENT= MirBSD enhanced shell based on pdksh
WRKSRC= ${WRKDIR}/${PORTNAME}
-MAN1= mksh.1
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
do-build:
- cd ${WRKSRC} && CFLAGS="${CFLAGS}" CC="${CC}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r -c lto
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r -c lto
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mksh ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR}
-.endif
-
-post-install:
- @${ECHO_MSG} "updating /etc/shells"
- @${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/mksh /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/mksh) > /etc/shells
- @${RM} /etc/shells.bak
+ ${INSTALL_PROGRAM} ${WRKSRC}/mksh ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${STAGEDIR}${EXAMPLESDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/shells/mksh/pkg-plist b/shells/mksh/pkg-plist
index ad9e6f2d15c5..14a267d43eb8 100644
--- a/shells/mksh/pkg-plist
+++ b/shells/mksh/pkg-plist
@@ -1,4 +1,5 @@
bin/mksh
+man/man1/mksh.1.gz
@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