Bug 183670 - net-mgmt/xymon-client: /usr/local/www/xymon/client/{tmp,logs,ext} directory is not created
Summary: net-mgmt/xymon-client: /usr/local/www/xymon/client/{tmp,logs,ext} directory i...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 06:00 UTC by h-fujishima
Modified: 2013-11-06 04:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description h-fujishima 2013-11-05 06:00:01 UTC
/usr/local/www/xymon/client/{tmp,logs,ext} directory is not created

root@locallhost:/usr/ports/net-mgmt/xymon-client # make install
===>  Building package for xymon-client-4.3.12
Creating package /usr/ports/net-mgmt/xymon-client/work/xymon-client-4.3.12.tbz
Registering depends:.
Creating bzip'd tar ball in '/usr/ports/net-mgmt/xymon-client/work/xymon-client-4.3.12.tbz'
===>  Installing for xymon-client-4.3.12
===>  Checking if net-mgmt/xymon-client already installed
===> Creating users and/or groups.
Using existing group 'xymon'.
Using existing user 'xymon'.
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/www/xymon/client/bin/msgcache

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/xymon-client

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://xymon.sourceforge.net/
root@locallhost:/usr/ports/net-mgmt/xymon-client # /usr/local/etc/rc.d/xymon-client onestart
Cannot write to the /usr/local/www/xymon/client/logs directory
root@locallhost:/usr/ports/net-mgmt/xymon-client # make deinstall
===>  Deinstalling for net-mgmt/xymon-client
===>   Deinstalling xymon-client-4.3.12
pkg_delete: file '/usr/local/www/xymon/client/tmp' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/www/xymon/client/tmp'
pkg_delete: file '/usr/local/www/xymon/client/logs' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/www/xymon/client/logs'
pkg_delete: file '/usr/local/www/xymon/client/ext' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/www/xymon/client/ext'
==> You should manually remove the "xymon" user.
pkg_delete: couldn't entirely delete package `xymon-client-4.3.12'
(perhaps the packing list is incorrectly specified?)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-05 06:00:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->feld

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-11-05 14:00:13 UTC
Author: feld
Date: Tue Nov  5 14:00:05 2013
New Revision: 332848
URL: http://svnweb.freebsd.org/changeset/ports/332848

Log:
  Fix missing dirs for pkg_tools users
  Convert a gmake to ${GMAKE}
  
  PR:		ports/183670
  Approved by:	crees (mentor)

Modified:
  head/net-mgmt/xymon-client/Makefile
  head/net-mgmt/xymon-client/pkg-plist

Modified: head/net-mgmt/xymon-client/Makefile
==============================================================================
--- head/net-mgmt/xymon-client/Makefile	Tue Nov  5 13:24:00 2013	(r332847)
+++ head/net-mgmt/xymon-client/Makefile	Tue Nov  5 14:00:05 2013	(r332848)
@@ -2,6 +2,7 @@
 
 PORTNAME=	xymon
 PORTVERSION=	4.3.12
+PORTREVISION=	1
 CATEGORIES=	net-mgmt www
 MASTER_SITES=	SF/xymon/Xymon/${PORTVERSION}
 PKGNAMESUFFIX=	-client${PKGNAMESUFFIX2}
@@ -21,7 +22,7 @@ XYMONHOSTIP?=	127.0.0.1
 
 MAKE_JOBS_UNSAFE=	yes
 USES=		gmake
-CONFIGURE_ENV=	MAKE=gmake
+CONFIGURE_ENV=	MAKE=${GMAKE}
 MAKE_ENV+=	XYMONUSER="${XYMONUSER}"
 MAKE_ENV+=	XYMONHOSTIP="${XYMONHOSTIP}"
 MAKE_ENV+=	INSTALLROOT="${STAGEDIR}"

Modified: head/net-mgmt/xymon-client/pkg-plist
==============================================================================
--- head/net-mgmt/xymon-client/pkg-plist	Tue Nov  5 13:24:00 2013	(r332847)
+++ head/net-mgmt/xymon-client/pkg-plist	Tue Nov  5 14:00:05 2013	(r332848)
@@ -34,6 +34,9 @@
 %%WWWDIR%%/client/local/README
 %%WWWDIR%%/client/runclient.sh
 @exec chown -R %%XYMONUSER%% %D/%%WWWDIR%%/client
+@exec mkdir %D/%%WWWDIR%%/client/ext
+@exec mkdir %D/%%WWWDIR%%/client/logs
+@exec mkdir %D/%%WWWDIR%%/client/tmp
 @dirrm %%WWWDIR%%/client/tmp
 @dirrm %%WWWDIR%%/client/logs
 @dirrm %%WWWDIR%%/client/local
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Mark Felder freebsd_committer freebsd_triage 2013-11-05 14:00:39 UTC
State Changed
From-To: open->closed

Fix committed. Sorry for the inconvenience.