Bug 125655 - Incorrect startup variable in mail/up-imapproxy rc.d/imapproxyd.sh
Summary: Incorrect startup variable in mail/up-imapproxy rc.d/imapproxyd.sh
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: Martin Blapp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 23:30 UTC by Igor Roshchin
Modified: 2010-01-02 22:33 UTC (History)
0 users

See Also:


Attachments
file.diff (385 bytes, patch)
2008-07-15 23:30 UTC, Igor Roshchin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Roshchin 2008-07-15 23:30:01 UTC
	/usr/local/etc/rc.d/imapproxyd.sh incorrectly uses imapproxyd_conf
	variable that is not being used by /etc/rc.subr:
	# imapproxyd_conf (file):       Set location of conf file.
	#                               Default is "/usr/local/etc/imapproxyd.conf"
	Hence, this config file location is not being read by the program.
	As a result, the program looks for the hardcoded default:
	/etc/imapproxy.conf
	As far as I can tell, /etc/rc.subr does not contain ${name}_conf
	even on 6.x and 7.x systems (rev=1.86)
	One of the possibilities to correct this is to add 
	imapproxyd_flags="-f ${imapproxyd_conf}"

Fix: Here is the patch:
How-To-Repeat: 	rm /etc/imapproxy.conf 
	create /usr/local/etc/imapproxyd.conf
	reinstall port and try to start it, - it will not start.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-15 23:30:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mbr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Igor Roshchin 2008-12-25 16:01:06 UTC
I just tried to build the same port on 7.0-RELEASE and the (mis-)behavior 
is still there (obviously).


The patch is simple. Please, review it and commit.
Comment 3 Martin Blapp freebsd_committer freebsd_triage 2010-01-02 22:33:20 UTC
State Changed
From-To: open->closed

Fixed via autoconf, thanks anyway