mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Support stage
This commit is contained in:
parent
ceda823a27
commit
168ab53469
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337653
@ -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
|
||||
${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}
|
||||
|
||||
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
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user