2000-12-30 02:31:08 +01:00
|
|
|
# New ports collection makefile for: osh
|
|
|
|
# Date created: 29 December 2000
|
|
|
|
# Whom: George Reid <greid@ukug.uk.freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= osh
|
2010-05-09 10:46:43 +02:00
|
|
|
DISTVERSION= 20100430
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= shells
|
2008-11-22 06:41:26 +01:00
|
|
|
MASTER_SITES= http://v6shell.org/src/ \
|
2008-11-02 00:11:42 +01:00
|
|
|
http://freebsd.unixfreunde.de/sources/
|
2000-12-30 02:31:08 +01:00
|
|
|
|
2006-06-17 00:17:25 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2004-04-09 20:22:27 +02:00
|
|
|
COMMENT= An implementation of the UNIX 6th Edition shell
|
2000-12-30 02:31:08 +01:00
|
|
|
|
2009-12-12 14:48:21 +01:00
|
|
|
MAKE_ENV+= DOCDIR=${DOCSDIR} \
|
|
|
|
DESTEXPDIR=${EXAMPLESDIR} \
|
|
|
|
MANDIR=${MANPREFIX}/man/man1
|
|
|
|
|
2007-03-26 12:00:32 +02:00
|
|
|
MAN1= fd2.1 goto.1 if.1 osh.1 sh6.1 glob6.1
|
2000-12-30 02:31:08 +01:00
|
|
|
|
2009-12-12 14:48:21 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E -e 's|(DESTEXPDIR)=|\1?=|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e /^install-doc/d \
|
|
|
|
-e /\ $$\(DESTDOCDIR\)/d \
|
|
|
|
-e 's/install-doc//' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
.if defined(NOPORTEXAMPLES)
|
|
|
|
@${REINPLACE_CMD} -e /^install-exp/d \
|
|
|
|
-e /\ $$\(DESTEXPDIR\)/d \
|
|
|
|
-e 's/install-exp//' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
2000-12-30 02:31:08 +01:00
|
|
|
post-install:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${ECHO_MSG} "updating /etc/shells"
|
|
|
|
@${CP} /etc/shells /etc/shells.bak
|
|
|
|
@(${GREP} -v ${PREFIX}/bin/osh /etc/shells.bak; \
|
|
|
|
${ECHO_CMD} ${PREFIX}/bin/osh) > /etc/shells
|
|
|
|
@${RM} /etc/shells.bak
|
2000-12-30 02:31:08 +01:00
|
|
|
|
2009-12-12 14:48:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|