]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/xtables-addons
core133: Ship jansson in update
[ipfire-2.x.git] / lfs / xtables-addons
index a8aba7455396010c8e56fd3130d3c313294ec6c0..2152fa5fd1f4772e3a0c1846851c32a0d0fb3df1 100644 (file)
@@ -82,6 +82,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/xtables-addons-3.2-fix-database-generation.patch
+
        # Only build the specified modules.
        cp -avf $(DIR_SRC)/config/xtables-addons/mconfig \
                $(DIR_APP)/mconfig
@@ -94,10 +96,13 @@ ifeq "$(USPACE)" "1"
 
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+
+       # Install xt_geoip_build.
+       cd $(DIR_APP) && install -m 755 geoip/xt_geoip_build \
+               /usr/local/bin/
 else
        cd $(DIR_APP) && ./configure \
-               --with-kbuild=/usr/src/linux-$(KVER)/
-
+               --with-kbuild=/lib/modules/$$(uname -r)$(KCFG)/build
        cd $(DIR_APP) && make $(MAKETUNING)
 
        # Install the built kernel modules.