Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jul 2014 17:54:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191715] New: [ staging ] net-mgmt/nagvis
Message-ID:  <bug-191715-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191715

            Bug ID: 191715
           Summary: [ staging ] net-mgmt/nagvis
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: Normal
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dan@obluda.cz

net-mgmt/nagvis require staging or will be removed

Fix:
Patch is attached. 

Note the check-plist complain abount missing entries in pkg-plist:

@dirrmtry %%WWWDIR%%/etc/automaps
@dirrmtry %%WWWDIR%%/share/var
@dirrmtry %%WWWDIR%%/var/tmpl/cache
@dirrmtry %%WWWDIR%%/var/tmpl/compile
@dirrmtry %%WWWDIR%%/var/tmpl
@dirrmtry %%WWWDIR%%/var

The directories in question are not created during package installation, but 
may (or may not) be created during program run.  They should be deleted 
(if empty) on uninstall ...

--- net-mgmt/nagvis/Makefile.orig    2014-07-07 19:41:08.000000000 +0200
+++ net-mgmt/nagvis/Makefile    2014-07-07 19:45:03.000000000 +0200
@@ -24,7 +24,6 @@
 USE_PHP=    gd gettext mbstring session json pdo pdo_sqlite
 WANT_PHP_WEB=    yes

-NO_STAGE=    yes
 .include <bsd.port.options.mk>

 WWW_OWNER?=    ${WWWOWN}
@@ -36,6 +35,8 @@
         DIRMODE=${DIRMODE} FILEMODE=${FILEMODE}
 SUB_FILES+=    pkg-install pkg-deinstall

+PLIST_SUB+=    WWWDIR="${WWWDIR}"
+
 .if ${PORT_OPTIONS:MNDO2DB}
 USE_PHP+=    mysql
 RUN_DEPENDS+=    ndo2db-3x:${PORTSDIR}/net-mgmt/ndoutils
@@ -60,7 +61,7 @@
         ${WRKSRC}/etc/nagvis.ini.php-sample

 do-install:
-    @( cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR}/ )
+    @( cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}/ )

 post-install:
     @${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191715-13>