]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 19:42:17 +0000 (20:42 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 19:42:17 +0000 (20:42 +0100)
50 files changed:
config/cfgroot/lang.pl
config/rootfiles/common/armv5tel/initscripts [changed mode: 0755->0644]
config/rootfiles/common/i586/initscripts [changed mode: 0755->0644]
config/rootfiles/core/88/filelists/files
config/rootfiles/core/88/filelists/openssh [new symlink]
config/rootfiles/core/88/filelists/openssl [new symlink]
config/rootfiles/core/88/filelists/openssl-compat [new symlink]
config/rootfiles/core/88/update.sh
config/rootfiles/core/89/exclude [new file with mode: 0644]
config/rootfiles/core/89/filelists/collectd [new symlink]
config/rootfiles/core/89/filelists/daq [moved from config/rootfiles/core/88/filelists/daq with 100% similarity]
config/rootfiles/core/89/filelists/ddns [moved from config/rootfiles/core/88/filelists/ddns with 100% similarity]
config/rootfiles/core/89/filelists/dnsmasq [moved from config/rootfiles/core/88/filelists/dnsmasq with 100% similarity]
config/rootfiles/core/89/filelists/ethtool [moved from config/rootfiles/core/88/filelists/ethtool with 100% similarity]
config/rootfiles/core/89/filelists/fcron [moved from config/rootfiles/core/88/filelists/fcron with 100% similarity]
config/rootfiles/core/89/filelists/file [moved from config/rootfiles/core/88/filelists/file with 100% similarity]
config/rootfiles/core/89/filelists/files [new file with mode: 0644]
config/rootfiles/core/89/filelists/fuse [new symlink]
config/rootfiles/core/89/filelists/gnupg [moved from config/rootfiles/core/88/filelists/gnupg with 100% similarity]
config/rootfiles/core/89/filelists/grep [moved from config/rootfiles/core/88/filelists/grep with 100% similarity]
config/rootfiles/core/89/filelists/hdparm [moved from config/rootfiles/core/88/filelists/hdparm with 100% similarity]
config/rootfiles/core/89/filelists/libart [moved from config/rootfiles/core/88/filelists/libart with 100% similarity]
config/rootfiles/core/89/filelists/libcap [moved from config/rootfiles/core/88/filelists/libcap with 100% similarity]
config/rootfiles/core/89/filelists/libffi [moved from config/rootfiles/core/88/filelists/libffi with 100% similarity]
config/rootfiles/core/89/filelists/libpcap [moved from config/rootfiles/core/88/filelists/libpcap with 100% similarity]
config/rootfiles/core/89/filelists/ntfs-3g [new symlink]
config/rootfiles/core/89/filelists/openssh [new symlink]
config/rootfiles/core/89/filelists/openssl [new symlink]
config/rootfiles/core/89/filelists/openssl-compat [new symlink]
config/rootfiles/core/89/filelists/pcre [moved from config/rootfiles/core/88/filelists/pcre with 100% similarity]
config/rootfiles/core/89/filelists/screen [moved from config/rootfiles/core/88/filelists/screen with 100% similarity]
config/rootfiles/core/89/filelists/setup [new symlink]
config/rootfiles/core/89/filelists/smartmontools [moved from config/rootfiles/core/88/filelists/smartmontools with 100% similarity]
config/rootfiles/core/89/filelists/snort [moved from config/rootfiles/core/88/filelists/snort with 100% similarity]
config/rootfiles/core/89/filelists/sqlite [moved from config/rootfiles/core/88/filelists/sqlite with 100% similarity]
config/rootfiles/core/89/filelists/squid [moved from config/rootfiles/core/88/filelists/squid with 100% similarity]
config/rootfiles/core/89/filelists/strongswan [new symlink]
config/rootfiles/core/89/filelists/tar [moved from config/rootfiles/core/88/filelists/tar with 100% similarity]
config/rootfiles/core/89/filelists/tzdata [new symlink]
config/rootfiles/core/89/filelists/wget [moved from config/rootfiles/core/88/filelists/wget with 100% similarity]
config/rootfiles/core/89/filelists/zlib [moved from config/rootfiles/core/88/filelists/zlib with 100% similarity]
config/rootfiles/core/89/meta [new file with mode: 0644]
config/rootfiles/core/89/update.sh [new file with mode: 0644]
html/cgi-bin/ddns.cgi
lfs/crda
lfs/openssl
lfs/openssl-compat
make.sh
src/patches/crda-3.13-crypto_use_optional.patch [deleted file]
src/patches/openssl-disable-sslv2-sslv3.patch [new file with mode: 0644]

index 3b001ad9d433ad2fe354e29369f017294dcd5137..c77e0a0665692e0948f265ad2d196ac43d6bdf86 100644 (file)
@@ -169,6 +169,9 @@ sub FindWebLanguage() {
        my ($language, $country) = split(/_/, $shortlang);
        push(@options, $language);
 
+       # Add English as fallback
+       push(@options, "en");
+
        foreach my $option (@options) {
                return $option if (-e "${General::swroot}/langs/$option.pl");
        }
old mode 100755 (executable)
new mode 100644 (file)
index 05b8cee..8ddf34a
@@ -34,6 +34,7 @@ etc/rc.d/init.d/firstsetup
 etc/rc.d/init.d/functions
 #etc/rc.d/init.d/gnump3d
 etc/rc.d/init.d/halt
+#etc/rc.d/init.d/haproxy
 #etc/rc.d/init.d/hostapd
 #etc/rc.d/init.d/imspector
 etc/rc.d/init.d/ipsec
old mode 100755 (executable)
new mode 100644 (file)
index d4779ab..3d4dd62
@@ -36,6 +36,7 @@ etc/rc.d/init.d/firstsetup
 etc/rc.d/init.d/functions
 #etc/rc.d/init.d/gnump3d
 etc/rc.d/init.d/halt
+#etc/rc.d/init.d/haproxy
 #etc/rc.d/init.d/hostapd
 #etc/rc.d/init.d/imspector
 etc/rc.d/init.d/ipsec
index 0251b5d6b791232a9e976e5d75f058600e67487e..409e5fe8ac4e0442392c03e5efbd9d5d44e33c72 100644 (file)
@@ -1,6 +1,2 @@
 etc/system-release
 etc/issue
-srv/web/ipfire/cgi-bin/fwhosts.cgi
-srv/web/ipfire/cgi-bin/ovpnmain.cgi
-var/ipfire/backup/bin/backup.pl
-var/ipfire/langs
diff --git a/config/rootfiles/core/88/filelists/openssh b/config/rootfiles/core/88/filelists/openssh
new file mode 120000 (symlink)
index 0000000..d8c77fd
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssh
\ No newline at end of file
diff --git a/config/rootfiles/core/88/filelists/openssl b/config/rootfiles/core/88/filelists/openssl
new file mode 120000 (symlink)
index 0000000..e011a92
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssl
\ No newline at end of file
diff --git a/config/rootfiles/core/88/filelists/openssl-compat b/config/rootfiles/core/88/filelists/openssl-compat
new file mode 120000 (symlink)
index 0000000..c9fa421
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssl-compat
\ No newline at end of file
index 18dd9af521469b1847e567e0d26d99bc3f4a13b5..6ef1f483eedab7ff56be644450bad909b7e8ae0c 100644 (file)
@@ -41,15 +41,8 @@ extract_files
 # Start services
 
 # Update Language cache
-perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+#perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
 
-# Uninstall the sqlite package.
-rm -f \
-       /opt/pakfire/db/installed/meta-sqlite \
-       /opt/pakfire/db/rootfiles/sqlite
-
-# Fix #10625
-mkdir -p /etc/logrotate.d
 
 sync
 
diff --git a/config/rootfiles/core/89/exclude b/config/rootfiles/core/89/exclude
new file mode 100644 (file)
index 0000000..18e9b4d
--- /dev/null
@@ -0,0 +1,20 @@
+boot/config.txt
+etc/collectd.custom
+etc/ipsec.conf
+etc/ipsec.secrets
+etc/ipsec.user.conf
+etc/ipsec.user.secrets
+etc/localtime
+etc/shadow
+etc/ssh/ssh_config
+etc/ssh/sshd_config
+etc/ssl/openssl.cnf
+etc/sudoers
+etc/sysconfig/firewall.local
+etc/sysconfig/rc.local
+etc/udev/rules.d/30-persistent-network.rules
+srv/web/ipfire/html/proxy.pac
+var/ipfire/ovpn
+var/log/cache
+var/state/dhcp/dhcpd.leases
+var/updatecache
diff --git a/config/rootfiles/core/89/filelists/collectd b/config/rootfiles/core/89/filelists/collectd
new file mode 120000 (symlink)
index 0000000..871b32f
--- /dev/null
@@ -0,0 +1 @@
+../../../common/collectd
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/files b/config/rootfiles/core/89/filelists/files
new file mode 100644 (file)
index 0000000..5ed7194
--- /dev/null
@@ -0,0 +1,18 @@
+etc/system-release
+etc/issue
+etc/collectd.conf
+etc/collectd.vpn
+etc/rc.d/init.d/dnsmasq
+srv/web/ipfire/cgi-bin/ddns.cgi
+srv/web/ipfire/cgi-bin/firewall.cgi
+srv/web/ipfire/cgi-bin/fwhosts.cgi
+srv/web/ipfire/cgi-bin/ids.cgi
+srv/web/ipfire/cgi-bin/netovpnrw.cgi
+srv/web/ipfire/cgi-bin/netovpnsrv.cgi
+srv/web/ipfire/cgi-bin/ovpnmain.cgi
+srv/web/ipfire/cgi-bin/vpnmain.cgi
+var/ipfire/backup/bin/backup.pl
+var/ipfire/graphs.pl
+var/ipfire/langs
+var/ipfire/lang.pl
+var/ipfire/menu.d/20-status.menu
diff --git a/config/rootfiles/core/89/filelists/fuse b/config/rootfiles/core/89/filelists/fuse
new file mode 120000 (symlink)
index 0000000..570edaa
--- /dev/null
@@ -0,0 +1 @@
+../../../common/fuse
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/ntfs-3g b/config/rootfiles/core/89/filelists/ntfs-3g
new file mode 120000 (symlink)
index 0000000..d93adc2
--- /dev/null
@@ -0,0 +1 @@
+../../../common/ntfs-3g
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/openssh b/config/rootfiles/core/89/filelists/openssh
new file mode 120000 (symlink)
index 0000000..d8c77fd
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssh
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/openssl b/config/rootfiles/core/89/filelists/openssl
new file mode 120000 (symlink)
index 0000000..e011a92
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssl
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/openssl-compat b/config/rootfiles/core/89/filelists/openssl-compat
new file mode 120000 (symlink)
index 0000000..c9fa421
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssl-compat
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/setup b/config/rootfiles/core/89/filelists/setup
new file mode 120000 (symlink)
index 0000000..209374b
--- /dev/null
@@ -0,0 +1 @@
+../../../common/setup
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/strongswan b/config/rootfiles/core/89/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
diff --git a/config/rootfiles/core/89/filelists/tzdata b/config/rootfiles/core/89/filelists/tzdata
new file mode 120000 (symlink)
index 0000000..5a6e325
--- /dev/null
@@ -0,0 +1 @@
+../../../common/tzdata
\ No newline at end of file
diff --git a/config/rootfiles/core/89/meta b/config/rootfiles/core/89/meta
new file mode 100644 (file)
index 0000000..d547fa8
--- /dev/null
@@ -0,0 +1 @@
+DEPS=""
diff --git a/config/rootfiles/core/89/update.sh b/config/rootfiles/core/89/update.sh
new file mode 100644 (file)
index 0000000..f3de863
--- /dev/null
@@ -0,0 +1,72 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 3 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2014 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+/usr/local/bin/backupctrl exclude >/dev/null 2>&1
+
+# Remove old core updates from pakfire cache to save space...
+core=89
+for (( i=1; i<=$core; i++ ))
+do
+       rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
+done
+
+# Stop services
+/etc/init.d/ipsec stop
+
+# Remove old files
+
+# Extract files
+extract_files
+
+# Generate ddns configuration file
+sudo -u nobody /srv/web/ipfire/cgi-bin/ddns.cgi
+
+# Start services
+/etc/init.d/dnsmasq restart
+if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
+       /etc/init.d/ipsec start
+fi
+
+# Update Language cache
+perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+
+# Prevent uninstall sqlite (now common package).
+rm -f \
+       /opt/pakfire/db/*/meta-sqlite \
+       /opt/pakfire/db/rootfiles/sqlite
+
+# Fix #10625
+mkdir -p /etc/logrotate.d
+
+sync
+
+# This update need a reboot...
+#touch /var/run/need_reboot
+
+# Finish
+/etc/init.d/fireinfo start
+sendprofile
+
+# Don't report the exitcode last command
+exit 0
index ea30319362b37bfa5678eaad87b23fb246e60056..044aa971849ea4132c7702a7ceb885e1a2cb7857 100644 (file)
@@ -667,7 +667,8 @@ sub GenerateDDNSConfigFile {
                my $use_token = 0;
 
                # Handle token based auth for various providers.
-               if ($provider ~~ ["dns.lightningwirelabs.com", "entrydns.net", "regfish.com", "spdns.de"] && $username eq "token") {
+               if ($provider ~~ ["dns.lightningwirelabs.com", "entrydns.net", "regfish.com",
+                                 "spdns.de", "zzzz.io"] && $username eq "token") {
                        $use_token = 1;
 
                # Handle token auth for freedns.afraid.org and regfish.com.
index 2b1aff81622eb70747b23cfdc67df4bbd0e97895..8bee2584ba496dfdc79a6d00773882232365badf 100644 (file)
--- a/lfs/crda
+++ b/lfs/crda
@@ -71,7 +71,6 @@ $(subst %,%_MD5,$(objects)) :
 $(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/crda-3.13-crypto_use_optional.patch
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
index 82f26bd25c31fad31899e3d31077a83592158be9..df068f3a78b86e9025f5c46dc062a98267bfb77e 100644 (file)
@@ -86,6 +86,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-1.0.1e-cryptodev.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-1.0.1e-fix_parallel_build-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-1.0.1e-weak-ciphers.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-disable-sslv2-sslv3.patch
 
        cd $(DIR_APP) && find crypto/ -name Makefile -exec \
                sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
@@ -105,8 +106,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                no-mdc2 \
                no-rc5 \
                no-srp \
-               no-ssl2 \
-               no-ssl3 \
                $(CONFIGURE_ARGS) \
                -DSSL_FORBID_ENULL \
                -DHAVE_CRYPTODEV \
index d2f52ae2a5d7dfe3d86a453370d75138863b093c..a722f592b4c31e68a117ac42dbfcf7e5d7b9aa69 100644 (file)
@@ -72,6 +72,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
 
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-0.9.8u-cryptodev.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-disable-sslv2-sslv3.patch
 
        cd $(DIR_APP) && sed -i -e 's/mcpu/march/' config
        cd $(DIR_APP) && sed -i -e 's/-O3/-O2/' -e 's/-march=i486/-march=i586/' Configure
diff --git a/make.sh b/make.sh
index 7d41b591c27ed551fbbd9ccd5dcea31345014005..d0498881558a0e5859150bb25e2a7fd4d0c799b8 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -25,8 +25,8 @@
 NAME="IPFire"                                                  # Software name
 SNAME="ipfire"                                                 # Short name
 VERSION="2.17"                                                 # Version number
-CORE="87"                                                      # Core Level (Filename)
-PAKFIRE_CORE="87"                                              # Core Level (PAKFIRE)
+CORE="88"                                                      # Core Level (Filename)
+PAKFIRE_CORE="88"                                              # Core Level (PAKFIRE)
 GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`                   # Git Branch
 SLOGAN="www.ipfire.org"                                                # Software slogan
 CONFIG_ROOT=/var/ipfire                                                # Configuration rootdir
diff --git a/src/patches/crda-3.13-crypto_use_optional.patch b/src/patches/crda-3.13-crypto_use_optional.patch
deleted file mode 100644 (file)
index 56ad6b7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-Submitted By: hauke from OpenWRT
-Date: 2009-04-17
-Initial Package Version: 1.0.2
-Origin: https://dev.openwrt.org/changeset/15405/trunk/package/crda/patches/101-make_crypto_use_optional.patch
-Description: The patch was modified for version crda-3.13 by Erik Kapfer <erik.kapfer@ipfire.org>..
-This patch provides the following improvements:
-    * Crypto usage is optional.
-
-diff -Nur crda-3.13.orig/Makefile crda-3.13/Makefile
---- crda-3.13.orig/Makefile    2015-01-12 07:55:08.791183765 +0100
-+++ crda-3.13/Makefile 2015-01-12 07:56:35.437381029 +0100
-@@ -43,7 +43,9 @@
- $(LIBREG): keys-ssl.c
--else
-+endif
-+
-+ifeq ($(USE_GCRYPT),1)
- CFLAGS += -DUSE_GCRYPT
- LDLIBS += -lgcrypt
diff --git a/src/patches/openssl-disable-sslv2-sslv3.patch b/src/patches/openssl-disable-sslv2-sslv3.patch
new file mode 100644 (file)
index 0000000..ebf5429
--- /dev/null
@@ -0,0 +1,13 @@
+diff -up openssl-1.0.1h/ssl/ssl_lib.c.v2v3 openssl-1.0.1h/ssl/ssl_lib.c\r
+--- openssl-1.0.1h/ssl/ssl_lib.c.v2v3  2014-06-11 16:02:52.000000000 +0200\r
++++ openssl-1.0.1h/ssl/ssl_lib.c       2014-06-30 14:18:04.290248080 +0200\r
+@@ -1875,6 +1875,9 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *m\r
+        */\r
+       ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;\r
\r
++      /* Disable SSLv2 and SSLv3 by default (affects the SSLv23_method() only) */\r
++      ret->options |= SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;\r
++\r
+       return(ret);\r
+ err:\r
+       SSLerr(SSL_F_SSL_CTX_NEW,ERR_R_MALLOC_FAILURE);\r