Bug 15412 - new port: shells/perlsh
Summary: new port: shells/perlsh
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wes Peters
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-12-11 06:00 UTC by Will Andrews
Modified: 2000-01-03 21:56 UTC (History)
0 users

See Also:


Attachments
file.shar (2.34 KB, text/plain)
1999-12-11 06:00 UTC, Will Andrews
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Will Andrews 1999-12-11 06:00:01 UTC
Cool, a shell based entirely on a Perl script. It seems rather
powerful too, and it combines features from bash and other shells..

How-To-Repeat: 
use the shar below to commit the new port to the tree.
Comment 1 Will Andrews 1999-12-11 06:05:13 UTC
On 11-Dec-99 Will Andrews wrote:

Er, I forgot that with a shell, you have to update /etc/shells.. :P

> sed 's/^X//' >perlsh/Makefile << 'END-of-perlsh/Makefile'
> X# New ports collection makefile for: perlsh
> X# Version required:  0.004pre2
> X# Date created:              11 Dec 1999
> X# Whom:                      Will Andrews <andrews@technologist.com>
> X#
> X# $FreeBSD$
> X#
> X
> XDISTNAME=    psh-0.004pre2
> XCATEGORIES=  shells
> XMASTER_SITES=        http://www.focusresearch.com/gregor/psh/
> X
> XMAINTAINER=  andrews@technologist.com
> X
> Xdo-build:
> X     @(cd ${WRKSRC} && ${PERL} Makefile.PL && ${MAKE})
> X
> Xpost-build:
> X     @${PERL} -pi -e "s/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g"
> ${WRKSRC}/psh
> X
> Xdo-install:
> X.if !defined(NOPORTDOCS)
> X     @${MKDIR} ${PREFIX}/share/perlsh
> X.for DOC in CHANGES MANIFEST README TODO psh.NEWS pshrc test.pl psh.pod
> X     @${INSTALL_DATA} ${WRKSRC}/${DOC} ${PREFIX}/share/perlsh
> X.endfor
> X.endif
> X     @${INSTALL_SCRIPT} ${WRKSRC}/psh ${PREFIX}/bin

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

> X.include <bsd.port.mk>
> END-of-perlsh/Makefile
> exit

Careful about copying & pasting that into the Makefile if you commit, because
my mail client converts tabs to spaces. (Yes, I know, lame, isn't it? :\).

Thanks.

--
Will Andrews <andrews@technologist.com>
GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ 
G++>+++ e->++++ h! r-->+++ y?
Comment 2 Wes Peters freebsd_committer freebsd_triage 1999-12-11 21:07:18 UTC
Responsible Changed
From-To: freebsd-ports->wes

I'll do this one. 
Comment 3 Steve Price freebsd_committer freebsd_triage 2000-01-03 21:55:42 UTC
State Changed
From-To: open->closed

Wes just imported this port.  Thanks!