summaryrefslogtreecommitdiff
path: root/shells/perlsh/Makefile
blob: 69513addf12c628d6eca3344112f0b70ed38a93e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:	perlsh
# Version required:	0.007
# Date created:		11 Dec 1999
# Whom:			Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

DISTNAME=	psh-${VERSION}
PKGNAME=	perlsh-${VERSION}
CATEGORIES=	shells perl5
MASTER_SITES=	http://www.focusresearch.com/gregor/psh/

MAINTAINER=	will@FreeBSD.org

VERSION=	0.007
USE_PERL5=	yes
FETCH_BEFORE_ARGS+=	-t
MAKE_ENV+=	PPREFIX="${PREFIX}"
MAN1=		psh.1
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}

.include "${.CURDIR}/files/man3"

do-build:
	@(cd ${WRKSRC} && ${PERL} Makefile.PL && ${MAKE})

post-install:   
	@${ECHO} "Updating /etc/shells" 
	@${CP} /etc/shells /etc/shells.bak
	@(${GREP} -v ${PREFIX}/bin/psh /etc/shells.bak; \
	${ECHO} ${PREFIX}/bin/psh) > /etc/shells
	@${RM} /etc/shells.bak

.include <bsd.port.mk>