X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Finstaller;h=6a0662c9308fd6e83af4e3e5ad32a27d487d8036;hp=553d59901c9dfd30758610c92303cb90fe4cecbd;hb=15b1a3e360a277dc7481103f8ddcbf189033e3a6;hpb=51cac9a1ce8b4baa0a214f7674d8a915a8030560 diff --git a/lfs/installer b/lfs/installer index 553d59901c..6a0662c930 100644 --- a/lfs/installer +++ b/lfs/installer @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2018 IPFire Team # # # # 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 # @@ -30,6 +30,9 @@ THISAPP = installer DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +SLOGAN = An Open Source Firewall Solution +DOWNLOAD_URL = https://downloads.ipfire.org/releases/ipfire-2.x/$(VERSION)-core$(CORE)/$(SNAME)-$(VERSION).$(BUILD_ARCH)-full-core$(CORE).iso + ############################################################################### # Top-level Rules ############################################################################### @@ -48,22 +51,20 @@ md5 : $(TARGET) : @$(PREBUILD) - -mkdir -p /install/initrd/bin - @rm -rf $(DIR_APP) && mkdir $(DIR_APP) && cp -R $(DIR_SRC)/src/install+setup/* $(DIR_APP) - for i in $(DIR_SRC)/langs/*/install/lang_*.c ; do \ - cp $$i $(DIR_APP)/libsmooth; \ - done - cd $(DIR_APP)/libsmooth && chmod 755 makelangs.pl - cd $(DIR_APP)/libsmooth && make CFLAGS="-Os -fomit-frame-pointer -Wall \ - -DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \ - -DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"'" - cd $(DIR_APP)/install && make CFLAGS="-Os -fomit-frame-pointer -Wall \ - -DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \ - -DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"' -DKERNEL_VERSION='\"$(KVER)\"'" - cd $(DIR_APP)/install && install -v -m 0755 install probenic.sh \ - probehw.sh downloadsource.sh mountsource.sh mountdest.sh /install/initrd/bin - #Patch ISO Name for download ... - sed -i -e "s|ipfire.iso|$(SNAME)-$(VERSION).$(MACHINE)-full-core$(CORE).iso|g" \ - /install/initrd/bin/downloadsource.sh + @rm -rf $(DIR_APP) && mkdir $(DIR_APP) && cp -R $(DIR_SRC)/src/installer/* $(DIR_APP) + + cd $(DIR_APP) && ./autogen.sh + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --with-distro-name="$(NAME)" \ + --with-distro-sname="$(SNAME)" \ + --with-distro-slogan="$(SLOGAN)" \ + --with-distro-version="$(VERSION)-core$(CORE)" \ + --with-config-root="$(CONFIG_ROOT)" \ + --with-download-url="$(DOWNLOAD_URL)" + + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) @$(POSTBUILD)