From: Erik Kapfer Date: Tue, 30 Jul 2013 21:00:23 +0000 (+0200) Subject: New package: iptraf-ng a network monitoring utility X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=9e49a099091af511fbb07f5b18fb7385bb41969d New package: iptraf-ng a network monitoring utility --- diff --git a/config/rootfiles/packages/iptraf-ng b/config/rootfiles/packages/iptraf-ng new file mode 100644 index 000000000..4ad3c863d --- /dev/null +++ b/config/rootfiles/packages/iptraf-ng @@ -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 index 000000000..074004967 --- /dev/null +++ b/lfs/iptraf-ng @@ -0,0 +1,87 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +############################################################################### +# 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 8ca36bf9c..4424e762f 100755 --- a/make.sh +++ b/make.sh @@ -779,6 +779,7 @@ buildipfire() { ipfiremake perl-File-Tail ipfiremake perl-TimeDate ipfiremake swatch + 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