]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/wavemon
Switch checksums from MD5 to BLAKE2
[people/pmueller/ipfire-2.x.git] / lfs / wavemon
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
4 ###############################################################################
5
6 ###############################################################################
7 # Definitions
8 ###############################################################################
9
10 include Config
11
12 SUMMARY = An ncurses monitoring application for wireless network devices
13
14 VER = 0.7.5
15
16 THISAPP = wavemon-$(VER)
17 DL_FILE = $(THISAPP).tar.bz2
18 DL_FROM = $(URL_IPFIRE)
19 DIR_APP = $(DIR_SRC)/$(THISAPP)
20 TARGET = $(DIR_INFO)/$(THISAPP)
21 PROG = wavemon
22 PAK_VER = 1
23
24 DEPS =
25
26 SERVICES =
27
28 ###############################################################################
29 # Top-level Rules
30 ###############################################################################
31
32 objects = $(DL_FILE)
33
34 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
35
36 $(DL_FILE)_BLAKE2 = 144a8aa36e99d39fb155e7afe2322c9446e168c1b009f6d53f149f7cd6c1e723e47a30233c25849b1aa1fd8c601e8d8881062daf3113c2964b0c239a5b110b6c
37
38 install : $(TARGET)
39
40 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
41
42 download :$(patsubst %,$(DIR_DL)/%,$(objects))
43
44 b2 : $(subst %,%_BLAKE2,$(objects))
45
46 dist:
47 @$(PAK)
48
49 ###############################################################################
50 # Downloading, checking, b2sum
51 ###############################################################################
52
53 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
54 @$(CHECK)
55
56 $(patsubst %,$(DIR_DL)/%,$(objects)) :
57 @$(LOAD)
58
59 $(subst %,%_BLAKE2,$(objects)) :
60 @$(B2SUM)
61
62 ###############################################################################
63 # Installation Details
64 ###############################################################################
65
66 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
67 @$(PREBUILD)
68 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
69 $(UPDATE_AUTOMAKE)
70 cd $(DIR_APP) && ./configure \
71 --prefix=/usr
72
73 cd $(DIR_APP) && make $(MAKETUNING)
74 cd $(DIR_APP) && make install
75 @rm -rf $(DIR_APP)
76 @$(POSTBUILD)