]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Updated the IPFireSeeder that it seeds the final iso.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 15 Dec 2007 22:05:02 +0000 (22:05 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 15 Dec 2007 22:05:02 +0000 (22:05 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1124 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

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

index 5d1825c446eb61c86833097e396bbba30ed90dcc..bb4ae8c21bfd595b5c6cafa9b575cad2fdeca7c5 100644 (file)
@@ -27,12 +27,12 @@ include Config
 VER        = 1.00
 
 THISAPP    = ipfireseeder-$(VER)
-DL_FILE    = IPFire-1.4.9-FINAL.iso.torrent
+DL_FILE    = ipfire-2.1.i586-full.iso.torrent
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = ipfireseeder
-PAK_VER    = 1
+PAK_VER    = 2
 
 DEPS       = "rtorrent"
 
@@ -40,14 +40,11 @@ DEPS       = "rtorrent"
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE) \
-       ipfire-2.0beta1.i586-full.iso.torrent
+objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-ipfire-2.0beta1.i586-full.iso.torrent = $(DL_FROM)/ipfire-2.0beta1.i586-full.iso.torrent
 
-$(DL_FILE)_MD5 = 20c0e570329d80c2ae965b8d3b206ba5
-ipfire-2.0beta1.i586-full.iso.torrent_MD5 = 65414ea68e7797a45465021c666fc0ad
+$(DL_FILE)_MD5 = cf4598509a9817dfc493e9143f55d5d7
 
 install : $(TARGET)
 
@@ -80,5 +77,5 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        -mkdir -p /var/log/seeder /var/ipfire/seeder
-       cp -vf $(DIR_DL)/{$(DL_FILE),ipfire-2.0beta1.i586-full.iso.torrent} /var/ipfire/seeder
+       cp -vf $(DIR_DL)/$(DL_FILE) /var/ipfire/seeder
        @$(POSTBUILD)
index 4d03d66dd9ffab1fc634b1e5f21a2dc9b2795514..6749a13ce3f2f5bdc3ac4ddf9a8977d39324705d 100644 (file)
@@ -20,14 +20,14 @@ case "${1}" in
        start)
                boot_mesg "Starting IPFire Seeder..."
                cd /var/log/seeder
-               loadproc screen -dmS seeder -fn su nobody -c /usr/bin/rtorrent -o port_range=35700-35705 \
+               loadproc screen -dmS seeder /usr/bin/rtorrent -o port_range=35700-35705 \
                        /var/ipfire/seeder/*.torrent
                if ! grep -q "35700:35705" /var/ipfire/xtaccess/config ; then
                        echo "tcp,0.0.0.0/0,35700:35705,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
                        /usr/local/bin/setxtaccess
                fi
                ;;
-"
+               
        stop)
                boot_mesg "Stopping IPFire Seeder..."
                killproc /usr/bin/rtorrent
index 800823ef50bde1623c522e37274d393954af6439..eb611a88f16aa1343d89ded4af3e562459c78a07 100644 (file)
@@ -22,3 +22,7 @@
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+
+/etc/init.d/ipfireseeder stop
+
+./install.sh