Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2001 23:44:59 +0900 (JST)
From:      sanewo@ba2.so-net.ne.jp
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        mharo@freebsd.org
Subject:   ports/28177: installation of www/analog port always overwrites analog.cfg
Message-ID:  <200106151444.f5FEixr83674@ba2.so-net.ne.jp>

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

>Number:         28177
>Category:       ports
>Synopsis:       installation of www/analog port always overwrites analog.cfg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 15 07:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Takanori Saneto
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
an individfual
>Environment:
System: FreeBSD muse.sanewo 4.3-STABLE FreeBSD 4.3-STABLE #0: Wed May 23 13:45:14 JST 2001 sanewo@muse.sanewo:/export/usr.obj/usr/src/sys/MUSE i386


>Description:

When installing analog from ports, existing /usr/local/etc/analog.cfg is overwritten.
In Makefie, existence of $PREFIX/etc/analog.cfg is checked, but it does not work as expected,
because $PREFIX is not defined until <bsd.port.mk> is included.

>How-To-Repeat:

1. Make sure you have /usr/local/etc/analog.cfg
2. cd /usr/ports/www/analog; make install
3. see /usr/local/etc/analog.cfg is overwritten.

>Fix:

Following patch fixes the problem.

--- Makefile.orig	Fri Jun 15 23:30:41 2001
+++ Makefile	Fri Jun 15 23:30:59 2001
@@ -25,6 +25,8 @@
 MAN1=		analog.1
 ALL_TARGET=	analog
 
+.include <bsd.port.pre.mk>
+
 do-install:
 	${MKDIR} ${PREFIX}/share/analog/lang
 	${MKDIR} ${PREFIX}/www/data/images
@@ -41,4 +43,4 @@
 .endif
 	${INSTALL_MAN} ${WRKSRC}/analog.man ${PREFIX}/man/man1/analog.1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>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?200106151444.f5FEixr83674>