]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Merge remote-tracking branch 'ummeegge/iptraf-ng' into next
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Aug 2013 11:33:48 +0000 (13:33 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Aug 2013 11:33:48 +0000 (13:33 +0200)
Conflicts:
make.sh

config/rootfiles/packages/iptraf-ng [new file with mode: 0644]
lfs/iptraf-ng [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/iptraf-ng b/config/rootfiles/packages/iptraf-ng
new file mode 100644 (file)
index 0000000..4ad3c86
--- /dev/null
@@ -0,0 +1,5 @@
+usr/sbin/iptraf-ng
+usr/sbin/rvnamed-ng
+var/lib/iptraf-ng
+var/lock/iptraf-ng
+var/log/iptraf-ng
diff --git a/lfs/iptraf-ng b/lfs/iptraf-ng
new file mode 100644 (file)
index 0000000..0740049
--- /dev/null
@@ -0,0 +1,87 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.1.3.1
+
+THISAPP    = iptraf-ng-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = iptraf-ng
+PAK_VER           = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 1a2c02944b0b012d6a3de96207610fa2
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && ./configure \
+               --prefix=/usr
+
+       cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
+
+       # Binary install
+       cd $(DIR_APP) && install -v -m750 -D iptraf-ng /usr/sbin/iptraf-ng
+       cd $(DIR_APP) && install -v -m750 -D rvnamed-ng /usr/sbin/rvnamed-ng
+
+       # Directory install
+       -mkdir -vp /var/log/iptraf-ng
+       chmod 750 /var/log/iptraf-ng
+       chown root.root /var/log/iptraf-ng
+       -mkdir -vp /var/lib/iptraf-ng
+       chmod 750 /var/lib/iptraf-ng
+       chown root.root /var/lib/iptraf-ng
+       -mkdir -vp /var/lock/iptraf-ng
+       chmod 755 /var/lock/iptraf-ng
+       chown root.root /var/lock/iptraf-ng
+
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 538151ccd1b608f19ceed9414bb8d3c661378643..50a58782d1b4a9430075b2d4a181dc315470d595 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -783,6 +783,7 @@ buildipfire() {
   ipfiremake tor
   ipfiremake arm
   ipfiremake wavemon
+  ipfiremake iptraf-ng
   echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
   cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
   echo >> $BASEDIR/build/var/ipfire/firebuild