]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/xtables-addons
Merge branch 'switch-to-libloc' into next-switch-to-libloc
[people/pmueller/ipfire-2.x.git] / lfs / xtables-addons
index 079ae1791663a24ebf4469ca3f0df1c61570f923..d1a067f33e180af739e82ca22ed4bf407b45f0f4 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2020  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -100,9 +100,14 @@ else
        cd $(DIR_APP) && make $(MAKETUNING)
 
        # Install the built kernel modules.
+       mkdir -p $(MODPATH)
        cd $(DIR_APP) && for f in $$(ls extensions/*.ko); do \
-               mkdir -p $(MODPATH); \
-               install -m 644 $$f $(MODPATH); \
+               /lib/modules/$$(uname -r)$(KCFG)/build/scripts/sign-file sha512 \
+                       /lib/modules/$$(uname -r)$(KCFG)/build/certs/signing_key.pem \
+                       /lib/modules/$$(uname -r)$(KCFG)/build/certs/signing_key.x509 \
+                       $$f; \
+               xz $$f; \
+               install -m 644 $$f.xz $(MODPATH); \
        done
 endif