Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 12:38:35 GMT
From:      Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/135504: mail/postfix-policyd-weight -- Fix prefix
Message-ID:  <200906121238.n5CCcZxq062395@www.freebsd.org>
Resent-Message-ID: <200906121240.n5CCe3D2098007@freefall.freebsd.org>

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

>Number:         135504
>Category:       ports
>Synopsis:       mail/postfix-policyd-weight -- Fix prefix
>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 Jun 12 12:40:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Martin Tournoij
>Release:        
>Organization:
>Environment:
>Description:
rc startup script has /usr/local hard-coded.
>How-To-Repeat:

>Fix:
--- postfix-policyd-weight/files/policyd-weight.in.orig 2009-06-12 23:32:20.000000000 +0000
+++ postfix-policyd-weight/files/policyd-weight.in      2009-06-12 23:32:39.000000000 +0000
@@ -29,16 +29,16 @@
     *) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;;
 esac

-command="/usr/local/bin/policyd-weight"
+command="%%PREFIX%%/bin/policyd-weight"
 pidfile=/var/run/policyd-weight.pid

 policyd_weight_start() {
-    /usr/local/bin/policyd-weight start
+    %%PREFIX%%/bin/policyd-weight start
 }

 policyd_weight_stop() {
     echo "Stopping $name"
-    /usr/local/bin/policyd-weight -k stop
+    %%PREFIX%%/bin/policyd-weight -k stop
 }

 run_rc_command "$1"


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



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