"Rod Whitworth" <[email protected]> writes:

> I sent the message below to misc@ but obviously no-one there runs
> Hiawatha.
> ===
> Installed from my ISP's mirror.
>
> Starting hiawatha results in:
> Warning: can't write PID file /usr/local/var/run/hiawatha.pid.
>
> There is no file of that name found by locate.
> There is no directory var/run in /usr/local/
>
> hiawatha runs seemly ok other than the above.
>
> Any clues?
> ===
>
> Maybe nobody runs Hiawatha?

Looks like nobody bothered to update it to the latest version, 9.12.
Even though the current version embeds polarssl-1.2.8 which is affected
by a DoS, according to

  
https://tls.mbed.org/tech-updates/security-advisories/polarssl-security-advisory-2014-02

> I can't see how I could have caused the problem:
> I did: pkg_add hiawatha
> no problem reported
> started hiawatha
> error message appears
> hiawatha is running undaunted...
> no pid file anywhere that I can see
>
> Maybe the PID is not needed? But why would the error message appear?

The pid is probably not needed.  Hiawatha doesn't seem to bother
cleaning it up after exiting.  Anyway, here's a diff for 5.6 that puts
the pidfile in /var/run.

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/hiawatha/Makefile,v
retrieving revision 1.38
diff -u -p -r1.38 Makefile
--- Makefile    26 Oct 2013 20:42:57 -0000      1.38
+++ Makefile    23 Feb 2015 22:08:16 -0000
@@ -23,6 +23,7 @@ CONFIGURE_ARGS=       -DWEBROOT_DIR="/var/hiaw
                -DWORK_DIR="/var/db/hiawatha" \
                -DCONFIG_DIR="${SYSCONFDIR}/hiawatha" \
                -DLOG_DIR="/var/log/hiawatha" \
+               -DPID_DIR="/var/run/" \
                -DCMAKE_INSTALL_MANDIR="${PREFIX}/man" \
                -DENABLE_XSLT=ON
 
@@ -36,6 +37,5 @@ pre-configure:
 post-install:
        mv ${DESTDIR}/etc/hiawatha/ ${PREFIX}/share/examples/hiawatha/
        mv ${DESTDIR}/var/hiawatha/index.html ${PREFIX}/share/examples/hiawatha/
-       rm -r ${PREFIX}/var/
 
 .include <bsd.port.mk>


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to