1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00

Unluckily FreeBSD's shell isn't able to read from/write to /dev/stdin

and stdout.
Therefore we have to use bash as shell for /usr/local/bin/aps2file
program.
Arrange things with patch and pre-configure command, so that this
port stays prefix-clean.
The patch inserts !!PREFIX!!/bin/bash and configure configures in
the current PREFIX settings.
I'd whish somebody could fix our shell to remove the dependency from bash.
This commit is contained in:
Andreas Klemm 2001-12-17 18:47:36 +00:00
parent 577224d162
commit 4c3cb8b3d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51679
3 changed files with 16 additions and 0 deletions

View File

@ -87,6 +87,9 @@ RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
.endif
# needed for aps2file :-/
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash2
MAN1= apsfilter.1
MAN5= apsfilterrc.5

View File

@ -0,0 +1,8 @@
--- bin/aps2file.orig Mon Dec 17 19:35:50 2001
+++ bin/aps2file Mon Dec 17 19:36:33 2001
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! !!PREFIX!!/bin/bash
#
# $ApsCVS: src/apsfilter/bin/aps2file,v 1.1 2001/11/17 15:21:52 andreas Exp $
#

View File

@ -0,0 +1,5 @@
#! /bin/sh
perl -pi -e "s|!!PREFIX!!|$PREFIX|" ${WRKSRC}/bin/aps2file
exit 0