ceabe272a7
If one need to write portable shell scripts, this one is excellent for testing them. It is installed as jsh (job shell). Other OpenSolaris user land tools are available in sysutils/heirloom WWW: http://heirloom.sourceforge.net/sh.html PR: ports/122192 Submitted by: Danijel Tasov <danielt at pilgerer.org>
43 lines
1,016 B
Makefile
43 lines
1,016 B
Makefile
# Ports collection makefile for: heirloom-sh
|
|
# Date created: 2008-03-28
|
|
# Whom: Danijel Tasov <danielt@pilgerer.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= heirloom-sh
|
|
PORTVERSION= 050706
|
|
CATEGORIES= shells
|
|
MASTER_SITES= SF/heirloom
|
|
|
|
MAINTAINER= danielt@pilgerer.org
|
|
COMMENT= Portable version of OpenSolaris' Bourne Shell
|
|
|
|
USE_BZIP2= yes
|
|
MAN1= jsh.1
|
|
PLIST_FILES= bin/jsh
|
|
PORTDOCS= CALDERA.LICENSE OPENSOLARIS.LICENSE CHANGES README
|
|
|
|
PKGINSTALL= pkg-install
|
|
PKGDEINSTALL= pkg-deinstall
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && make
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/jsh ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/sh.1.out ${MANPREFIX}/man/man1/jsh.1
|
|
|
|
pre-install:
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|