pkgsrc-Bugs archive

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

Re: pkg/39806: net/hobbitmon builds incorrect (and uncorrected) perl path into script



On Sun, Oct 26, 2008 at 10:00:01AM +0000, kre%munnari.OZ.AU@localhost wrote:
 > ERROR: [check-interpreter.mk] The interpreter "/usr/bin/perl" of 
 > "/usr/pkg/hobbit/cgi-bin/maint.pl" does not exist.
 > [...]
 >      I think there's some pkgsrc magic for fixing things like this.
 >      I expect it just needs to be turned on by someone who knows how.

This ought to do the trick (but I haven't tested it):

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/hobbitmon/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    18 Jan 2008 05:08:42 -0000      1.22
+++ Makefile    26 Oct 2008 19:17:09 -0000
@@ -3,7 +3,7 @@
 
 DISTNAME=      hobbit-4.0-beta6
 PKGNAME=       hobbit-4.0b6
-PKGREVISION=   11
+PKGREVISION=   12
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=hobbitmon/}
 
@@ -14,7 +14,8 @@
 DEPENDS+=      fping>2:../../net/fping
 
 HAS_CONFIGURE= YES
-USE_TOOLS+=    gmake
+USE_TOOLS+=    gmake perl:run
+REPLACE_PERL+= hobbitd/maint.pl.DIST
 INSTALL_TARGET=        setup
 
 .include "../../mk/bsd.prefs.mk"


-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index