ports/140566: [PATCH] Change path of configuration file for net/nload

Denny Lin dennylin93 at cnmc32.hs.ntnu.edu.tw
Sun Nov 15 11:10:02 UTC 2009


>Number:         140566
>Category:       ports
>Synopsis:       [PATCH] Change path of configuration file for net/nload
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 15 11:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Denny Lin
>Release:        FreeBSD 7.2-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD cnmc32.hs.ntnu.edu.tw 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Mon Oct 26 19:41:45 CST 2009 root at cnmc32.hs.ntnu.edu.tw:/usr/obj/usr/src/sys/CNMC32 amd64


	
>Description:
I'm not really sure if these patches are useful, but I sent them anyway.

The default configuration file for net/nload is /etc/nload.conf, but this is a Linuxism. I modified the path to /usr/local/etc/nload.conf in the source and man page. This keeps it consistent with ports.
	
>How-To-Repeat:
	
>Fix:

	

--- patch-docs-nload.1.in begins here ---
--- docs/nload.1.in.orig	2009-11-15 18:56:47.000000000 +0800
+++ docs/nload.1.in	2009-11-15 18:57:12.000000000 +0800
@@ -164,7 +164,7 @@
 .SH FILES
 
 .TP
-.I /etc/nload.conf
+.I /usr/local/etc/nload.conf
 System-wide configuration file.
 
 .TP
--- patch-docs-nload.1.in ends here ---

--- patch-src-main.cpp begins here ---
--- src/main.cpp.orig	2009-11-15 18:56:58.000000000 +0800
+++ src/main.cpp	2009-11-15 18:57:42.000000000 +0800
@@ -413,7 +413,7 @@
                             SettingStore::writeToFile(homeDir + "/.nload");
                             break;
                         case KEY_F(6):
-                            SettingStore::readFromFile("/etc/nload.conf");
+                            SettingStore::readFromFile("/usr/local/etc/nload.conf");
                             SettingStore::readFromFile(homeDir + "/.nload");
                             break;
                         case 'q':
--- patch-src-main.cpp ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list