]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - lfs/iptraf-ng
New package: iptraf-ng a network monitoring utility
[people/teissler/ipfire-2.x.git] / lfs / iptraf-ng
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.1.3.1
13
14 THISAPP = iptraf-ng-$(VER)
15 DL_FILE = $(THISAPP).tar.gz
16 DL_FROM = $(URL_IPFIRE)
17 DIR_APP = $(DIR_SRC)/$(THISAPP)
18 TARGET = $(DIR_INFO)/$(THISAPP)
19 PROG = iptraf-ng
20 PAK_VER = 1
21
22 DEPS = ""
23
24 ###############################################################################
25 # Top-level Rules
26 ###############################################################################
27
28 objects = $(DL_FILE)
29
30 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
31
32 $(DL_FILE)_MD5 = 1a2c02944b0b012d6a3de96207610fa2
33
34 install : $(TARGET)
35
36 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
37
38 download :$(patsubst %,$(DIR_DL)/%,$(objects))
39
40 md5 : $(subst %,%_MD5,$(objects))
41
42 dist:
43 @$(PAK)
44
45 ###############################################################################
46 # Downloading, checking, md5sum
47 ###############################################################################
48
49 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
50 @$(CHECK)
51
52 $(patsubst %,$(DIR_DL)/%,$(objects)) :
53 @$(LOAD)
54
55 $(subst %,%_MD5,$(objects)) :
56 @$(MD5)
57
58 ###############################################################################
59 # Installation Details
60 ###############################################################################
61
62
63 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
64 @$(PREBUILD)
65 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE)
66 cd $(DIR_APP) && ./configure \
67 --prefix=/usr
68
69 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
70
71 # Binary install
72 cd $(DIR_APP) && install -v -m750 -D iptraf-ng /usr/sbin/iptraf-ng
73 cd $(DIR_APP) && install -v -m750 -D rvnamed-ng /usr/sbin/rvnamed-ng
74
75 # Directory install
76 -mkdir -vp /var/log/iptraf-ng
77 chmod 750 /var/log/iptraf-ng
78 chown root.root /var/log/iptraf-ng
79 -mkdir -vp /var/lib/iptraf-ng
80 chmod 750 /var/lib/iptraf-ng
81 chown root.root /var/lib/iptraf-ng
82 -mkdir -vp /var/lock/iptraf-ng
83 chmod 755 /var/lock/iptraf-ng
84 chown root.root /var/lock/iptraf-ng
85
86 @rm -rf $(DIR_APP)
87 @$(POSTBUILD)