From a9d112c3991f3ddbee825d572538b8c3dec5fbc8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 2 Dec 2009 16:56:30 +0100 Subject: [PATCH] New package: iproute2. --- pkgs/core/iproute2/iproute2.nm | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pkgs/core/iproute2/iproute2.nm diff --git a/pkgs/core/iproute2/iproute2.nm b/pkgs/core/iproute2/iproute2.nm new file mode 100644 index 000000000..3b426194a --- /dev/null +++ b/pkgs/core/iproute2/iproute2.nm @@ -0,0 +1,66 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# 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 $(PKGROOT)/Include + +PKG_NAME = iproute2 +PKG_VER = 2.6.29-1 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Networking/Tools +PKG_URL = http://www.linuxfoundation.org/en/Net:Iproute2 +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = Advanced IP routing and network device configuration tools. + +PKG_DEPS += bison db flex + +define PKG_DESCRIPTION + The iproute package contains networking utilities (ip and rtmon, for \ + example) which are designed to use the advanced networking \ + capabilities of the Linux 2.4.x and 2.6.x kernel. +endef + +PKG_TARBALL = $(THISAPP).tar.bz2 + +PKG_PATCHES += $(THISAPP)-opt_flags.patch + +############################################################################### +# Installation Details +############################################################################### + +define STAGE_PREPARE_CMDS + cd $(DIR_APP) && sed -i -e "s@DESTDIR=.*@DESTDIR=@" \ + -e "s@/share/@/usr/share/@g" Makefile +endef + +define STAGE_BUILD + cd $(DIR_APP) && make OPT_FLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS) +endef + +define STAGE_INSTALL + cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) + -mkdir -pv $(BUILDROOT)/usr/sbin + cd $(DIR_APP) && mv -v $(BUILDROOT)/sbin/arpd $(BUILDROOT)/usr/sbin +endef -- 2.39.2