geoip: store GeoIP files in $(PREFIX)/share by default
commit44ceece354c50795ba04e450b9269e6e3f92dd34
authorTobias Klauser <tklauser@distanz.ch>
Tue, 6 Mar 2018 13:11:53 +0000 (6 14:11 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 6 Mar 2018 13:15:57 +0000 (6 14:15 +0100)
treeb42200519bd20266990ac0db97b780e7de974129
parentb90d055be5dd30212ebd0c0a810a7f020df70321
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>
Cmds
Makefile
geoip.c