summaryrefslogtreecommitdiffstats
path: root/src/detection/packages/packages_obsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detection/packages/packages_obsd.c')
-rw-r--r--src/detection/packages/packages_obsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/detection/packages/packages_obsd.c b/src/detection/packages/packages_obsd.c
new file mode 100644
index 0000000..c7b098e
--- /dev/null
+++ b/src/detection/packages/packages_obsd.c
@@ -0,0 +1,9 @@
+#include "packages.h"
+
+#include "common/io.h"
+
+void ffDetectPackagesImpl(FFPackagesResult* result, FFPackagesOptions* options) {
+ if (FF_PACKAGES_IS_ENABLED(options, PKG)) {
+ result->pkg = ffPackagesGetNumElements(FASTFETCH_TARGET_DIR_ROOT "/var/db/pkg", true);
+ }
+}