Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 22:01:05 +0300 (EEST)
From:      Esa Karkkainen <ejk@iki.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Esa Karkkainen <ejk@iki.fi>, barner@FreeBSD.org
Subject:   ports/97977: mail/fetchmail: files/fetchmail.in isn't PREFIX "clean"
Message-ID:  <200605261901.k4QJ151d069826@thunderbolt.my.domain>
Resent-Message-ID: <200605261910.k4QJALQi073455@freefall.freebsd.org>

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

>Number:         97977
>Category:       ports
>Synopsis:       mail/fetchmail: files/fetchmail.in isn't PREFIX "clean"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 19:10:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Esa Karkkainen
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
Is in state of disintegration
>Environment:

System: FreeBSD FreeBSD 6.1-RELEASE #51: Sat May 6 21:46:30 EEST 2006
Ports tree cvsupped at Fri May 26 19:19:11 EEST 2006 

>Description:

File ports/mail/fetchmail/files/fetchmail.in partly assumes that
PREFIX is /usr/local.

>How-To-Repeat:

# make PREFIX=/var/tmp/fetchmail install
[ snip ] 
===>   Registering installation for fetchmail-6.3.4_2
# fgrep '/usr/local' /var/tmp/fetchmail/etc/rc.d/fetchmail*
        fetchmail_script=/usr/local/etc/rc.d/fetchmail
        fetchmail_script=/usr/local/etc/rc.d/fetchmail.sh
# 

>Fix:

diff -ruN fetchmail.orig/files/fetchmail.in fetchmail/files/fetchmail.in
--- fetchmail.orig/files/fetchmail.in	Fri May 26 19:18:06 2006
+++ fetchmail/files/fetchmail.in	Fri May 26 21:47:08 2006
@@ -57,9 +57,9 @@
 awaken_cmd="fetchmail_awaken"
 
 if [ -f %%PREFIX%%/etc/rc.d/fetchmail ]; then
-        fetchmail_script=/usr/local/etc/rc.d/fetchmail
+        fetchmail_script=%%PREFIX%%/etc/rc.d/fetchmail
 elif [ -f %%PREFIX%%/etc/rc.d/fetchmail.sh ]; then
-        fetchmail_script=/usr/local/etc/rc.d/fetchmail.sh
+        fetchmail_script=%%PREFIX%%/etc/rc.d/fetchmail.sh
 fi
 
 # read settings, set default values
>Release-Note:
>Audit-Trail:
>Unformatted:



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