Ipfireseeder: open also 35700 udp in external access.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 26 Aug 2010 16:47:39 +0000 (18:47 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 26 Aug 2010 16:47:39 +0000 (18:47 +0200)
Ipfireseeder: autorestart at reconnect.

lfs/ipfireseeder
src/initscripts/init.d/ipfireseeder
src/paks/ipfireseeder/install.sh
src/paks/ipfireseeder/uninstall.sh
src/paks/ipfireseeder/update.sh

index 3d1a32f..a0921c6 100644 (file)
@@ -33,7 +33,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = ipfireseeder
-PAK_VER    = 13
+PAK_VER    = 14
 
 DEPS       = "rtorrent"
 
index def3292..5ce5cdf 100644 (file)
@@ -30,6 +30,7 @@ case "${1}" in
                evaluate_retval
                if ! grep -q "35700:35700" /var/ipfire/xtaccess/config ; then
                        echo "tcp,0.0.0.0/0,35700:35700,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
+                       echo "udp,0.0.0.0/0,35700:35700,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
                        /usr/local/bin/setxtaccess
                fi
                ;;
index 76f1efe..81abf5a 100644 (file)
@@ -23,4 +23,7 @@
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
+ln -s ../../ipfireseeder /etc/rc.d/init.d/networking/red.up/90-S-ipfireseeder
+ln -s ../../ipfireseeder /etc/rc.d/init.d/networking/red.down/01-K-ipfireseeder
+
 start_service --delay 90 --background ${NAME}
index 973a2f9..888c701 100644 (file)
@@ -31,4 +31,12 @@ cat /opt/pakfire/db/rootfiles/ipfireseeder | \
 mv /opt/pakfire/db/rootfiles/ipfireseeder.tmp \
     /opt/pakfire/db/rootfiles/ipfireseeder
 
+grep -v "IPFireSeeder" /var/ipfire/xtaccess/config > /var/ipfire/xtaccess/config.tmp
+mv /var/ipfire/xtaccess/config.tmp /var/ipfire/xtaccess/config
+chown nobody:nobody /var/ipfire/xtaccess/config
+chmod 644 /var/ipfire/xtaccess/config
+
+rm -f /etc/rc.d/rc?.d/???ipfireseeder
+rm -f /etc/rc.d/init.d/networking/red.*/??-?-ipfireseeder
+
 remove_files
index 10b3490..89c40d0 100644 (file)
@@ -22,5 +22,5 @@
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
-/etc/init.d/ipfireseeder stop
+./uninstall.sh
 ./install.sh