some ipp2p fixes. still not working ...
New kernel at updater
#
OLDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
NEWVERSION="2.3"
-KVER="2.6.23.17"
+KVER="2.6.25.17"
ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1`
MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
# Nur den letzten Parameter verwenden
echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES
echo var/log/rrd >> /opt/pakfire/tmp/ROOTFILES
echo var/updatexlerator >> /opt/pakfire/tmp/ROOTFILES
+echo lib/iptables >> /opt/pakfire/tmp/ROOTFILES
#
tar cjvf /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.bz2 \
-T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1
#
rm -rf /etc/sysconfig/lm_sensors
#
+# Delete old iptables libs...
+#
+rm -rf /lib/iptables
+#
# Remove old kernel, configs, initrd, modules ...
#
rm -rf /boot/System.map-*
else
ifeq "$(IPT)" "1"
cd $(DIR_APP) && make libipt_ipp2p.so
- cp -f $(DIR_APP)/libipt_ipp2p.so /lib/iptables
+ cp -f $(DIR_APP)/libipt_ipp2p.so /lib/xtables
else
cd $(DIR_APP) && make ipt_ipp2p.ko
cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire/kernel/net/ipv4/netfilter
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && patch -p1 < $(DIR_SRC)/src/patches/openswan-2.6.16-sa_fam_unspec.patch
ifeq "$(KMOD)" "1"
cd $(DIR_APP) && make KERNELSRC=/usr/src/linux module
cd $(DIR_APP) && make minstall
chmod 775 /var/updatecache/download
chmod 775 /var/updatecache/metadata
chmod 755 /var/log/updatexlrator
+ chmod 755 /srv/web/ipfire/html/images/updbooster
chown squid:squid /var/log/squid
ln -sf /usr/lib/squid /usr/lib/squid/auth
ipfiremake whatmask
ipfiremake iptables
ipfiremake libupnp
- ipfiremake ipp2p IPT=1
+# ipfiremake ipp2p IPT=1
ipfiremake linux-igd
ipfiremake ipaddr
ipfiremake iptstate