From 9ba3456954295de4897d644a72805d7a1a848fb3 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Jun 2013 11:49:34 +0200 Subject: [PATCH] ipvsadm: New package. --- config/rootfiles/packages/ipvsadm | 1 + lfs/ipvsadm | 83 +++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 85 insertions(+) create mode 100644 config/rootfiles/packages/ipvsadm create mode 100644 lfs/ipvsadm diff --git a/config/rootfiles/packages/ipvsadm b/config/rootfiles/packages/ipvsadm new file mode 100644 index 0000000000..9937a32a7f --- /dev/null +++ b/config/rootfiles/packages/ipvsadm @@ -0,0 +1 @@ +usr/sbin/ipvsadm diff --git a/lfs/ipvsadm b/lfs/ipvsadm new file mode 100644 index 0000000000..de9c52dfad --- /dev/null +++ b/lfs/ipvsadm @@ -0,0 +1,83 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2013 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.26 + +THISAPP = ipvsadm-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = ipvsadm +PAK_VER = 1 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = eac3ba3f62cd4dea2da353aeddd353a8 + +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 axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" #$(MAKETUNING) + cd $(DIR_APP) && install -v -m 755 ipvsadm /usr/sbin/ipvsadm + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 10bbb8e557..6be04a3faf 100755 --- a/make.sh +++ b/make.sh @@ -771,6 +771,7 @@ buildipfire() { ipfiremake bitstream ipfiremake multicat ipfiremake keepalived + ipfiremake ipvsadm echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild echo >> $BASEDIR/build/var/ipfire/firebuild -- 2.39.2