diff --git a/README.md b/README.md index cbceedc05..4b702e379 100644 --- a/README.md +++ b/README.md @@ -190,9 +190,9 @@ test suite. With the `iptables` development headers installed, issuing `make` will compile the plugin for `iptables` and `ip6tables`. The file will be called `libxt_RTPENGINE.so` and needs to be copied - into the `xtables` module directory. The location of this directory can be determined through - `pkg-config xtables --variable=xtlibdir` on newer systems, and/or is usually either - `/lib/xtables/` or `/usr/lib/x86_64-linux-gnu/xtables/`. + into the `xtables` module directory. It is copied on `make install`. The location of this + directory can be determined through `pkg-config xtables --variable=xtlibdir` on newer systems, + and/or is usually either `/lib/xtables/` or `/usr/lib/x86_64-linux-gnu/xtables/`. * `kernel-module` @@ -207,8 +207,8 @@ test suite. Successful compilation of the module will produce the file `xt_RTPENGINE.ko`. The module can be inserted into the running kernel manually through `insmod xt_RTPENGINE.ko` (which will result in an error if depending modules aren't loaded, for example the `x_tables` module), but it's recommended to copy the - module into `/lib/modules/$VERSION/updates/`, followed by running `depmod -a`. After this, the module can - be loaded by issuing `modprobe xt_RTPENGINE`. + module into `/lib/modules/$VERSION/updates/`, followed by running `depmod -a`. This copying is performed + on `make install`. After this, the module can be loaded by issuing `modprobe xt_RTPENGINE`. * `recording-daemon` diff --git a/iptables-extension/Makefile b/iptables-extension/Makefile index 667b061d5..4c9a0336c 100644 --- a/iptables-extension/Makefile +++ b/iptables-extension/Makefile @@ -68,3 +68,4 @@ clean: rm -f libxt_RTPENGINE.so libipt_RTPENGINE.so libip6t_RTPENGINE.so install: + install libxt_RTPENGINE.so $(DESTDIR)$(shell pkg-config xtables --variable=xtlibdir) diff --git a/kernel-module/Makefile b/kernel-module/Makefile index 5f79d9b31..ef2a86b11 100644 --- a/kernel-module/Makefile +++ b/kernel-module/Makefile @@ -40,3 +40,5 @@ patch: ../utils/patch-kernel magic "$(PWD)" "$(KERNEL)" "$(RTPENGINE_VERSION)" install: + install xt_RTPENGINE.ko $(DESTDIR)/lib/modules/$(shell uname -r)/updates + depmod -a