From 8e3c9336de3ca4a9feafa871ba946cf6ce78052b Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 6 Dec 2010 18:45:39 +0100 Subject: [PATCH] Added libdnet needed by snort 2.9. --- config/rootfiles/common/libdnet-1.11 | 26 ++++++++++ lfs/libdnet | 77 ++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 config/rootfiles/common/libdnet-1.11 create mode 100644 lfs/libdnet diff --git a/config/rootfiles/common/libdnet-1.11 b/config/rootfiles/common/libdnet-1.11 new file mode 100644 index 0000000000..07917ed3de --- /dev/null +++ b/config/rootfiles/common/libdnet-1.11 @@ -0,0 +1,26 @@ +usr/bin/dnet-config +#usr/include/dnet +#usr/include/dnet.h +#usr/include/dnet/addr.h +#usr/include/dnet/arp.h +#usr/include/dnet/blob.h +#usr/include/dnet/eth.h +#usr/include/dnet/fw.h +#usr/include/dnet/icmp.h +#usr/include/dnet/intf.h +#usr/include/dnet/ip.h +#usr/include/dnet/ip6.h +#usr/include/dnet/os.h +#usr/include/dnet/rand.h +#usr/include/dnet/route.h +#usr/include/dnet/tcp.h +#usr/include/dnet/tun.h +#usr/include/dnet/udp.h +usr/lib/libdnet +usr/lib/libdnet.1 +usr/lib/libdnet.1.0.1 +usr/lib/libdnet.a +usr/lib/libdnet.la +#usr/man/man3/dnet.3 +#usr/man/man8/dnet.8 +usr/sbin/dnet diff --git a/lfs/libdnet b/lfs/libdnet new file mode 100644 index 0000000000..66adfb2058 --- /dev/null +++ b/lfs/libdnet @@ -0,0 +1,77 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 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 Config + +VER = 1.11 + +THISAPP = libdnet-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 04c394ed8e1e7fc455456e79e908916d + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# 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 zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) -- 2.39.5