]> git.pld-linux.org Git - packages/ufw.git/commitdiff
new, version 0.30.1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 16 Sep 2013 07:38:05 +0000 (10:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 16 Sep 2013 07:38:05 +0000 (10:38 +0300)
based on src rpm:
http://ndowens.fedorapeople.org/SRPM/ufw-0.30.1-4.fc15.src.rpm

common.py-file.patch [new file with mode: 0644]
ufw.spec [new file with mode: 0644]

diff --git a/common.py-file.patch b/common.py-file.patch
new file mode 100644 (file)
index 0000000..caec686
--- /dev/null
@@ -0,0 +1,20 @@
+--- src/common.py      2011-03-22 13:00:03.000000000 -0500
++++ src/common.py-new  2011-08-01 21:47:34.889906168 -0500
+@@ -22,12 +22,12 @@
+ from ufw.util import debug
+ programName = "ufw"
+-state_dir = "#STATE_PREFIX#"
+-share_dir = "#SHARE_DIR#"
++state_dir = "/lib/ufw/"
++share_dir = "/usr/share/"
+ trans_dir = share_dir
+-config_dir = "#CONFIG_PREFIX#"
+-prefix_dir = "#PREFIX#"
+-iptables_dir = "#IPTABLES_DIR#"
++config_dir = "/etc/"
++prefix_dir = "/usr/"
++iptables_dir = "/sbin/"
+ class UFWError(Exception):
+     '''This class represents ufw exceptions'''
diff --git a/ufw.spec b/ufw.spec
new file mode 100644 (file)
index 0000000..1afcebb
--- /dev/null
+++ b/ufw.spec
@@ -0,0 +1,65 @@
+Summary:       Uncomplicated Firewall
+Name:          ufw
+Version:       0.30.1
+Release:       1
+License:       GPL v3+
+Group:         Networking/Admin
+URL:           http://launchpad.net/ufw
+Source0:       http://launchpad.net/ufw/0.30/%{version}/+download/%{name}-%{version}.tar.gz
+# Source0-md5: 3182fad2249cf5f7e5589f44f0f078bd
+Patch0:                common.py-file.patch
+BuildRequires: iptables-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Uncomplicated Firewall(ufw) is a front-end for netfilter, which
+aims to make it easier for people unfamiliar with firewall concepts.
+Ufw provides a framework for managing netfilter as well as
+manipulating the firewall.
+
+%prep
+%setup -q
+# Submited patch through ufw's bug report
+# Fix directory locations instead of #CONFIG_PREFIX#
+# http://bugs.launchpad.net/ufw/+bug/819600
+%patch0 -p0
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog COPYING README* TODO AUTHORS
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/ufw
+%dir %{_sysconfdir}/ufw
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/*.rules
+%dir %{_sysconfdir}/ufw/applications.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/applications.d/*
+
+%attr(755,root,root) %{_sbindir}/ufw
+%{_mandir}/man8/ufw-framework.8*
+%{_mandir}/man8/ufw.8*
+%{_datadir}/%{name}
+%dir /lib/ufw
+/lib/ufw/ufw-init
+/lib/ufw/ufw-init-functions
+/lib/ufw/user.rules
+/lib/ufw/user6.rules
+%{py_sitescriptdir}/ufw
+%{py_sitescriptdir}/ufw-%{version}-py*.egg-info
This page took 0.082682 seconds and 4 git commands to generate.