###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2020 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2022 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 #
download :
-md5 :
+b2 :
###############################################################################
# Installation Details
-install -dv -m 1777 /tmp /var/tmp
-mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
-mkdir -pv /usr/{,local/}share/{doc,info,locale,man}
- -mkdir -v /usr/{,local/}share/{misc,terminfo,xt_geoip,zoneinfo}
+ -mkdir -v /usr/{,local/}share/{misc,terminfo,zoneinfo}
-mkdir -pv /usr/{,local/}share/man/man{1..8}
#-for dir in /usr /usr/local; do \
# ln -sv share/{man,doc,info} $$dir; \
# Symlink /var/run -> /run.
ln -svf ../run /var/run
-ifeq "$(IS_64BIT)" "1"
ln -svf lib /lib64
ln -svf lib /usr/lib64
-endif
ifeq "$(BUILD_ARCH)" "riscv64"
ln -svf . /lib/lp64d
cp -rvf $(DIR_SRC)/config/etc/* /etc;
[ ! -d "$(DIR_SRC)/config/etc-$(BUILD_ARCH)" ] || cp -rvf $(DIR_SRC)/config/etc-$(BUILD_ARCH)/* /etc
cp -rvf $(DIR_SRC)/config/lib/* /lib;
- touch /etc/{fs,m}tab
+ touch /etc/fstab
+ ln -s /proc/self/mounts /etc/mtab
echo "$(NAME) v$(VERSION) - $(SLOGAN)" > /etc/issue
echo "===============================" >> /etc/issue
echo "\n running on \s \r \m" >> /etc/issue
# Move script to correct place.
mv -vf /usr/local/bin/openvpn-metrics /usr/sbin/
- mv -vf /usr/local/bin/ovpn-ccd-convert /usr/sbin/
- mv -vf /usr/local/bin/ovpn-collectd-convert /usr/sbin/
mv -vf /usr/local/bin/captive-cleanup /usr/bin/
-
+
# Install firewall scripts.
mkdir -pv /usr/lib/firewall
install -m 755 $(DIR_SRC)/config/firewall/rules.pl \
# Permissions
chmod 0711 /var/empty
-
+
# A small hack to include /root to the iso but not all of it's files.
touch /root/ipfire
-mkdir -pv /opt/pakfire/db/core
echo "$(CORE)" > /opt/pakfire/db/core/mine
+ # IPblocklist.
+ -mkdir -pv /var/lib/ipblocklist
+ chown nobody:nobody /var/lib/ipblocklist
+
@$(POSTBUILD)