Created attachment 153539 [details] Patch for net-mgmt/pandorafms_* Update to Pandora FMS 5.1SP2 Deleted Files: - net-mgmt/pandorafms_console/files/patch-WLB-2014110100
Created attachment 153540 [details] poudriere testport log (net-mgmt/pandorafms_agent)
Created attachment 153541 [details] poudriere testport log (net-mgmt/pandorafms_console)
Created attachment 153542 [details] poudriere testport log (net-mgmt/pandorafms_server)
everything looks okay (and thanks for the logs), but I have a question about this line: @exec [ -e %B/include/config.php ] || cp -p %D/%F %B/install.php why did you keep @exec rather than use @sample ?
Because the line you mentioned does activate installer if configuration file does not exist, not install sample configuration file.
mv install.php to ${STAGEDIR}${PREFIX}/include/config.php.sample in post-stage target. then @sample include/config.php should work right? if not, why not?
%F is "install.done" file listed at previous line, not include/config.php. I believe that I can't use @sample in this case.
okay, I sort of see what this port is doing -- a series of hacks to work around the fact that install.php and config.php can't be installed at the same time, but yet the port doesn't work without config.php which needs install.php to create it. yuck. Okay, I'll take your word for it this mess is the best way to handle the installation of this port.
you're right. After install Pandora FMS Console, we need run install.php for initial setup. include/config.php is generated by install.php and once initial configuration process is finished, we have to remove (or rename) install.php. See Pandora FMS install documentation for detail: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Installing#Console_Initial_Configuration Since listing "install.php" to pkg-plist cause plist error, pandorafms_console port installs "install.php" as "install.done" and create "install.php" from install.done as required.
It's embarrassing that nobody has picked this up yet. I'll take this out of pity. :)
A commit references this bug: Author: marino Date: Sun May 17 14:44:28 UTC 2015 New revision: 386617 URL: https://svnweb.freebsd.org/changeset/ports/386617 Log: net-mgmt/pandorafms_(agent|console|server): Upgrade version 5.1SP1 => 5.1SP2 PR: 198051 Submitted by: KIKUCHI Koichiro (maintainer) Changes: head/net-mgmt/pandorafms_agent/distinfo head/net-mgmt/pandorafms_console/distinfo head/net-mgmt/pandorafms_console/files/pandora_console.conf.in head/net-mgmt/pandorafms_console/files/patch-WLB-2014110100 head/net-mgmt/pandorafms_console/pkg-plist head/net-mgmt/pandorafms_server/bsd.pandora.mk head/net-mgmt/pandorafms_server/distinfo head/net-mgmt/pandorafms_server/pkg-plist head/net-mgmt/pandorafms_server/pkg-plist.spool
Thanks, They all passed poudriere on FreeBSD 9.1/amd64 fine too.