SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
net/rtg/patches/patch-src_rtg_h
Normal file
30
net/rtg/patches/patch-src_rtg_h
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: src/rtg.h
|
||||
--- src/rtg.h.orig
|
||||
+++ src/rtg.h
|
||||
@@ -26,8 +26,8 @@
|
||||
/* Define CONFIG_PATHS places to search for the rtg.conf file. Note
|
||||
that RTG_HOME, as determined during autoconf is one path */
|
||||
#define CONFIG_PATHS 3
|
||||
-#define CONFIG_PATH_1 ""
|
||||
-#define CONFIG_PATH_2 "/etc/"
|
||||
+#define CONFIG_PATH_1 "/etc/rtg/"
|
||||
+#define CONFIG_PATH_2 ""
|
||||
|
||||
/* Defaults */
|
||||
#define DEFAULT_CONF_FILE "rtg.conf"
|
||||
@@ -37,6 +37,7 @@
|
||||
#define DEFAULT_LOWSKEWSLOP .5
|
||||
#define DEFAULT_OUT_OF_RANGE 93750000000ull
|
||||
#define DEFAULT_DB_HOST "localhost"
|
||||
+#define DEFAULT_DB_PORT 3306
|
||||
#define DEFAULT_DB_DB "rtg"
|
||||
#define DEFAULT_DB_USER "snmp"
|
||||
#define DEFAULT_DB_PASS "rtgdefault"
|
||||
@@ -76,6 +77,7 @@ typedef struct config_struct {
|
||||
unsigned int interval;
|
||||
unsigned long long out_of_range;
|
||||
char dbhost[80];
|
||||
+ unsigned int dbport;
|
||||
char dbdb[80];
|
||||
char dbuser[80];
|
||||
char dbpass[80];
|
Loading…
Add table
Add a link
Reference in a new issue