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

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

            Bug ID: 191706
           Summary: [ staging ] net-mgmt/routers2
           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/routers2 require staging or will be removed

Fix:
Patch is attached. 

--- net-mgmt/routers2/Makefile.orig    2014-07-07 18:22:25.000000000 +0200
+++ net-mgmt/routers2/Makefile    2014-07-07 18:28:55.000000000 +0200
@@ -28,7 +28,8 @@

 NO_BUILD=    YES

-NO_STAGE=    yes
+PLIST_DIRSTRY+=    /var/db/rrdtool
+
 post-patch:
     @${RM} ${WRKSRC}/extras/targetnames/BER.pm
${WRKSRC}/extras/targetnames/SNMP_*.pm
     for file in routers2.cgi.pl routers2.conf ; do \
@@ -36,22 +37,22 @@
     done

 do-install:
-        ${MKDIR} -m 755 ${PREFIX}/www/routers2
-        ${MKDIR} -m 755 ${PREFIX}/www/routers2/rrdicons
-        ${MKDIR} -m 755 ${PREFIX}/www/routers2/graphs
-        ${MKDIR} -m 755 /var/db/rrdtool
-        ${CHOWN} ${WWWOWN}:${WWWGRP} /var/db/rrdtool
-        ${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/www/routers2/graphs
+        ${MKDIR} -m 755 ${STAGEDIR}${PREFIX}/www/routers2
+        ${MKDIR} -m 755 ${STAGEDIR}${PREFIX}/www/routers2/rrdicons
+        ${MKDIR} -m 755 ${STAGEDIR}${PREFIX}/www/routers2/graphs
+        ${MKDIR} -m 755 ${STAGEDIR}/var/db/rrdtool
+        ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}/var/db/rrdtool
+        ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/www/routers2/graphs

 .if !defined(NOPORTDOCS)
-        ${MKDIR} -m 755 ${DOCSDIR}
+        ${MKDIR} -m 755 ${STAGEDIR}${DOCSDIR}
         for file in CHANGES README doc/* ; do \
-            ${INSTALL_DATA} ${WRKSRC}/$$file ${DOCSDIR}; \
+            ${INSTALL_DATA} ${WRKSRC}/$$file ${STAGEDIR}${DOCSDIR}; \
         done
 .endif
-        ${INSTALL_DATA} ${WRKSRC}/routers2.conf
${PREFIX}/etc/routers2.conf.sample
-        ${INSTALL_DATA} ${WRKSRC}/rrdicons/* ${PREFIX}/www/routers2/rrdicons
-        ${INSTALL_SCRIPT} ${WRKSRC}/routers2.cgi.pl
${PREFIX}/www/routers2/routers2.cgi
+        ${INSTALL_DATA} ${WRKSRC}/routers2.conf
${STAGEDIR}${PREFIX}/etc/routers2.conf.sample
+        ${INSTALL_DATA} ${WRKSRC}/rrdicons/*
${STAGEDIR}${PREFIX}/www/routers2/rrdicons
+        ${INSTALL_SCRIPT} ${WRKSRC}/routers2.cgi.pl
${STAGEDIR}${PREFIX}/www/routers2/routers2.cgi
 #        for file in mrtg cfgmaker indexmaker; do \
 #            ${INSTALL_SCRIPT} ${WRKSRC}/bin/$$file ${PREFIX}/bin/; \
 #        done
--- net-mgmt/routers2/pkg-plist.orig    2014-02-03 21:05:51.000000000 +0100
+++ net-mgmt/routers2/pkg-plist    2014-07-07 18:32:49.000000000 +0200
@@ -1,4 +1,6 @@
+@unexec if cmp -s %D/etc/routers2.conf %D/etc/routers2.conf.sample ; then rm
-f %D/etc/routers2.conf ; fi
 etc/routers2.conf.sample
+@exec if [ ! -f %D/etc/routers2.conf ]; then cp -p %D/%F %B/routers2.conf; fi
 www/routers2/routers2.cgi
 www/routers2/rrdicons/3com-sm.gif
 www/routers2/rrdicons/aix-sm.gif

-- 
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-191706-13>