From 44ceece354c50795ba04e450b9269e6e3f92dd34 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 6 Mar 2018 14:11:53 +0100 Subject: geoip: store GeoIP files in $(PREFIX)/share by default The /etc directory shouldn't contain non-human-readable files. netsniff-ng (when called with the '-U' option) currently installs the GeoIP database files to /etc/netsniff-ng by default. Change this to install them to $(PREFIX)/share/netsniff-ng instead, which is conformant to the FHS [1]. [1] https://wiki.debian.org/FilesystemHierarchyStandard Also create the respective directory in the 'make install' target. Fixes #187 Signed-off-by: Tobias Klauser --- Cmds | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Cmds') diff --git a/Cmds b/Cmds index 1b2719a..e841d26 100644 --- a/Cmds +++ b/Cmds @@ -37,6 +37,8 @@ endif INST = echo -e " INST\t$(1)" && install -d $(2) && \ install --mode=644 -DC $(1) $(2)/$(shell basename $(1)) +INSTD = echo -e " INSTD\t$(1)" && install -d $(1) + # Determine wheter origin of PREFIX is "file" or "command line" ifeq ("$(origin PREFIX)", "$(filter $(origin PREFIX), file command line)") INSTX = echo -e " INST\t$(1)" && install -d $(2) && \ -- cgit v1.2.3-54-g00ecf