]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - lfs/iptraf-ng
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[people/teissler/ipfire-2.x.git] / lfs / iptraf-ng
CommitLineData
9e49a099
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
10include Config
11
0b2e986e 12VER = 1.1.4
9e49a099
EK
13
14THISAPP = iptraf-ng-$(VER)
15DL_FILE = $(THISAPP).tar.gz
16DL_FROM = $(URL_IPFIRE)
17DIR_APP = $(DIR_SRC)/$(THISAPP)
18TARGET = $(DIR_INFO)/$(THISAPP)
19PROG = iptraf-ng
527bc5af 20PAK_VER = 2
9e49a099
EK
21
22DEPS = ""
23
24###############################################################################
25# Top-level Rules
26###############################################################################
27
28objects = $(DL_FILE)
29
30$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
31
0b2e986e 32$(DL_FILE)_MD5 = de27cfeeede96e2acfb0edc8439b034a
9e49a099
EK
33
34install : $(TARGET)
35
36check : $(patsubst %,$(DIR_CHK)/%,$(objects))
37
38download :$(patsubst %,$(DIR_DL)/%,$(objects))
39
40md5 : $(subst %,%_MD5,$(objects))
41
42dist:
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)
527bc5af 66 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch
9e49a099
EK
67 cd $(DIR_APP) && ./configure \
68 --prefix=/usr
69
70 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
71
72 # Binary install
73 cd $(DIR_APP) && install -v -m750 -D iptraf-ng /usr/sbin/iptraf-ng
74 cd $(DIR_APP) && install -v -m750 -D rvnamed-ng /usr/sbin/rvnamed-ng
75
76 # Directory install
77 -mkdir -vp /var/log/iptraf-ng
78 chmod 750 /var/log/iptraf-ng
79 chown root.root /var/log/iptraf-ng
80 -mkdir -vp /var/lib/iptraf-ng
81 chmod 750 /var/lib/iptraf-ng
82 chown root.root /var/lib/iptraf-ng
83 -mkdir -vp /var/lock/iptraf-ng
84 chmod 755 /var/lock/iptraf-ng
85 chown root.root /var/lock/iptraf-ng
86
87 @rm -rf $(DIR_APP)
88 @$(POSTBUILD)