~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to lfs/vnstat

  • Committer: Daniel Glanzmann
  • Date: 2008-09-26 17:05:28 UTC
  • mto: (1394.1.12)
  • mto: This revision was merged to the branch mainline in revision 1401.
  • Revision ID: git-v1:19ac4d1b6e234e1391b3d406381e3b74e92c40dd
added new useragent thunderbird

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
###############################################################################
2
2
#                                                                             #
3
3
# IPFire.org - A linux based firewall                                         #
4
 
# Copyright (C) 2007-2023  IPFire Team  <info@ipfire.org>                     #
 
4
# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
5
5
#                                                                             #
6
6
# This program is free software: you can redistribute it and/or modify        #
7
7
# it under the terms of the GNU General Public License as published by        #
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 2.11
 
27
VER        = 1.6
28
28
 
29
29
THISAPP    = vnstat-$(VER)
30
30
DL_FILE    = $(THISAPP).tar.gz
40
40
 
41
41
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
42
42
 
43
 
$(DL_FILE)_BLAKE2 = 6eeed45d628641c9d88cf33ae1fc14871109b1e9fd0ac4a46fe8e2c194bb4600878b69408ed177bcde38ca859d0a3165d0095cab9b0bb6c036f7788fbfcb47e6
 
43
$(DL_FILE)_MD5 = ccaffe8e70d47e0cf2f25e52daa25712
44
44
 
45
45
install : $(TARGET)
46
46
 
48
48
 
49
49
download :$(patsubst %,$(DIR_DL)/%,$(objects))
50
50
 
51
 
b2 : $(subst %,%_BLAKE2,$(objects))
 
51
md5 : $(subst %,%_MD5,$(objects))
52
52
 
53
 
dist:
 
53
dist: 
54
54
        @$(PAK)
55
55
 
56
56
###############################################################################
57
 
# Downloading, checking, b2sum
 
57
# Downloading, checking, md5sum
58
58
###############################################################################
59
59
 
60
60
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
63
63
$(patsubst %,$(DIR_DL)/%,$(objects)) :
64
64
        @$(LOAD)
65
65
 
66
 
$(subst %,%_BLAKE2,$(objects)) :
67
 
        @$(B2SUM)
 
66
$(subst %,%_MD5,$(objects)) :
 
67
        @$(MD5)
68
68
 
69
69
###############################################################################
70
70
# Installation Details
73
73
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
74
74
        @$(PREBUILD)
75
75
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
76
 
        $(UPDATE_AUTOMAKE)
77
 
        cd $(DIR_APP) && ./configure \
78
 
                --prefix=/usr \
79
 
                --sysconfdir=/etc
80
 
 
81
 
        cd $(DIR_APP) && make all $(MAKETUNING)         LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"
 
76
        cd $(DIR_APP) && make $(MAKETUNING)                                                                             LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"
82
77
        cd $(DIR_APP) && make install
83
 
        sed -i 's|^;||g' /etc/vnstat.conf
84
 
        sed -i 's|SaveInterval 5|SaveInterval 1|g' /etc/vnstat.conf
 
78
        sed -i 's|eth0|green0|g' /etc/vnstat.conf
85
79
        sed -i 's|/var/lib/vnstat|/var/log/vnstat|g' /etc/vnstat.conf
86
 
        sed -i 's|/var/log/vnstat/vnstat.log|/var/log/vnstat.log|g' /etc/vnstat.conf
87
 
        sed -i 's|/var/run/vnstat/vnstat.pid|/var/run/vnstat.pid|g' /etc/vnstat.conf
88
 
 
89
 
        mkdir -p /var/log/vnstat
90
 
 
 
80
        -mkdir -p /var/log/vnstat
91
81
        @rm -rf $(DIR_APP)
92
82
        @$(POSTBUILD)