"DEF:load1=".$mainsettings{'RRDLOG'}."/collectd/localhost/load/load.rrd:shortterm:AVERAGE",
"DEF:load5=".$mainsettings{'RRDLOG'}."/collectd/localhost/load/load.rrd:midterm:AVERAGE",
"DEF:load15=".$mainsettings{'RRDLOG'}."/collectd/localhost/load/load.rrd:longterm:AVERAGE",
- "AREA:load1".$color{"color13"}."A0:1 ".$Lang::tr{'minute'}.":",
+ "AREA:load1".$color{"color13"}."A0:1 ".$Lang::tr{'minute'},
"GPRINT:load1:LAST:%5.2lf",
- "AREA:load5".$color{"color18"}."A0:5 ".$Lang::tr{'minutes'}.":",
+ "AREA:load5".$color{"color18"}."A0:5 ".$Lang::tr{'minutes'},
"GPRINT:load5:LAST:%5.2lf",
- "AREA:load15".$color{"color14"}."A0:15 ".$Lang::tr{'minutes'}.":",
+ "AREA:load15".$color{"color14"}."A0:15 ".$Lang::tr{'minutes'},
"GPRINT:load15:LAST:%5.2lf\\j",
"LINE1:load5".$color{"color13"},
"LINE1:load1".$color{"color18"},
"CDEF:writen=write,-1,*",
"DEF:standby=".$mainsettings{'RRDLOG'}."/hddshutdown-".$disk.".rrd:standby:AVERAGE",
"CDEF:st=standby,INF,*",
- "CDEF:st1=standby,-INF,*",
+ "CDEF:st1=standby,NEGINF,*",
"COMMENT:".sprintf("%-25s",$Lang::tr{'caption'}),
"COMMENT:".sprintf("%15s",$Lang::tr{'maximal'}),
"COMMENT:".sprintf("%15s",$Lang::tr{'average'}),
#srv/web/ipfire/html/graphs
usr/bin/rrdcached
+#usr/bin/rrdcreate
+#usr/bin/rrdinfo
usr/bin/rrdtool
usr/bin/rrdupdate
#usr/include/rrd.h
#usr/lib/librrd.la
#usr/lib/librrd.so
usr/lib/librrd.so.4
-usr/lib/librrd.so.4.2.0
+usr/lib/librrd.so.4.3.0
#usr/lib/librrd_th.a
#usr/lib/librrd_th.la
#usr/lib/librrd_th.so
usr/lib/librrd_th.so.4
-usr/lib/librrd_th.so.4.2.0
+usr/lib/librrd_th.so.4.3.0
usr/lib/perl5/site_perl/5.12.3/RRDp.pm
usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/RRDs.pm
#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/RRDp
#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/RRDs/RRDs.bs
usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/RRDs/RRDs.so
#usr/lib/pkgconfig/librrd.pc
-#usr/share/doc/rrdtool-1.4.7
-#usr/share/doc/rrdtool-1.4.7/html
-#usr/share/doc/rrdtool-1.4.7/html/RRDp.html
-#usr/share/doc/rrdtool-1.4.7/html/RRDs.html
-#usr/share/doc/rrdtool-1.4.7/html/bin_dec_hex.html
-#usr/share/doc/rrdtool-1.4.7/html/cdeftutorial.html
-#usr/share/doc/rrdtool-1.4.7/html/index.html
-#usr/share/doc/rrdtool-1.4.7/html/librrd.html
-#usr/share/doc/rrdtool-1.4.7/html/rpntutorial.html
-#usr/share/doc/rrdtool-1.4.7/html/rrd-beginners.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdbuild.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdcached.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdcgi.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdcreate.html
-#usr/share/doc/rrdtool-1.4.7/html/rrddump.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdfetch.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdfirst.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdflushcached.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdgraph.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdgraph_data.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdgraph_examples.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdgraph_graph.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdgraph_rpn.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdinfo.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdlast.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdlastupdate.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdresize.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdrestore.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdthreads.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdtool.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdtune.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdtutorial.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdupdate.html
-#usr/share/doc/rrdtool-1.4.7/html/rrdxport.html
-#usr/share/doc/rrdtool-1.4.7/txt
-#usr/share/doc/rrdtool-1.4.7/txt/bin_dec_hex.pod
-#usr/share/doc/rrdtool-1.4.7/txt/bin_dec_hex.txt
-#usr/share/doc/rrdtool-1.4.7/txt/cdeftutorial.pod
-#usr/share/doc/rrdtool-1.4.7/txt/cdeftutorial.txt
-#usr/share/doc/rrdtool-1.4.7/txt/librrd.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rpntutorial.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rpntutorial.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrd-beginners.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrd-beginners.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdbuild.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdbuild.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcached.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcached.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcgi.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcgi.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcreate.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdcreate.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrddump.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrddump.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdfetch.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdfetch.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdfirst.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdfirst.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdflushcached.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdflushcached.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_data.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_data.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_examples.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_examples.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_graph.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_graph.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_rpn.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdgraph_rpn.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdinfo.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdinfo.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdlast.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdlast.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdlastupdate.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdlastupdate.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdresize.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdresize.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdrestore.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdrestore.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdthreads.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdthreads.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtool.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtool.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtune.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtune.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtutorial.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdtutorial.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdupdate.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdupdate.txt
-#usr/share/doc/rrdtool-1.4.7/txt/rrdxport.pod
-#usr/share/doc/rrdtool-1.4.7/txt/rrdxport.txt
+#usr/share/doc/rrdtool-1.5.3
+#usr/share/doc/rrdtool-1.5.3/html
+#usr/share/doc/rrdtool-1.5.3/html/RRDp.html
+#usr/share/doc/rrdtool-1.5.3/html/RRDs.html
+#usr/share/doc/rrdtool-1.5.3/html/bin_dec_hex.html
+#usr/share/doc/rrdtool-1.5.3/html/cdeftutorial.html
+#usr/share/doc/rrdtool-1.5.3/html/index.html
+#usr/share/doc/rrdtool-1.5.3/html/librrd.html
+#usr/share/doc/rrdtool-1.5.3/html/rpntutorial.html
+#usr/share/doc/rrdtool-1.5.3/html/rrd-beginners.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdbuild.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdcached.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdcgi.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdcreate.html
+#usr/share/doc/rrdtool-1.5.3/html/rrddump.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdfetch.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdfirst.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdflushcached.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdgraph.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdgraph_data.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdgraph_examples.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdgraph_graph.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdgraph_rpn.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdinfo.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdlast.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdlastupdate.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdresize.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdrestore.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdthreads.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdtool.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdtune.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdtutorial.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdupdate.html
+#usr/share/doc/rrdtool-1.5.3/html/rrdxport.html
+#usr/share/doc/rrdtool-1.5.3/txt
+#usr/share/doc/rrdtool-1.5.3/txt/bin_dec_hex.pod
+#usr/share/doc/rrdtool-1.5.3/txt/bin_dec_hex.txt
+#usr/share/doc/rrdtool-1.5.3/txt/cdeftutorial.pod
+#usr/share/doc/rrdtool-1.5.3/txt/cdeftutorial.txt
+#usr/share/doc/rrdtool-1.5.3/txt/librrd.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rpntutorial.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rpntutorial.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrd-beginners.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrd-beginners.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdbuild.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdbuild.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcached.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcached.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcgi.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcgi.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcreate.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdcreate.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrddump.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrddump.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdfetch.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdfetch.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdfirst.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdfirst.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdflushcached.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdflushcached.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_data.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_data.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_examples.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_examples.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_graph.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_graph.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_rpn.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdgraph_rpn.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdinfo.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdinfo.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdlast.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdlast.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdlastupdate.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdlastupdate.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdresize.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdresize.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdrestore.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdrestore.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdthreads.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdthreads.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtool.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtool.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtune.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtune.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtutorial.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdtutorial.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdupdate.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdupdate.txt
+#usr/share/doc/rrdtool-1.5.3/txt/rrdxport.pod
+#usr/share/doc/rrdtool-1.5.3/txt/rrdxport.txt
#usr/share/man/man1/bin_dec_hex.1
#usr/share/man/man1/cdeftutorial.1
#usr/share/man/man1/rpntutorial.1
srv/web/ipfire/html/clwarn.cgi
srv/web/ipfire/html/dial.cgi
srv/web/ipfire/html/favicon.ico
+#srv/web/ipfire/html/graphs
#srv/web/ipfire/html/images
srv/web/ipfire/html/images/IPFire.png
srv/web/ipfire/html/images/add.gif
/var/run/ovpnserver.log
# Update OpenVPN/collectd configuration
-files=`find /var/ipfire/ovpn/n2nconf/ -type d`
-for i in $files;
-do
- if ! grep -q "status-version" $i/${i##*/}.conf; then
- echo "# Logfile" >> $i/${i##*/}.conf
- echo "status-version 1" >> $i/${i##*/}.conf
+for i in /var/ipfire/ovpn/n2nconf/*/*.conf; do
+ name="${i##*/}"
+ name="${name%*.conf}"
+
+ if ! grep -qE "^status-version" ${i}; then
+ echo "# Logfile" >> ${i}
+ echo "status-version 1" >> ${i}
fi
- if ! grep -q "status " $i/${i##*/}.conf; then
- echo "status /var/run/openvpn/${i##*/}-n2n 10" >> $i/${i##*/}.conf
+
+ if ! grep -qE "^status " ${i}; then
+ echo "status /var/run/openvpn/${name}-n2n 10" >> ${i}
fi
done
etc/sysconfig/firewall.local
etc/sysconfig/modules
etc/sysconfig/rc.local
-etc/udev/rules.d/30-persistent-network.rules
srv/web/ipfire/html/proxy.pac
var/ipfire/firewall/geoipblock
var/ipfire/fwhosts/custmgeoipgrp
etc/rc.d/init.d/networking/functions.network
etc/rc.d/init.d/networking/red.up/99-geoip-database
etc/rc.d/rcsysinit.d/S90network-trigger
+opt/pakfire/pakfire
+opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/country.cgi
srv/web/ipfire/cgi-bin/ddns.cgi
srv/web/ipfire/cgi-bin/firewall.cgi
--- /dev/null
+../../../common/openldap
\ No newline at end of file
# Update Language cache
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+# Remove old udev configuration
+rm -vf /etc/udev/rules.d/30-persistent-network.rules
+
+# Remove pids from dhcp client because it hang at normal shutdown
+# so let the sysvinit kill it
+rm -f /run/dhcpcd-*.pid
+
#
# Start services
#
/etc/init.d/ipsec start
fi
-case "$(uname -m)" in
- i?86)
- case "$(find_device "/")" in
- xvd* )
- echo Skip remove grub2 files, because pygrub fail.
- rm -f /boot/grub/*
- echo config will recreated by linux-pae install.
- ;;
- * )
- #
- # Update to GRUB2 config
- #
- grub-mkconfig > /boot/grub/grub.cfg
- ;;
- esac
-esac
+if [ -e /boot/grub/grub.cfg ]; then
+ grub-mkconfig > /boot/grub/grub.cfg
+fi
# Upadate Kernel version uEnv.txt
if [ -e /boot/uEnv.txt ]; then
# Force (re)install pae kernel if pae is supported
-rm -rf /opt/pakfire/db/*/meta-linux-pae
+rm -rf /opt/pakfire/db/installed/meta-linux-pae
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
BOOTSPACE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae
- echo "Name: linux-pae" > /opt/pakfire/db/meta/meta-linux-pae
- echo "ProgVersion: 0" >> /opt/pakfire/db/meta/meta-linux-pae
- echo "Release: 0" >> /opt/pakfire/db/meta/meta-linux-pae
+# rm -f /opt/pakfire/db/meta/meta-linux-pae 2>&1 > /dev/null
fi
fi
use Locale::Codes::Country;
-my $flagdir = '/srv/web/ipfire/html/images/flags';
+my $col;
my $lines = '1';
my $lines2 = '';
-my @flaglist=();
-my @flaglistfiles=();
-my $flag = '';
require '/var/ipfire/general-functions.pl';
require "${General::swroot}/geoip-functions.pl";
&Header::openbigbox('100%', 'left');
&Header::openbox('100%', 'left', $Lang::tr{'country codes and flags'});
-print "<table class='tbl'>";
-print "<tr><th style='width=5%;'><b>$Lang::tr{'flag'}</b></th>";
-print "<th style='width=5%;'><b>$Lang::tr{'countrycode'}</b></th>";
-print "<th style='width=40%; text-align:left;'><b>$Lang::tr{'country'}</b></th>";
-print "<th> </th>";
-print "<th style='width=5%;'><b>$Lang::tr{'flag'}</b></th>";
-print "<th style='width=5%;'><b>$Lang::tr{'countrycode'}</b></th>";
-print "<th style='width=40%; text-align:left;'><b>$Lang::tr{'country'}</b></th></tr>";
-
-@flaglist = <$flagdir/*>;
-
-undef @flaglistfiles;
-
-foreach (@flaglist)
-{
- if (!-d) { push(@flaglistfiles,substr($_,rindex($_,"/")+1)); }
-}
-my $col="";
-foreach $flag (@flaglistfiles)
-{
+
+print<<END;
+<table class='tbl'>
+ <tr>
+ <th style='width=5%'><b>$Lang::tr{'flag'}</b></th>
+ <th style='width=5%'><b>$Lang::tr{'countrycode'}</b></th>
+ <th style='width=40% text-align:left'><b>$Lang::tr{'country'}</b></th>
+ <th> </th>
+ <th style='width=5%'><b>$Lang::tr{'flag'}</b></th>
+ <th style='width=5%;'><b>$Lang::tr{'countrycode'}</b></th>
+ <th style='width=40% text-align:left;'><b>$Lang::tr{'country'}</b></th>
+ </tr>
+END
+
+# Get a list of all supported country codes.
+my @countries = Locale::Codes::Country::all_country_codes();
+
+# Loop through whole country list.
+foreach my $country (@countries) {
$lines++;
- my $flagcode = uc(substr($flag, 0, 2));
- my $fcode = lc($flagcode);
+ # Convert country code into upper case.
+ my $country_uc = uc($country);
# Get flag icon for of the country.
- my $flag_icon = &GeoIP::get_flag_icon($fcode);
+ my $flag_icon = &GeoIP::get_flag_icon($country);
+
+ # Get country name.
+ my $name = &GeoIP::get_full_country_name($country);
- my $country = Locale::Country::code2country($fcode);
- if($fcode eq 'eu') { $country = 'Europe'; }
- if($fcode eq 'tp') { $country = 'East Timor'; }
- if($fcode eq 'yu') { $country = 'Yugoslavia'; }
if ($lines % 2) {
- print "<td $col><a id='$fcode'><img src='$flag_icon' alt='$flagcode' title='$flagcode'/></a></td>";
- print "<td $col>$flagcode</td>";
- print "<td $col>$country</td></tr>\n";
- }
- else {
+ print "<td $col><a id='$country'><img src='$flag_icon' alt='$country_uc' title='$country_uc'/></a></td>";
+ print "<td $col>$country_uc</td>";
+ print "<td $col>$name</td></tr>\n";
+ } else {
$lines2++;
if($lines2 % 2) {
$col="style='background-color:${Header::table2colour};'";
$col="style='background-color:${Header::table1colour};'";
}
print "<tr>";
- print "<td $col><a id='$fcode'><img src='$flag_icon' alt='$flagcode' title='$flagcode'/></a></td>";
- print "<td $col>$flagcode</td>";
- print "<td $col>$country</td>";
+ print "<td $col><a id='$country'><img src='$flag_icon' alt='$country_uc' title='$country_uc'/></a></td>";
+ print "<td $col>$country_uc</td>";
+ print "<td $col>$name</td>";
print "<td $col> </td>";
+
+ # Finish column when the last element in the array has passed and we have an uneven amount of items.
+ if ( $country eq $countries[-1] ) {
+ print "<td $col> </td>\n";
+ print "<td $col> </td>\n";
+ print "<td $col> </td></tr>\n";
+ }
}
}
-
-
print "</table>";
&Header::closebox();
&Header::closebigbox();
-print <<END
-<div style='text-align:center'>
-<a href='$ENV{'HTTP_REFERER'}'>$Lang::tr{'back'}</a>
-</div>
-END
-;
+print "<div style='text-align:center'><a href='$ENV{'HTTP_REFERER'}'>$Lang::tr{'back'}</a></div>\n";
&Header::closepage();
print "<td align='center' $col>$flag</td>\n";
print "<td align='center' $col>$ccode_uc</td>\n";
print "<td align='left' $col>$cname</td>$line_end\n";
-
+
+ # Finish column when the last element in the array has passed and we have an uneven amount of items.
+ if(! ($lines2 % 2) && ($location eq $locations[-1] )) {
+ print "<td $col> </td>\n";
+ print "<td $col> </td>\n";
+ print "<td $col> </td>\n";
+ print "<td $col> </td>\n";
+ print "<td $col> </td></tr>\n";
+ }
+
$lines2++;
}
if (!$is_aead) {
push(@algo, $int);
}
-
- if ($grp =~ m/^e(.*)$/) {
- push(@algo, "ecp$1");
- } else {
- push(@algo, "modp$grp");
- }
}
push(@algos, join("-", @algo));
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2011 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2015 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 #
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = cyrus-imapd
-PAK_VER = 3
+PAK_VER = 4
DEPS = ""
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2015 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 #
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = elinks
-PAK_VER = 4
+PAK_VER = 5
DEPS = ""
include Config
-VER = 3.14.41
+VER = 3.14.43
-RPI_PATCHES = 3.14.41-grsec-ipfire1
-A7M_PATCHES = 3.14.41-grsec-ipfire1
-GRS_PATCHES = grsecurity-3.1-3.14.41-201505072056.patch.xz
+RPI_PATCHES = 3.14.43-grsec-ipfire1
+A7M_PATCHES = 3.14.43-grsec-ipfire1
+GRS_PATCHES = grsecurity-3.1-3.14.43-201505191737.patch.xz
THISAPP = linux-$(VER)
DL_FILE = linux-$(VER).tar.xz
CFLAGS =
CXXFLAGS =
-PAK_VER = 59
+PAK_VER = 61
DEPS = ""
VERSUFIX=ipfire$(KCFG)
arm7-multi-patches-$(A7M_PATCHES).patch.xz = $(URL_IPFIRE)/arm7-multi-patches-$(A7M_PATCHES).patch.xz
$(GRS_PATCHES) = $(URL_IPFIRE)/$(GRS_PATCHES)
-$(DL_FILE)_MD5 = b28dfc6907c388c2adcc65aee2ad68ff
-rpi-patches-$(RPI_PATCHES).patch.xz_MD5 = 9c8b20647429a64d656999a3c7af890f
-arm7-multi-patches-$(A7M_PATCHES).patch.xz_MD5 = a4a4103255e93bfcb02652212b0ae3fc
-$(GRS_PATCHES)_MD5 = 8af3b27954311da581cc6f803f048779
+$(DL_FILE)_MD5 = 927f2343f298dfe531a8371f81356e53
+rpi-patches-$(RPI_PATCHES).patch.xz_MD5 = b5ba925ae1d4279d3ac0f03c27dd16eb
+arm7-multi-patches-$(A7M_PATCHES).patch.xz_MD5 = b9c696fe4f22b05b81c168329ca33c94
+$(GRS_PATCHES)_MD5 = 35e26b1214b1b0b515ee67e5ce50633a
install : $(TARGET)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = netsnmpd
-PAK_VER = 2
+PAK_VER = 3
DEPS = ""
###############################################################################
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2015 Michael Tremer & Christian Schmidt #
# #
# 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 #
include Config
-VER = 1.4.7
+VER = 1.5.3
THISAPP = rrdtool-$(VER)
DL_FILE = $(THISAPP).tar.gz
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = ffe369d8921b4dfdeaaf43812100c38f
+$(DL_FILE)_MD5 = 868a828cc6b10654c440a85054240ae2
install : $(TARGET)
echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae
- echo "Name: linux-pae" > /opt/pakfire/db/meta/meta-linux-pae
- echo "ProgVersion: 0" >> /opt/pakfire/db/meta/meta-linux-pae
- echo "Release: 0" >> /opt/pakfire/db/meta/meta-linux-pae
fi
fi
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2015 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 #
foreach $file (@files) {
next if ( $file eq "." );
next if ( $file eq ".." );
+ next if ( $file eq "meta-" );
next if ( $file =~ /^old/ );
open(FILE, "<$Conf::dbdir/meta/$file");
@meta = <FILE>;
return @all;
}
+sub resolvedeps_recursive {
+ my @packages = shift;
+ my @result = ();
+
+ foreach my $pkg (@packages) {
+ my @deps = &Pakfire::resolvedeps($pkg);
+
+ foreach my $dep (@deps) {
+ push(@result, $dep);
+ }
+ }
+
+ # Sort the result array and remove dupes
+ my %sort = map{ $_, 1 } @result;
+ @result = keys %sort;
+
+ return @result;
+}
+
sub cleanup {
my $dir = shift;
my $path;
}
unless ($file) {
- message("No filename given in meta-file. Please phone the developers.");
+ message("No filename given in meta-file.");
exit 1;
}
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2015 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 #
} elsif ("$ARGV[0]" eq "upgrade") {
&Pakfire::upgradecore();
my @upgradepaks = &Pakfire::dblist("upgrade", "noweb");
- my @temp, $pak;
-
- foreach (@upgradepaks) {
- @temp = &Pakfire::resolvedeps("$_");
- foreach (@temp) { push(@upgradepaks,$_) if $_; }
- }
-
+
if (@upgradepaks) {
+ # Resolve the dependencies of the to be upgraded packages
+ my @deps = &Pakfire::resolvedeps_recursive(@upgradepaks);
+
&Pakfire::message("");
&Pakfire::message("PAKFIRE UPGR: We are going to install all packages listed above.");
if ($interactive) {
}
}
- ### Download first
+ # Download packages
foreach $pak (@upgradepaks) {
- #system("mv $Conf::dbdir/meta/meta-$pak $Conf::dbdir/meta/old-meta-$pak");
&Pakfire::getpak("$pak", "");
}
-
+
+ # Download dependencies
+ foreach $pak (@deps) {
+ &Pakfire::getpak("$pak", "");
+ }
+
+ # Install dependencies first
+ foreach $pak (@deps) {
+ &Pakfire::setuppak("$pak");
+ }
+
+ # Install all upgrades
foreach $pak (@upgradepaks) {
- if (&Pakfire::upgradepak("$pak")) {
- #system("mv $Conf::dbdir/meta/old-meta-$pak $Conf::dbdir/meta/meta-$pak");
- }
+ &Pakfire::upgradepak("$pak");
}
} elsif ("$ARGV[0]" eq "list") {
#
/usr/bin/dracut --force --xz /boot/initramfs-$KVER-ipfire-pae.img $KVER-ipfire-pae
-
-ROOT="$(find_partition "/")"
-case $ROOT in
- xvd* )
- #
- # We are on XEN so create new grub.conf / menu.lst for pygrub
- #
- echo "timeout 10" > /boot/grub/grub.conf
- echo "default 0" >> /boot/grub/grub.conf
- echo "title IPFire (pae-kernel)" >> /boot/grub/grub.conf
- echo " kernel /vmlinuz-$KVER-ipfire-pae root=/dev/$ROOT rootdelay=10 panic=10 console=hvc0" \
- >> /boot/grub/grub.conf
- echo " initrd /initramfs-$KVER-ipfire-pae.img" >> /boot/grub/grub.conf
- echo "# savedefault 0" >> /boot/grub/grub.conf
- ln -s grub.conf $MNThdd/boot/grub/menu.lst
- ;;
- * )
- #
- # Update grub2 config
- #
- grub-mkconfig > /boot/grub/grub.cfg
- ;;
-esac
+if [ -e /boot/grub/grub.cfg ]; then
+ #
+ # Update grub2 config
+ #
+ grub-mkconfig > /boot/grub/grub.cfg
+else
+ #
+ # xen pv with pygrub need grub.conf / menu.lst
+ #
+ echo "timeout 10" > /boot/grub/grub.conf
+ echo "default 0" >> /boot/grub/grub.conf
+ echo "title IPFire (pae-kernel)" >> /boot/grub/grub.conf
+ echo " kernel /vmlinuz-$KVER-ipfire-pae root=/dev/$ROOT rootdelay=10 panic=10 console=hvc0" \
+ >> /boot/grub/grub.conf
+ echo " initrd /initramfs-$KVER-ipfire-pae.img" >> /boot/grub/grub.conf
+ echo "# savedefault 0" >> /boot/grub/grub.conf
+ ln -s grub.conf $MNThdd/boot/grub/menu.lst
+fi
# request a reboot if pae is supported
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then