]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/setup
suricata: Update to 7.0.4
[people/pmueller/ipfire-2.x.git] / lfs / setup
index a5dee7359edf98bc9ee1532200edcbce4b6ba0eb..82286d6a09dd4b54b2942eeaad16049cc57da8e8 100644 (file)
--- a/lfs/setup
+++ b/lfs/setup
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2018  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        #
@@ -40,7 +40,7 @@ check :
 
 download :
 
-md5 :
+b2 :
 
 ###############################################################################
 # Installation Details
@@ -49,12 +49,18 @@ md5 :
 $(TARGET) :
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && mkdir $(DIR_APP) && cp -R $(DIR_SRC)/src/setup/* $(DIR_APP)
+       cd $(DIR_APP) && bash autogen.sh
+       cd $(DIR_APP) && ./configure \
+               --prefix=/usr \
+               --with-distro-name="$(NAME)" \
+               --with-distro-sname="$(SNAME)" \
+               --with-distro-slogan="$(SLOGAN)" \
+               --with-config-root="$(CONFIG_ROOT)"
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
 
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS) -Wall \
-           -DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \
-            -DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"'"
+       # Fix file permissions of /etc/sudoers.d/setup
+       chmod 640 /etc/sudoers.d/setup
 
-       cd $(DIR_APP) && install -m 0755 setup /usr/local/sbin
-       cd $(DIR_APP) && install -m 0755 probenic.sh /bin
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)