[Bug 191715] New: [ staging ] net-mgmt/nagvis

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 7 17:54:16 UTC 2014


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 at FreeBSD.org
          Reporter: dan at 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.


More information about the freebsd-ports-bugs mailing list