From c9429a7c0b7b4226c46121e84c3f7f3de8d8b52d Mon Sep 17 00:00:00 2001 From: ms Date: Sat, 15 Dec 2007 22:05:02 +0000 Subject: [PATCH] Updated the IPFireSeeder that it seeds the final iso. git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1124 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- lfs/ipfireseeder | 13 +++++-------- src/initscripts/init.d/ipfireseeder | 4 ++-- src/paks/ipfireseeder/update.sh | 4 ++++ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lfs/ipfireseeder b/lfs/ipfireseeder index 5d1825c446..bb4ae8c21b 100644 --- a/lfs/ipfireseeder +++ b/lfs/ipfireseeder @@ -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) diff --git a/src/initscripts/init.d/ipfireseeder b/src/initscripts/init.d/ipfireseeder index 4d03d66dd9..6749a13ce3 100644 --- a/src/initscripts/init.d/ipfireseeder +++ b/src/initscripts/init.d/ipfireseeder @@ -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 diff --git a/src/paks/ipfireseeder/update.sh b/src/paks/ipfireseeder/update.sh index 800823ef50..eb611a88f1 100644 --- a/src/paks/ipfireseeder/update.sh +++ b/src/paks/ipfireseeder/update.sh @@ -22,3 +22,7 @@ ############################################################################ # . /opt/pakfire/lib/functions.sh + +/etc/init.d/ipfireseeder stop + +./install.sh -- 2.39.5