2006-07-22 10:55:20 +00:00
|
|
|
# Ports collection makefile for: mksh
|
|
|
|
# Date created: 2006-06-24
|
|
|
|
# Whom: Andreas Kohn <andreas@syndrom23.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mksh
|
2008-10-25 16:21:32 +00:00
|
|
|
DISTVERSION= R36
|
2006-07-22 10:55:20 +00:00
|
|
|
CATEGORIES= shells
|
2007-03-11 22:24:33 +00:00
|
|
|
MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
|
|
|
|
http://pub.allbsd.org/MirOS/dist/mir/mksh/
|
2006-07-22 10:55:20 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}.cpio.gz
|
|
|
|
|
2007-03-12 10:07:17 +00:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2006-07-25 11:41:05 +00:00
|
|
|
COMMENT= A MirBSD enhanced shell based on pdksh
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
MAN1= mksh.1
|
2008-09-25 13:21:27 +00:00
|
|
|
PLIST_FILES= bin/mksh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc
|
|
|
|
PLIST_DIRS= %%PORTEXAMPLES%%%%EXAMPLESDIR%%
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${GZCAT} ${DISTDIR}/${DISTFILES} | ${CPIO} -id
|
|
|
|
|
|
|
|
do-build:
|
2008-09-25 13:21:27 +00:00
|
|
|
cd ${WRKSRC} && CFLAGS="${CFLAGS}" CC="${CC}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mksh ${PREFIX}/bin
|
2008-09-25 13:21:27 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2006-09-04 07:02:54 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR}
|
2008-09-25 13:21:27 +00:00
|
|
|
.endif
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
post-install:
|
2008-04-25 12:39:50 +00:00
|
|
|
@${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
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|