ports/179145: [PATCH] net-mgmt/devmon: fix pidfile issues
Mark Felder
feld at feld.me
Fri May 31 13:50:07 UTC 2013
>Number: 179145
>Category: ports
>Synopsis: [PATCH] net-mgmt/devmon: fix pidfile issues
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri May 31 13:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mark Felder
>Release:
>Organization:
>Environment:
>Description:
Previous update to devmon was missing my fixes to the default pidfile location, required because devmon runs as its own user. The rc script is already expecting it in /var/run/devmon/. This makes the example config show /var/run/devmon/ as the default/recommended path, and makes the daemon actually use /var/run/devmon/ if the config file isn't defining PIDFILE
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 319490)
+++ Makefile (working copy)
@@ -3,7 +3,7 @@
PORTNAME= devmon
DISTVERSION= 0.3.1-beta1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
@@ -32,6 +32,9 @@
USE_MYSQL= yes
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|/var/run/devmon.pid|/var/run/devmon/devmon.pid|g' ${WRKSRC}/devmon.cfg ${WRKSRC}/modules/dm_config.pm
+
pre-install:
(cd ${WRKSRC} && ${MV} devmon.cfg devmon.cfg.dist)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list