Bug 135504 - mail/postfix-policyd-weight -- Fix prefix
Summary: mail/postfix-policyd-weight -- Fix prefix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 13:40 UTC by Martin Tournoij
Modified: 2009-06-14 21:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tournoij 2009-06-12 13:40:03 UTC
rc startup script has /usr/local hard-coded.

Fix: 

-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"--pMU0kt7yEcEEnusIH4dtVwVf3jc6uNqyqdhUNlVVLwp7ZGIf
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-12 13:40:13 UTC
Maintainer of mail/postfix-policyd-weight,

Please note that PR ports/135504 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/135504

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-12 13:40:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Wesley Shields freebsd_committer freebsd_triage 2009-06-12 17:37:56 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 4 Robert Felber 2009-06-14 11:37:18 UTC
On Fri, Jun 12, 2009 at 12:40:13PM +0000, Edwin Groothuis wrote:
> Maintainer of mail/postfix-policyd-weight,
> 
> Please note that PR ports/135504 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/135504

Approved. Thanks.

-- 
    Robert Felber (PGP: 896CF30B)
    Munich, Germany
Comment 5 Wesley Shields freebsd_committer freebsd_triage 2009-06-14 21:25:22 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-06-14 21:25:27 UTC
wxs         2009-06-14 20:25:17 UTC

  FreeBSD ports repository

  Modified files:
    mail/postfix-policyd-weight/files policyd-weight.in 
  Log:
  - Don't hardcore prefix in RC script.
  
  PR:             ports/135504
  Submitted by:   Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
  Approved by:    Robert Felber <robtone@ek-muc.de> (maintainer)
  
  Revision  Changes    Path
  1.6       +3 -3      ports/mail/postfix-policyd-weight/files/policyd-weight.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"