[arptables_jf] add to man page that --mangle-hw-s/--mangle-hw-d need also --arhln
Jiří Popelka
jpopelka at fedoraproject.org
Mon May 13 13:28:55 UTC 2013
commit 9dfef24087419eb25dc136b3c407d7089ed7bd13
Author: Jiri Popelka <jpopelka at redhat.com>
Date: Mon May 13 15:26:38 2013 +0200
add to man page that --mangle-hw-s/--mangle-hw-d need also --arhln
removed triggerun scriptlet
arptables_jf-0.0.8-man.patch | 25 +++++++++++++++++++++++--
arptables_jf.spec | 23 ++++++++---------------
2 files changed, 31 insertions(+), 17 deletions(-)
---
diff --git a/arptables_jf-0.0.8-man.patch b/arptables_jf-0.0.8-man.patch
index cab5616..c248d5f 100644
--- a/arptables_jf-0.0.8-man.patch
+++ b/arptables_jf-0.0.8-man.patch
@@ -1,6 +1,6 @@
diff -up arptables_jf-0.0.8/arptables.8.man arptables_jf-0.0.8/arptables.8
--- arptables_jf-0.0.8/arptables.8.man 2004-01-27 17:29:48.000000000 +0100
-+++ arptables_jf-0.0.8/arptables.8 2011-03-29 10:05:30.010333105 +0200
++++ arptables_jf-0.0.8/arptables.8 2013-05-13 15:21:24.527483392 +0200
@@ -97,9 +97,9 @@ The tables are as follows:
.B "filter"
This is the default table (if no -t option is passed). It contains
@@ -77,12 +77,33 @@ diff -up arptables_jf-0.0.8/arptables.8.man arptables_jf-0.0.8/arptables.8
.TP
.BI "-j, --jump " "target"
This specifies the target of the rule; i.e., what to do if the packet
-@@ -360,7 +360,7 @@ Change the source IP address of the pack
+@@ -353,22 +353,23 @@ to load any necessary modules (targets,
+ .SS "MANGLE OPTIONS"
+ The kernel mangle module supports the following options
+ .TP
+-.B "--mangle-ip-s" "IP address"
++.B "--mangle-ip-s" "\fIIP address\fP"
+ Change the source IP address of the packet to the specified value.
+ .TP
+-.B "--mangle-ip-d" "IP address"
++.B "--mangle-ip-d" "\fIIP address\fP"
Change the destination IP address of the packet to the specified value.
.TP
.B "--mangle-hw-s" "\fIhardware address\fP"
-CHange the source hardware (MAC) address of the packet to the specified value.
+Change the source hardware (MAC) address of the packet to the specified value.
++It's necessary to specify length of hardware address using \fB--arhln\fP.
.TP
.B "--mangle-hw-d" "\fIhardware address\fP"
Change the destination hardware (MAC) address of the packet to the specified value.
++It's necessary to specify length of hardware address using \fB--arhln\fP.
+ .TP
+-.B "--mangle-target "\fItarget\fP"
++.B "--mangle-target" "\fItarget\fP"
+ Disposition of the packet. Valid targets are DROP, CONTINUE, or ACCEPT. If
+-no
+-.B "--mangle-target" option is specified, the default is ACCEPT.
++no \fB--mangle-target\fP option is specified, the default is ACCEPT.
+
+ .SH EXAMPLES
+ Let's say you have a machine with two ip addresses aaaa and bbbb.
diff --git a/arptables_jf.spec b/arptables_jf.spec
index 62a54de..d7870e6 100644
--- a/arptables_jf.spec
+++ b/arptables_jf.spec
@@ -1,7 +1,7 @@
Summary: User-space control program for the arptables network filter
Name: arptables_jf
Version: 0.0.8
-Release: 32%{?dist}
+Release: 33%{?dist}
License: GPLv2+
Group: System Environment/Base
@@ -18,10 +18,9 @@ Patch5: arptables_jf-0.0.8-mangle.patch
Patch6: arptables_jf-0.0.8-byteorder.patch
Patch7: arptables_jf-0.0.8-dbl-opt.patch
-Requires(post): systemd-units
-Requires(preun): systemd-units
-Requires(postun): systemd-units
-Requires(post): systemd-sysv
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
%description
The arptables_jf utility controls the arpfilter network packet filtering
@@ -64,16 +63,6 @@ echo '#Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables
%postun
%systemd_postun_with_restart arptables.service
-%triggerun -- arptables_jf < 0.0.8-25
-# Save the current service runlevel info
-# User must manually run systemd-sysv-convert --apply arptables
-# to migrate them to systemd targets
-/usr/bin/systemd-sysv-convert --save arptables >/dev/null 2>&1 ||:
-
-# Run these because the SysV package being removed won't do them
-/sbin/chkconfig --del arptables >/dev/null 2>&1 || :
-/bin/systemctl try-restart arptables.service >/dev/null 2>&1 || :
-
%files
%{_sbindir}/arptables*
@@ -83,6 +72,10 @@ echo '#Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables
%config(noreplace) %{_sysconfdir}/sysconfig/arptables
%changelog
+* Mon May 13 2013 Jiri Popelka <jpopelka at redhat.com> - 0.0.8-33
+- add to man page that --mangle-hw-s/--mangle-hw-d need also --arhln
+- removed triggerun scriptlet
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.8-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list