1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 THISAPP = ipfireseeder-$(VER)
30 DL_FILE = IPFire-1.4.9-FINAL.iso.torrent
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
39 ###############################################################################
41 ###############################################################################
43 objects = $(DL_FILE) \
44 ipfire-2.0beta1.i586-full.iso.torrent
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47 ipfire-2.0beta1.i586-full.iso.torrent = $(DL_FROM)/ipfire-2.0beta1.i586-full.iso.torrent
49 $(DL_FILE)_MD5 = 20c0e570329d80c2ae965b8d3b206ba5
50 ipfire-2.0beta1.i586-full.iso.torrent_MD5 = 65414ea68e7797a45465021c666fc0ad
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
58 md5 : $(subst %,%_MD5,$(objects))
63 ###############################################################################
64 # Downloading, checking, md5sum
65 ###############################################################################
67 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
70 $(patsubst %,$(DIR_DL)/%,$(objects)) :
73 $(subst %,%_MD5,$(objects)) :
76 ###############################################################################
77 # Installation Details
78 ###############################################################################
80 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
82 -mkdir -p /var/log/seeder /var/ipfire/seeder
83 cp -vf $(DIR_DL)/{$(DL_FILE),ipfire-2.0beta1.i586-full.iso.torrent} /var/ipfire/seeder