git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1124
ea5c0bd1-69bd-2848-81d8-
4f18e57aeed8
VER = 1.00
THISAPP = ipfireseeder-$(VER)
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
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = ipfireseeder
# Top-level Rules
###############################################################################
# Top-level Rules
###############################################################################
-objects = $(DL_FILE) \
- ipfire-2.0beta1.i586-full.iso.torrent
$(DL_FILE) = $(DL_FROM)/$(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
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
-mkdir -p /var/log/seeder /var/ipfire/seeder
$(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
start)
boot_mesg "Starting IPFire Seeder..."
cd /var/log/seeder
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
;;
/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
stop)
boot_mesg "Stopping IPFire Seeder..."
killproc /usr/bin/rtorrent
############################################################################
#
. /opt/pakfire/lib/functions.sh
############################################################################
#
. /opt/pakfire/lib/functions.sh
+
+/etc/init.d/ipfireseeder stop
+
+./install.sh