head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.04.08.16.08.48; author sborrill; state Exp; branches; next ; commitid Lf1nyHBjMisbLaBG; desc @@ 1.1 log @vnstat: bump PKGREVISION and improve build Don't need gmake any longer. Its own Makefile now installs correctly, so don't roll our own. Move example configuration file to subdir. Move vnstatd daemon to sbin, from bin. Remove incorrect path to check for a config file. @ text @$NetBSD$ Avoid a broken config file path after converting /etc to PKG_SYSCONFDIR --- src/cfg.c.orig 2026-04-08 16:25:51.959370085 +0100 +++ src/cfg.c 2026-04-08 16:26:06.796945373 +0100 @@@@ -484,8 +484,6 @@@@ strncpy_nt(cfg.cfgfile, buffer, 512); } else if ((*fd = fopen("/etc/vnstat.conf", "r")) != NULL) { snprintf(cfg.cfgfile, 512, "/etc/vnstat.conf"); - } else if ((*fd = fopen("/usr/local/etc/vnstat.conf", "r")) != NULL) { - snprintf(cfg.cfgfile, 512, "/usr/local/etc/vnstat.conf"); } else { if (debug) printf("Config file: none\n"); @