--- software/freebsd-lib.pl.orig	2015-03-13 23:51:49 UTC
+++ software/freebsd-lib.pl
@@ -21,7 +21,7 @@
 
 sub use_pkg_ng
 {
-return 0 if (!-x "/usr/sbin/pkg");
+return 0 if (!-e "/var/db/pkg/local.sqlite");
 local @lines = split(/\n/, &backquote_command(
 			"/usr/sbin/pkg info 2>/dev/null </dev/null"));
 return @lines > 1 ? 1 : 0;
