]>
Commit | Line | Data |
---|---|---|
f98766eb EK |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | ############################################################################### | |
7 | # Definitions | |
8 | ############################################################################### | |
9 | ||
10 | include Config | |
11 | ||
12 | VER = 1.78 | |
13 | ||
14 | THISAPP = IO-Socket-SSL-$(VER) | |
15 | DL_FILE = $(THISAPP).tar.gz | |
16 | DL_FROM = http://cpan.noris.de/authors/id/S/SU/SULLR/ | |
17 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
18 | TARGET = $(DIR_INFO)/$(THISAPP) | |
19 | ||
20 | ############################################################################### | |
21 | # Top-level Rules | |
22 | ############################################################################### | |
23 | ||
24 | objects = $(DL_FILE) | |
25 | ||
26 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
27 | ||
28 | $(DL_FILE)_MD5 = 172201f3ebc400dc3733a0577ac29095 | |
29 | ||
30 | install : $(TARGET) | |
31 | ||
32 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
33 | ||
34 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
35 | ||
36 | md5 : $(subst %,%_MD5,$(objects)) | |
37 | ||
38 | ############################################################################### | |
39 | # Downloading, checking, md5sum | |
40 | ############################################################################### | |
41 | ||
42 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
43 | @$(CHECK) | |
44 | ||
45 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
46 | @$(LOAD) | |
47 | ||
48 | $(subst %,%_MD5,$(objects)) : | |
49 | @$(MD5) | |
50 | ||
51 | ############################################################################### | |
52 | # Installation Details | |
53 | ############################################################################### | |
54 | ||
55 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
56 | @$(PREBUILD) | |
57 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) | |
58 | cd $(DIR_APP) && perl Makefile.PL | |
59 | cd $(DIR_APP) && make | |
60 | cd $(DIR_APP) && make install | |
61 | @rm -rf $(DIR_APP) | |
62 | @$(POSTBUILD) |