Bug 61974 - Inn 2.4.1 Port doesn't handle the "--with-etc-dir" option properly -> Inn unusable
Summary: Inn 2.4.1 Port doesn't handle the "--with-etc-dir" option properly -> Inn unu...
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: Clement Laforet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 01:00 UTC by Jochen Gensch
Modified: 2004-02-26 16:21 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 Jochen Gensch 2004-01-27 01:00:35 UTC
In Inn you can use the option "--with-etc-dir=PATH" to set a different etc dir for the config files. I used "--with-etc-dir=/usr/local/etc/inn" by adding this to the Makefile of /usr/ports/news/inn. 
However there occur a few errors if you use this option. The first thing is, it stops the installation process started by a "portinstall inn" as follows (a make install clean nearly produces the same output):

If you install Inn 2.4.1 with the option "--with-etc-dir=PATH" by adding this line to the Makefile it stops at install time with the follwing last output (tested on 3 Systems)

Checking for configuration files
find: /usr/local/news/etc/: No such file or directory
Creating empty history database...
makedbz: open of /usr/local/etc/inn/inn.conf failed: No such file or directory
mv: rename history.n.dir to history.dir: No such file or directory
*** Error code 1

Stop in /usr/ports/news/inn.
*** Error code 1

Stop in /usr/ports/news/inn.
        ! news/inn      (install error)



So first it looks for the default etc dir /usr/local/news/etc, what isn't correct at all. Then it look at the right place again:

"makedbz: open of /usr/local/etc/inn/inn.conf failed: No such file or directory" but the conf files were installed incorrectly -> they all have the ending ".dist", which causes makedbz not the find the file "inn.conf" because its name is "inn.conf.dist". 
Even if you rename the ".dist" files manually and install inn again... then it will finish installation, but it still doesn't start because it still seems to expect the conf files under the default etc dir (/usr/local/news/etc)

How-To-Repeat: Use a system, which hasn't installed inn, yet or remove any previously installes inn files, add "--with-etc-dir=/usr/local/etc" to the proper place in the inn Makefile and run a "portinstall inn" or "make install clean". The last way doesn't provide that much information when it stops installing.
Comment 1 Clement Laforet freebsd_committer freebsd_triage 2004-01-27 01:31:48 UTC
Class Changed
From-To: sw-bug->change-request

This is a feature request. 


Comment 2 Clement Laforet freebsd_committer freebsd_triage 2004-01-27 01:31:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

My port.
Comment 3 Clement Laforet freebsd_committer freebsd_triage 2004-02-26 16:21:04 UTC
State Changed
From-To: open->closed

WITH_STANDARD_ETC knob has been added to do this. 
Thanks!