Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 1999 11:34:01 +0200 (CEST)
From:      nick.hibma@jrc.it
To:        FreeBSD-gnats-submit@freebsd.org, nick.hibma@jrc.it
Subject:   ports/12198: [PATCH] www/gn references /usr/local/ instead of PREFIX
Message-ID:  <199906140934.LAA74198@elpc36.jrc.it>

next in thread | raw e-mail | index | archive | help

>Number:         12198
>Category:       ports
>Synopsis:       [PATCH] www/gn references /usr/local/ instead of PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 14 02:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hibma
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

ports as of yesterday 16:00 (13/06/99)

>Description:

The port is not PREFIX independent at the moment.
 
>How-To-Repeat:

cd /usr/ports/www/gn
make PREFIX=/this/is/another/dir/than/usr/local 


>Fix:

 --- /usr/ports/www/gn/Makefile.orig	Sat Jun  5 14:59:00 1999
+++ /usr/ports/www/gn/Makefile	Sat Jun  5 15:01:11 1999
@@ -19,7 +19,7 @@
 WAISDIR=	${PORTSDIR}/net/wais/work/freeWAIS-0.5
 
 INETD_CONF=	/etc/inetd.conf
-CONF=	'	stream	tcp	nowait	nobody	/usr/local/libexec/gn	gn'
+CONF=	'	stream	tcp	nowait	nobody	${PREFIX}/libexec/gn	gn'
 
 pre-build:
 	@ln -fs ${WAISDIR}/include ${WRKSRC}/waisgn/ir
@@ -45,7 +45,7 @@
 	  fi; \
 	  tar -cf - -C ${WRKSRC} gnroot libexec bin etc | tar xpf - && \
 		(cd gnroot; ${WRKSRC}/bin/mkcache -r); \
-	  awk '$$1 ~ /#*gopher/ && $$6 == "/usr/local/libexec/gn" { exit 1 }' \
+	  awk '$$1 ~ /#*gopher/ && $$6 == "${PREFIX}/libexec/gn" { exit 1 }' \
 		${INETD_CONF} || { \ echo '#'gopher${CONF} >>${INETD_CONF}
 	  }
 


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906140934.LAA74198>