###############################################################################
# #
# IPFire.org - A linux based firewall #
###############################################################################
# #
# IPFire.org - A linux based firewall #
# #
# 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 #
# #
# 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 #
-EXTRA_CONFIG += --build=$(BUILDTARGET)
+CONFIGURE_OPTIONS += \
+ --prefix=$(PREFIX) \
+ --enable-largefile \
+ --disable-rpath \
+ --enable-install-program=arch \
+ --enable-no-install-program=hostname,kill \
+ --with-tty-group \
+ gl_cv_func_mknod_works=yes
+
+CFLAGS += -fno-strict-aliasing
+
+# Build with 32 bit time_t on 32 bit architectures
+ifeq "$(IS_32BIT)" "1"
+ export TIME_T_32_BIT_OK=yes
+endif
- @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/coreutils-5.96-rename-tee.patch
-ifeq "$(ROOT)" ""
-ifeq "$(MACHINE)" "i586"
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-uname-1.patch
-endif
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-suppress_uptime_kill_su-1.patch
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-i18n-1.patch
- cd $(DIR_APP) && chmod +x tests/sort/sort-mb-tests
- cd $(DIR_APP) && sed -i 's/_LEN 6/_LEN 20/' src/who.c
-endif
- cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
- cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
- cd $(DIR_APP) && make $(EXTRA_INSTALL) install
- #use hostname from inet-tools
+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/coreutils-8.27-uname-1.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/coreutils-8.27-i18n-1.patch
+ cd $(DIR_APP) && FORCE_UNSAFE_CONFIGURE=1 && ./configure $(CONFIGURE_OPTIONS)
+ cd $(DIR_APP) && make $(MAKETUNING)
+ cd $(DIR_APP) && make install
+
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/bin/{head,sleep,nice} /bin
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/bin/{head,sleep,nice} /bin
- ln -sf test /bin/[
- #ln -sf ../../bin/install /usr/bin
- mv -f /bin/uname /bin/uname.bak
- cp -vf $(DIR_SRC)/src/scripts/uname /bin/uname
- chmod 755 /bin/uname
- dircolors -p > /etc/dircolors
-else
- rm /tools/bin/hostname
- mv -f /tools/bin/uname /tools/bin/uname.bak
- cp -vf $(DIR_SRC)/src/scripts/uname /tools/bin/uname
- chmod 755 /tools/bin/uname
+ dircolors -p > /etc/DIR_COLORS