Bug 191392 - www/apache24 does not install config files
Summary: www/apache24 does not install config files
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Olli Hauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 08:56 UTC by Robert Schulze
Modified: 2014-07-20 10:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Schulze 2014-06-26 08:56:51 UTC
When installing www/apache24 (2.4.9-r3) from ports, no config files get installed. I've checked on FreeBSD-8.4-p12 and FreeBSD-10.0-p2. The files httpd.conf, magic, mime.types, extra/* are even missing from the stage dir but are installed below /usr/local/share/examples/apache24.
Comment 1 Olli Hauer freebsd_committer freebsd_triage 2014-06-29 15:04:10 UTC
Hi Robert,

the files are installed/removed with the following lines from pkg-plist (sample line for mime.types)

...
@unexec if cmp -s %D/%%ETCDIR%%/mime.types %D/%%EXAMPLESDIR%%/mime.types; then rm -f %D/%%ETCDIR%%/mime.types; fi
%%EXAMPLESDIR%%/mime.types
@exec [ -f %D/%%ETCDIR%%/mime.types ] || cp %D/%%EXAMPLESDIR%%/mime.types %D/%%ETCDIR%%/mime.types


Without this lines existing files would be overwritten, so it is correct to have them during package building only in the share/example/apache24 directory.
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2014-07-13 22:40:00 UTC
Hi Robert,

I'm not sure if your question was answered or if something went wrong on your system.
Can you give a sort feedback, else I will close the PR end of the next week.
Comment 3 Robert Schulze 2014-07-14 08:36:42 UTC
I cannot reproduce this on a recently updated system, bug can be closed.