From c4abf26a6ee9ae425dc8bea513d57dcfbc0f8caf Mon Sep 17 00:00:00 2001 From: zbyniu Date: Fri, 28 Apr 2006 14:02:01 +0000 Subject: [PATCH] - init Changed files: arptables-llh.patch -> 1.1 arptables.spec -> 1.1 --- arptables-llh.patch | 24 ++++++++++++++++++++++++ arptables.spec | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 arptables-llh.patch create mode 100644 arptables.spec diff --git a/arptables-llh.patch b/arptables-llh.patch new file mode 100644 index 0000000..ff63bd6 --- /dev/null +++ b/arptables-llh.patch @@ -0,0 +1,24 @@ +diff -ur arptables-v0.0.3-2.org/include/linux/netfilter_arp.h arptables-v0.0.3-2/include/linux/netfilter_arp.h +--- arptables-v0.0.3-2.org/include/linux/netfilter_arp.h 2006-04-28 14:40:55.272046000 +0200 ++++ arptables-v0.0.3-2/include/linux/netfilter_arp.h 2006-04-28 14:41:09.552938500 +0200 +@@ -7,7 +7,7 @@ + * (C)2002 Rusty Russell IBM -- This code is GPL. + */ + +-#include ++//#include + #include + + /* There is no PF_ARP. */ +diff -ur arptables-v0.0.3-2.org/include/netfilter_arp.h arptables-v0.0.3-2/include/netfilter_arp.h +--- arptables-v0.0.3-2.org/include/netfilter_arp.h 2003-10-25 12:43:24.000000000 +0200 ++++ arptables-v0.0.3-2/include/netfilter_arp.h 2006-04-28 14:41:41.514936000 +0200 +@@ -7,7 +7,7 @@ + * (C)2002 Rusty Russell IBM -- This code is GPL. + */ + +-#include ++//#include + #include + + /* There is no PF_ARP. */ diff --git a/arptables.spec b/arptables.spec new file mode 100644 index 0000000..b42733a --- /dev/null +++ b/arptables.spec @@ -0,0 +1,35 @@ +Summary: Arp Tables +Summary(pl): Arp Tables - filtrowanie pakietów ARP +Name: arptables +Version: 0.0.3 +Release: 1 +License: GPL +Group: Networking/Daemons +Source0: http://dl.sourceforge.net/%{name}/%{name}-v%{version}-2.tar.gz +# Source0-md5: c4559af2366c764c6c42a3fdd40d60d3 +Patch0: %{name}-llh.patch +URL: http://ebtables.sourceforge.net/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%prep +%setup -q -n %{name}-v%{version}-2 +%patch0 -p1 + +%build +%{__make} \ + CC="%{__cc}" + +%install +rm -rf $RPM_BUILD_ROOT +install -D %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} +install -D %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_sbindir}/* +%{_mandir}/man8/* -- 2.43.0