diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2018-03-06 14:11:53 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2018-03-06 14:15:57 +0100 |
commit | 44ceece354c50795ba04e450b9269e6e3f92dd34 (patch) | |
tree | b42200519bd20266990ac0db97b780e7de974129 /Cmds | |
parent | b90d055be5dd30212ebd0c0a810a7f020df70321 (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'Cmds')
-rw-r--r-- | Cmds | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) && \ |