rpms/ebtables/devel ebtables.spec,1.1,1.2 ebtables.sysv,1.1,1.2
Tom Callaway (spot)
fedora-extras-commits at redhat.com
Fri Jul 1 16:27:13 UTC 2005
Author: spot
Update of /cvs/extras/rpms/ebtables/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21475/devel
Modified Files:
ebtables.spec ebtables.sysv
Log Message:
Resolve blockers that Chris Ricker pointed out.
Index: ebtables.spec
===================================================================
RCS file: /cvs/extras/rpms/ebtables/devel/ebtables.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ebtables.spec 1 Jul 2005 16:03:23 -0000 1.1
+++ ebtables.spec 1 Jul 2005 16:27:11 -0000 1.2
@@ -1,6 +1,6 @@
Name: ebtables
Version: 2.0.6
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Ethernet Bridge frame table administration tool
License: GPL
Group: System Environment/Base
@@ -10,12 +10,17 @@
Patch0: ebtables-2.0.6-gcc34.patch
Patch1: ebtables-2.0.6-gcc4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+PreReq: /sbin/chkconfig
+PreReq: /sbin/service
%description
-Ethernet bridge tables is a firewalling tool to transparantly filter network
+Ethernet bridge tables is a firewalling tool to transparently filter network
traffic passing a bridge. The filtering possibilities are limited to link
layer filtering and some basic filtering on higher network layers.
+This tool is the userspace control for the bridge and ebtables kernel
+components (built by default in Fedora Core kernels).
+
The ebtables tool can be used together with the other Linux filtering tools,
like iptables. There are no known incompatibility issues.
@@ -47,7 +52,9 @@
fi
%postun
-/sbin/service ebtables condrestart &>/dev/null || :
+if [ $1 -ge 1 ]
+ /sbin/service ebtables condrestart &> /dev/null || :
+fi
%files
%defattr(-, root, root, 0755)
@@ -56,10 +63,20 @@
%config(noreplace) %{_sysconfdir}/ethertypes
%{_initrddir}/ebtables
/sbin/ebtables
+%ghost %{_sysconfdir}/ebtables.filter
+%ghost %{_sysconfdir}/ebtables.nat
+%ghost %{_sysconfdir}/ebtables.broute
%changelog
+* Fri Jul 1 2005 Tom "spot" Callaway <tcallawa at redhat.com> 2.0.6-5
+- fix sysv file
+
* Fri Jul 1 2005 Tom "spot" Callaway <tcallawa at redhat.com> 2.0.6-4
- remove INSTALL file
+- add some text to description, correct typos
+- fix %postun
+- add PreReqs
+- add %ghost config files
* Tue May 31 2005 Tom "spot" Callaway <tcallawa at redhat.com> 2.0.6-3
- reworked for Fedora Extras
Index: ebtables.sysv
===================================================================
RCS file: /cvs/extras/rpms/ebtables/devel/ebtables.sysv,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ebtables.sysv 1 Jul 2005 16:03:23 -0000 1.1
+++ ebtables.sysv 1 Jul 2005 16:27:11 -0000 1.2
@@ -10,7 +10,7 @@
#
# config: /etc/sysconfig/ebtables.filter
# config: /etc/sysconfig/ebtables.nat
-# config: /etc/sysconfig/ebtables.route
+# config: /etc/sysconfig/ebtables.broute
source /etc/init.d/functions
source /etc/sysconfig/network
@@ -27,6 +27,8 @@
prog="ebtables"
desc="Ethernet bridge filtering"
+lockfile=/var/lock/subsys/$prog
+
initialize() {
# Initialize $TYPE tables
echo -n $" $TYPE tables: "
@@ -68,7 +70,7 @@
RETVAL=`expr $RETVAL_BROUTE + $RETVAL_NAT + $RETVAL_FILTER`
if [ $RETVAL -eq 0 ]; then
- rm -f /var/lock/subsys/$prog
+ touch $lockfile
fi
echo
@@ -87,7 +89,7 @@
if [ $RETVAL -eq 0 ]; then
success "$prog shutdown"
- rm -f /var/lock/subsys/$prog
+ rm -f $lockfile
else
failure "$prog shutdown"
fi
@@ -126,7 +128,7 @@
restart
;;
condrestart)
- [ -e /var/lock/subsys/$prog ] && restart
+ [ -e $lockfile ] && restart
RETVAL=$?
;;
save)
More information about the fedora-extras-commits
mailing list