Date: Fri, 31 May 2013 13:43:02 GMT From: Mark Felder <feld@feld.me> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/179145: [PATCH] net-mgmt/devmon: fix pidfile issues Message-ID: <201305311343.r4VDh2qi037747@oldred.FreeBSD.org> Resent-Message-ID: <201305311350.r4VDo7Nv060756@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305311343.r4VDh2qi037747>