pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/atitvout * Fix PATH for test.sh script



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df08345c0a72
branches:  trunk
changeset: 485649:df08345c0a72
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sat Dec 18 13:18:13 2004 +0000

description:
* Fix PATH for test.sh script
* Use /bin/sh in test.sh instead of /bin/bash
* Use ${PREFIX}/sbin/atitvout not ./atitvout

Bump PKGREVISION.

diffstat:

 sysutils/atitvout/MESSAGE          |   4 ++--
 sysutils/atitvout/Makefile         |   9 ++++++++-
 sysutils/atitvout/distinfo         |   3 ++-
 sysutils/atitvout/patches/patch-ab |  15 +++++++++++++++
 4 files changed, 27 insertions(+), 4 deletions(-)

diffs (68 lines):

diff -r 9c08eb4e8ffd -r df08345c0a72 sysutils/atitvout/MESSAGE
--- a/sysutils/atitvout/MESSAGE Sat Dec 18 13:01:34 2004 +0000
+++ b/sysutils/atitvout/MESSAGE Sat Dec 18 13:18:13 2004 +0000
@@ -1,7 +1,7 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2003/08/13 05:23:00 mrg Exp $
+$NetBSD: MESSAGE,v 1.2 2004/12/18 13:18:13 xtraeme Exp $
 
- Try running the ${PREFIX}/share/atitvout/test.sh program to find
+ Try running the ${PREFIX}/share/doc/atitvout/test.sh program to find
  out if this program works with your video card.  It will cycle
  through all available settings with pauses.
 
diff -r 9c08eb4e8ffd -r df08345c0a72 sysutils/atitvout/Makefile
--- a/sysutils/atitvout/Makefile        Sat Dec 18 13:01:34 2004 +0000
+++ b/sysutils/atitvout/Makefile        Sat Dec 18 13:18:13 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2004/01/20 12:26:15 agc Exp $
+# $NetBSD: Makefile,v 1.4 2004/12/18 13:18:13 xtraeme Exp $
 
 DISTNAME=       atitvout-0.4
+PKGREVISION=   1
 CATEGORIES=    sysutils graphics
 MASTER_SITES=  http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/
 
@@ -24,6 +25,12 @@
        ${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}
 .endif
 
+SUBST_CLASSES+=        sh
+SUBST_STAGE.sh=        post-patch
+SUBST_FILES.sh=        test.sh
+SUBST_SED.sh=  -e "s,@PREFIX@,${PREFIX},"
+SUBST_MESSAGE.sh=      "Fixing stupid bash scripts."
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/atitvout ${PREFIX}/sbin
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/atitvout
diff -r 9c08eb4e8ffd -r df08345c0a72 sysutils/atitvout/distinfo
--- a/sysutils/atitvout/distinfo        Sat Dec 18 13:01:34 2004 +0000
+++ b/sysutils/atitvout/distinfo        Sat Dec 18 13:18:13 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2003/08/13 13:58:57 mrg Exp $
+$NetBSD: distinfo,v 1.3 2004/12/18 13:18:13 xtraeme Exp $
 
 SHA1 (atitvout-0.4.tar.gz) = ac0d3f19119fa0c096099f952c9c59ac44ccc840
 Size (atitvout-0.4.tar.gz) = 27163 bytes
 SHA1 (patch-aa) = 68e79e289b1aadbba3aa1dbf3137fdf90c486afa
+SHA1 (patch-ab) = 7cf654f43489be3ae982b17f458bf733342469b0
diff -r 9c08eb4e8ffd -r df08345c0a72 sysutils/atitvout/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/atitvout/patches/patch-ab        Sat Dec 18 13:18:13 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2004/12/18 13:18:13 xtraeme Exp $
+
+--- test.sh.orig       2004-12-18 14:12:20.000000000 +0100
++++ test.sh    2004-12-18 14:12:44.000000000 +0100
+@@ -1,8 +1,8 @@
+-#!/bin/bash
++#!/bin/sh
+ 
+ testit () {
+       echo "TEST: Running 'atitvout $FLAG $1' ..."
+-      ./atitvout $FLAG $1
++      @PREFIX@/sbin/atitvout $FLAG $1
+       echo "TEST: ... finished. Return value is $?. Please wait 3 seconds."
+       echo
+       sleep 3



Home | Main Index | Thread Index | Old Index